# -*- 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 PortGroup gobject_introspection 1.0 name libpeas version 1.20.0 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/Projects/Libpeas master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 f1a5a5e5ef5f6d6efe01b4d92b5e7288c7a69586 \ sha256 f392fffe2dc00072a51bb2a1b274224a06bdc5f9c3b3c0ac4816909e9933d354 depends_build port:pkgconfig \ port:intltool \ port:gtk-doc \ port:gnome-common \ port:autoconf \ port:automake \ port:libtool depends_lib port:gtk3 gobject_introspection yes patchfiles patch-configure.ac.diff # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh configure.args --enable-gtk \ --disable-glade-catalog \ --disable-lua5.1 \ --disable-luajit \ --disable-python2 \ --disable-python3 \ --disable-silent-rules variant glade description {Enable glade catalog support} { depends_lib-append port:glade configure.args-replace --disable-glade-catalog --enable-glade-catalog } # supports one version each of python2 python3 in parallel variant python27 description {Enable Python 2.7 plugin support} { 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 } default_variants +python27 # python3 minimum version is 3.2.0 variant python34 conflicts python35 description {Enable Python 3.4 plugin support} { depends_lib-append port:py34-gobject3 set python_prefix ${frameworks_dir}/Python.framework/Versions/3.4 configure.pkg_config_path ${python_prefix}/lib/pkgconfig configure.python ${prefix}/bin/python3.4 configure.env-append PYTHON3_CONFIG=${prefix}/bin/python3.4-config configure.cflags-append -L${python_prefix}/lib configure.args-replace --disable-python3 --enable-python3 } variant python35 conflicts python34 description {Enable Python 3.5 plugin support} { depends_lib-append port:py35-gobject3 set python_prefix ${frameworks_dir}/Python.framework/Versions/3.5 configure.pkg_config_path ${python_prefix}/lib/pkgconfig configure.python ${prefix}/bin/python3.5 configure.env-append PYTHON3_CONFIG=${prefix}/bin/python3.5-config configure.cflags-append -L${python_prefix}/lib configure.args-replace --disable-python3 --enable-python3 } if {![variant_isset python35]} { default_variants +python34 } # glade expects catalog modules and libraries to have a .so suffix post-destroot { if {[variant_isset glade]} { set libdir ${prefix}/lib ln -s ${libdir}/libpeas-gtk-1.0.dylib ${destroot}${libdir}/libpeas-gtk-1.0.so } } post-activate { system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor" } livecheck.type gnome