# -*- 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 # $Id$ PortSystem 1.0 name libpeas version 1.8.1 revision 1 license LGPL-2 set branch [join [lrange [split ${version} .] 0 1] .] description libpeas is a GObject-based plugins engine long_description ${description} maintainers devans openmaintainer categories gnome platforms darwin homepage https://wiki.gnome.org/Libpeas master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 5ae13b20221a4c61904933664bbaf19fe830524e \ sha256 ff0e7cd1f0da5dc1289efdd4662a06188f8f0fb088eac67abe05ffa66ba7751d depends_build port:pkgconfig \ port:intltool depends_lib port:gtk3 \ port:gobject-introspection \ port:glade \ port:seed pre-patch { copy ${worksrcpath}/configure ${worksrcpath}/configure.orig } patchfiles patch-configure.diff \ patch-loaders-python-peas-plugin-loader-python.c.diff configure.args --enable-gtk \ --enable-glade-catalog \ --enable-seed \ --disable-gjs \ --disable-python2 \ --disable-python3 \ --disable-silent-rules variant gjs description {Enable Javascript support using gjs} { depends_lib-append port:gjs configure.args-replace --disable-gjs --enable-gjs } # rdep py*-numpy +universal build fails (#40037) universal_variant no # supports one version each of python2 python3 in parallel variant python27 description {Use python 2.7} { depends_lib-append port:py27-gobject3 set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7 configure.pkg_config_path ${python_prefix}/lib/pkgconfig configure.env-append PYTHON2=${prefix}/bin/python2.7 \ PYTHON2_CONFIG=${python_prefix}/bin/python-config configure.args-replace --disable-python2 --enable-python2 } # python3 minimum version is 3.2.0 variant python32 conflicts python33 description {Use python 3.2} { depends_lib-append port:py32-gobject3 set python_prefix ${frameworks_dir}/Python.framework/Versions/3.2 configure.pkg_config_path ${python_prefix}/lib/pkgconfig configure.python ${prefix}/bin/python3.2 configure.env-append PYTHON3_CONFIG=${prefix}/bin/python3.2-config configure.cflags-append -L${python_prefix}/lib configure.args-replace --disable-python3 --enable-python3 } variant python33 conflicts python32 description {Use python 3.3} { depends_lib-append port:py33-gobject3 set python_prefix ${frameworks_dir}/Python.framework/Versions/3.3 configure.pkg_config_path ${python_prefix}/lib/pkgconfig configure.python ${prefix}/bin/python3.3 configure.env-append PYTHON3_CONFIG=${prefix}/bin/python3.3-config configure.cflags-append -L${python_prefix}/lib configure.args-replace --disable-python3 --enable-python3 } if {![variant_isset python33]} { default_variants +python27 +python32 } # port gjs is not universal if {![variant_isset universal]} { default_variants +gjs } post-activate { system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor" } livecheck.type gnome