[106044] trunk/dports/gnome/gobject-introspection

jeremyhu at macports.org jeremyhu at macports.org
Mon May 13 18:31:00 PDT 2013


Revision: 106044
          https://trac.macports.org/changeset/106044
Author:   jeremyhu at macports.org
Date:     2013-05-13 18:31:00 -0700 (Mon, 13 May 2013)
Log Message:
-----------
gobject-introspection: Add missing dependency on libtool and default to glibtool rather than libtool as the executable name

Modified Paths:
--------------
    trunk/dports/gnome/gobject-introspection/Portfile

Added Paths:
-----------
    trunk/dports/gnome/gobject-introspection/files/glibtool_path.patch

Modified: trunk/dports/gnome/gobject-introspection/Portfile
===================================================================
--- trunk/dports/gnome/gobject-introspection/Portfile	2013-05-14 01:30:44 UTC (rev 106043)
+++ trunk/dports/gnome/gobject-introspection/Portfile	2013-05-14 01:31:00 UTC (rev 106044)
@@ -6,6 +6,7 @@
 
 name                gobject-introspection
 version             1.36.0
+revision            1
 set branch          [join [lrange [split ${version} .] 0 1] .]
 categories          gnome
 platforms           darwin
@@ -31,9 +32,12 @@
                     port:python27 \
                     path:lib/pkgconfig/glib-2.0.pc:glib2
 
+depends_run         bin:glibtool:libtool
+
 patchfiles          patch-giscanner-shlib.py-use-absolute-linkage-paths.patch \
                     patch-giscanner-utils.py-use-absolute-linkage-paths.patch \
-                    patch-giscanner-dumper.py-clang-is-not-msvc.patch
+                    patch-giscanner-dumper.py-clang-is-not-msvc.patch \
+                    glibtool_path.patch
 
 post-patch {
     reinplace "s|'cc'|'${configure.cc}'|g" ${worksrcpath}/giscanner/sourcescanner.py

Added: trunk/dports/gnome/gobject-introspection/files/glibtool_path.patch
===================================================================
--- trunk/dports/gnome/gobject-introspection/files/glibtool_path.patch	                        (rev 0)
+++ trunk/dports/gnome/gobject-introspection/files/glibtool_path.patch	2013-05-14 01:31:00 UTC (rev 106044)
@@ -0,0 +1,19 @@
+--- giscanner/utils.py.orig	2013-05-13 18:04:50.000000000 -0700
++++ giscanner/utils.py	2013-05-13 18:05:53.000000000 -0700
+@@ -140,13 +140,13 @@ def get_libtool_command(options):
+         return libtool_path.split(' ')
+ 
+     try:
+-        subprocess.check_call(['libtool', '--version'],
++        subprocess.check_call(['glibtool', '--version'],
+-                              stdout=open(os.devnull))
++                              stdout=open(os.devnull, 'wb'))
+     except (subprocess.CalledProcessError, OSError):
+         # If libtool's not installed, assume we don't need it
+         return None
+ 
+-    return ['libtool']
++    return ['glibtool']
+ 
+ 
+ def files_are_identical(path1, path2):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130513/7a3b6a3b/attachment.html>


More information about the macports-changes mailing list