# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup meson 1.0 name gedit-plugins version 3.38.2 revision 1 license GPL-2+ set branch [join [lrange [split ${version} .] 0 1] .] description Plug-ins for GEdit long_description Various additional plug-ins for GEdit maintainers nomaintainer categories gnome editors platforms darwin homepage https://wiki.gnome.org/Apps/Gedit master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 67891cc09e22383f4a1a6bac50279a35209fc588 \ sha256 978c58fc1bcdf5f1e6235105e624ee16c32deb1482f34d4c98e1847092f43db0 \ size 958668 depends_build-append \ port:pkgconfig \ port:appstream-glib \ port:gettext \ port:itstool depends_lib port:gedit \ port:gettext-runtime \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \ path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \ port:gtksourceview4 \ port:libpeas \ path:bin/vala:vala patchfiles patch-python3-bin.diff \ patch-meson-61.0.diff post-patch { reinplace "s|@@PYTHON3_BIN@@|${configure.python}|" \ ${worksrcpath}/meson.build reinplace "s|^#!.*|#!${configure.python}|" \ ${worksrcpath}/build-aux/meson/post_install.py } # Enabled plugins: # bookmarks # bracketcompletion # codecomment # colorpicker # colorschemer # commander # drawspaces # findinfiles # joinlines # multiedit # sessionsaver # smartspaces # textsize # translate # wordcompletion # # disabled plugins, enabled via variant: # charmap # git # synctex # terminal # require C11 compiler compiler.c_standard 2011 configure.args -Dplugin_charmap=false \ -Dplugin_git=false \ -Dplugin_synctex=false \ -Dplugin_terminal=false variant charmap description {Insert special characters just by clicking on them} { depends_run-append port:gucharmap configure.args-delete -Dplugin_charmap=false } variant git description {Highlight lines that have been changed since the last commit} { depends_run-append port:libgit2-glib configure.args-delete -Dplugin_git=false } variant synctex description {Quickly switch from an opened TeX source file in gedit to a PDF document opened in evince and vice versa} { depends_run-append port:evince configure.args-delete -Dplugin_synctex=false } variant terminal description {Embed a GNOME terminal in the bottom panel of the gedit window} { depends_run-append port:vte configure.args-delete -Dplugin_terminal=false } variant python38 conflicts python39 python310 description {Plugins use Python 3.8} { depends_lib-append port:py38-gobject3 \ port:dbus-python38 configure.python ${prefix}/bin/python3.8 } variant python39 conflicts python38 python310 description {Plugins use Python 3.9} { depends_lib-append port:py39-gobject3 \ port:dbus-python39 configure.python ${prefix}/bin/python3.9 } variant python310 conflicts python38 python39 description {Plugins use Python 3.10} { depends_lib-append port:py310-gobject3 \ port:dbus-python310 configure.python ${prefix}/bin/python3.10 } if {![variant_isset python38] && \ ![variant_isset python39] && \ ![variant_isset python310]} { default_variants +python310 } # libpeas expects plugin modules with .so extensions # make .so symlink for each plugin module built as .dylib post-destroot { set plugindir lib/gedit/plugins foreach pluginlib {libbookmarks libdrawspaces libfindinfiles libwordcompletion} { ln -s ${prefix}/${plugindir}/${pluginlib}.dylib ${destroot}${prefix}/${plugindir}/${pluginlib}.so } } post-activate { system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" } livecheck.type gnome