[119543] trunk/dports/gnome/gtksourceview2

devans at macports.org devans at macports.org
Tue Apr 29 16:20:21 PDT 2014


Revision: 119543
          https://trac.macports.org/changeset/119543
Author:   devans at macports.org
Date:     2014-04-29 16:20:21 -0700 (Tue, 29 Apr 2014)
Log Message:
-----------
gtksourceview2: add +glade variant to enable building of a widget catalog for glade3, update m4/intltool.m4 and autoreconf to fix intltool configuration, buld deps.

Modified Paths:
--------------
    trunk/dports/gnome/gtksourceview2/Portfile

Added Paths:
-----------
    trunk/dports/gnome/gtksourceview2/files/patch-configure.ac.diff

Modified: trunk/dports/gnome/gtksourceview2/Portfile
===================================================================
--- trunk/dports/gnome/gtksourceview2/Portfile	2014-04-29 22:12:57 UTC (rev 119542)
+++ trunk/dports/gnome/gtksourceview2/Portfile	2014-04-29 23:20:21 UTC (rev 119543)
@@ -35,6 +35,7 @@
 
 depends_build   port:intltool \
 	        port:pkgconfig \
+                port:gnome-common \
                 port:gtk-doc
 
 depends_lib \
@@ -43,8 +44,20 @@
     port:gtk2 \
     port:libxml2
 
-patchfiles      patch-gtksourceview_gtksourceview-i18n.c.diff
+patchfiles      patch-configure.ac.diff \
+                patch-gtksourceview_gtksourceview-i18n.c.diff
 
+# update m4/intltool.m4 and autoreconf
+
+pre-configure {
+    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
+}
+
+use_autoreconf  yes
+autoreconf.args -fvi
+
+configure.args  --enable-compile-warnings=minimum
+
 test.run        yes
 test.target     check
 
@@ -53,12 +66,24 @@
     xinstall -d ${destroot}${docdir}
     xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.lib MAINTAINERS \
         NEWS README ${destroot}${docdir}
+
+# glade-3 expects catalog modules and libraries to have a .so suffix
+
+    if {[variant_isset glade]} {
+        set libdir ${prefix}/lib
+        ln -s ${libdir}/libgtksourceview-2.0.dylib ${destroot}${libdir}/libgtksourceview-2.0.so
+    }
 }
 
 variant quartz {
     depends_lib-append port:ige-mac-integration
 }
 
+variant glade description {Build glade catalog} {
+    depends_lib-append port:glade3
+    configure.args-append   --enable-glade-catalog
+}
+
 livecheck.type  regex
 livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
 livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}

Added: trunk/dports/gnome/gtksourceview2/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/gnome/gtksourceview2/files/patch-configure.ac.diff	                        (rev 0)
+++ trunk/dports/gnome/gtksourceview2/files/patch-configure.ac.diff	2014-04-29 23:20:21 UTC (rev 119543)
@@ -0,0 +1,14 @@
+--- configure.ac.orig	2014-04-29 15:50:35.000000000 -0700
++++ configure.ac	2014-04-29 15:52:20.000000000 -0700
+@@ -99,8 +99,9 @@
+ IT_PROG_INTLTOOL([0.40])
+ 
+ AC_SUBST([GETTEXT_PACKAGE], [gtksourceview-2.0])
+-AM_GNU_GETTEXT_VERSION([0.17])
+-AM_GLIB_GNU_GETTEXT
++dnl IT_PROG_INTLTOOL and GNU_GETTEXT macros cannot be used together
++dnl AM_GNU_GETTEXT_VERSION([0.17])
++dnl AM_GLIB_GNU_GETTEXT
+ AC_DEFINE([GETTEXT_PACKAGE], [PACKAGE_TARNAME], [Define to the gettext package name.])
+ 
+ # Documentation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140429/3c5eaa97/attachment.html>


More information about the macports-changes mailing list