# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name gobject-introspection version 1.32.1 revision 3 set branch [join [lrange [split ${version} .] 0 1] .] categories gnome platforms darwin # library under LGPL-2+, tools under GPL-2+ license {LGPL GPL-2+} maintainers singingwolfboy openmaintainer description GObject Introspection long_description Gobject Introspection acts as a bridge between low-level C+GObject code and \ a managed runtime (JavaScript, Python, Java, Lua, .NET, Scheme, etc.). homepage http://live.gnome.org/GObjectIntrospection master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 7546532aed866451e0f934257c4b9bbc75f460e5 \ sha256 44f3fb933f76e4728818cc360cb5f9e2edcbdf9bc8a8f9aded99b3e3ef5cb858 depends_build port:pkgconfig depends_lib path:lib/pkgconfig/cairo.pc:cairo \ port:libffi \ port:python27 \ port:glib2 # disabled, because a different set of patches needs to be # applied depending on the glib2 version used and doing so # without specifying a variant would give different results # for the same configuration (i.e. non-reproducible build) #path:lib/pkgconfig/glib-2.0.pc:glib2 \ patchfiles patch-giscanner-scannerlexer.l-support-__inline__.patch \ patch-giscanner-shlib.py-use-absolute-linkage-paths.patch \ patch-giscanner-utils.py-use-absolute-linkage-paths.patch post-patch { reinplace "s|'cc'|'${configure.cc}'|g" ${worksrcpath}/giscanner/sourcescanner.py reinplace "s|libcairo-gobject.2.dylib|${prefix}/lib/libcairo-gobject.2.dylib|g" ${worksrcpath}/configure } configure.python ${prefix}/bin/python2.7 # GObject introspection doesn't build with tiger's make, #32358 platform darwin 8 { depends_build-append port:gmake build.cmd ${prefix}/bin/gmake } build.args CC="${configure.cc} ${configure.cc_archflags}" V=1 livecheck.type regex livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/ livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)} if {[catch {registry_active glib2-devel}] == 0} { # if the user has installed glib2-devel, use that by default default_variants +glib2_devel } variant glib2_devel description {Build against glib2-devel rather than glib2} { patchfiles-append patch-gir-gio-2.0.c-fix-wrong-naming.patch depends_lib-delete port:glib2 depends_lib-append port:glib2-devel }