# -*- 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: Portfile 152421 2016-09-08 15:52:21Z devans@macports.org $ PortSystem 1.0 PortGroup gobject_introspection 1.0 PortGroup compiler_blacklist_versions 1.0 name libgit2-glib version 0.24.4 license LGPL-2.1 set branch [join [lrange [split ${version} .] 0 1] .] description Glib wrapper library around the libgit2 git access library. long_description ${description} maintainers juanrgar devans openmaintainer categories gnome devel platforms darwin homepage https://wiki.gnome.org/action/show/Apps/Gitg master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 e472bbaed8394d8298a46feb98b7785c370e95e7 \ sha256 3a211f756f250042f352b3070e7314a048c88e785dba9d118b851253a7c60220 depends_build port:pkgconfig depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:curl \ port:libgit2 \ port:libssh2 \ port:vala patchfiles patch-configure.ac.diff gobject_introspection yes compiler.blacklist *gcc* {clang < 300} use_autoreconf yes autoreconf.args -fvi configure.args --disable-silent-rules \ --enable-compile-warnings=minimum \ --enable-vala \ --enable-python=no # requires python >= 3.2.3 variant python34 description {Enable Python support, using python34} { configure.args-delete --enable-python=no configure.args-append --enable-python=yes depends_lib-append port:py34-gobject3 configure.python ${prefix}/bin/python3.4 configure.pkg_config_path-append ${frameworks_dir}/Python.framework/Versions/3.4/lib/pkgconfig/ } variant python35 description {Enable Python support, using python35} { configure.args-delete --enable-python=no configure.args-append --enable-python=yes depends_lib-append port:py35-gobject3 configure.python ${prefix}/bin/python3.5 configure.pkg_config_path-append ${frameworks_dir}/Python.framework/Versions/3.5/lib/pkgconfig/ } if {![variant_isset python35]} { default_variants +python34 } livecheck.type gnome-with-unstable