# -*- 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 compiler_blacklist_versions 1.0
name gedit-plugins
version 3.28.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 489eb806497be05cc2cd5eeafd51baffbea4b739 \
sha256 222dfd7065d399f7eda48dce011b42cc7185cd058f523be1bbd7143980e01468 \
size 1350468
depends_build port:pkgconfig \
port:intltool \
port:itstool \
port:yelp-tools \
port:autoconf \
port:automake \
port:libtool
depends_lib port:gtk3 \
port:gtksourceview3 \
port:libpeas \
port:gedit \
port:vte \
port:libgit2-glib \
port:zeitgeist
patchfiles patch-autogen.sh.diff \
patch-configure.ac.diff
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
configure.cmd ./autogen.sh
# blacklist compilers that do not support C11 (redefinition of typedef ‘GtkSourceTag’ at gtksourceview/gtksourcetag.h:35)
compiler.blacklist *gcc* {clang < 300}
configure.args --disable-python \
--disable-silent-rules \
--disable-schemas-compile
variant python35 conflicts python36 description {Use python 3.5} {
depends_lib-append port:py35-gobject3 \
port:dbus-python35
configure.python ${prefix}/bin/python3.5
set python_framework ${frameworks_dir}/Python.framework/Versions/3.5
configure.pkg_config_path ${python_framework}/lib/pkgconfig
configure.args-replace --disable-python --enable-python
}
variant python36 conflicts python35 description {Use python 3.6} {
depends_lib-append port:py36-gobject3 \
port:dbus-python36
configure.python ${prefix}/bin/python3.6
set python_framework ${frameworks_dir}/Python.framework/Versions/3.6
configure.pkg_config_path ${python_framework}/lib/pkgconfig
configure.args-replace --disable-python --enable-python
}
if {![variant_isset python35]} {
default_variants +python36
}
post-activate {
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}
livecheck.type gnome