[MacPorts] #33054: gtk3 @3.0.12 +introspection build failure
MacPorts
noreply at macports.org
Sat Jan 28 21:00:39 PST 2012
#33054: gtk3 @3.0.12 +introspection build failure
----------------------------------------+-----------------------------------
Reporter: msm@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: gtk3 gobject-introspection | Port: gtk3
----------------------------------------+-----------------------------------
While attempting to install gtk3 with introspection on a fresh
macports(OSX 10.7.2), I ran into several build errors pertaining to
missing .gir files. It turns out that atk, gdk-pixbuf2, and pango need
introspection enabled for gtk3 to build properly with introspection.
I modified the Portfiles for atk, gdk-pixbuf2, and pango and then
installed them again with +introspection, then gtk3 built just fine.
Following the guide of the Portfile for gtk3 I produced a few patches to
the other Portfiles.
{{{
--- Portfile-atk.orig 2012-01-28 23:22:44.000000000 -0500
+++ Portfile-atk 2012-01-28 16:34:30.000000000 -0500
@@ -1,5 +1,5 @@
# -*- 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$
+# $Id: Portfile 87586 2011-11-27 08:37:54Z dports at macports.org $
PortSystem 1.0
PortGroup archcheck 1.0
@@ -40,6 +40,13 @@
configure.args --enable-static \
--disable-introspection
+
+variant introspection description {Enable introspection} {
+ depends_lib-append port:gobject-introspection+ configure
.args-delete --disable-introspection
+ configure.args-append --enable-introspection
+}
+
livecheck.type regex
livecheck.url
http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
}}}
{{{
--- Portfile-gdk-pixbuf2.orig 2012-01-28 23:23:36.000000000 -0500
+++ Portfile-gdk-pixbuf2 2012-01-28 16:32:31.000000000 -0500
@@ -1,5 +1,5 @@
# -*- 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$
+# $Id: Portfile 87587 2011-11-27 08:41:00Z dports at macports.org $
PortSystem 1.0
@@ -50,6 +50,12 @@
configure.args --with-libjasper \
--enable-introspection=no
+variant introspection description {Enable introspection} {
+ depends_lib-append port:gobject-introspection
+ configure.args-delete --enable-introspection=no
+ configure.args-append --enable-introspection=yes
+}
+
test.run yes
test.target check
}}}
{{{
--- Portfile-pango.orig 2012-01-28 23:24:13.000000000 -0500
+++ Portfile-pango 2012-01-28 16:32:06.000000000 -0500
@@ -1,5 +1,5 @@
# -*- 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$
+# $Id: Portfile 87564 2011-11-25 20:53:28Z ryandesign at macports.org $
PortSystem 1.0
PortGroup archcheck 1.0
@@ -124,6 +124,12 @@
default_variants +x11
}
+variant introspection description {Enable introspection} {
+ depends_lib-append port:gobject-introspection
+ configure.args-delete --disable-introspection
+ configure.args-append --enable-introspection
+}
+
post-destroot {
if {![variant_isset x11]} {
xinstall -d ${destroot}${prefix}/etc/pango
}}}
hope this helps.
--
Ticket URL: <https://trac.macports.org/ticket/33054>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list