[134433] trunk/dports/gnome/gnome-menus

devans at macports.org devans at macports.org
Wed Mar 25 09:45:55 PDT 2015


Revision: 134433
          https://trac.macports.org/changeset/134433
Author:   devans at macports.org
Date:     2015-03-25 09:45:55 -0700 (Wed, 25 Mar 2015)
Log Message:
-----------
gnome-menus: reconfigure using autogen.sh for intltool 0.51 compatibility.

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

Added Paths:
-----------
    trunk/dports/gnome/gnome-menus/files/
    trunk/dports/gnome/gnome-menus/files/autogen.sh

Modified: trunk/dports/gnome/gnome-menus/Portfile
===================================================================
--- trunk/dports/gnome/gnome-menus/Portfile	2015-03-25 16:31:34 UTC (rev 134432)
+++ trunk/dports/gnome/gnome-menus/Portfile	2015-03-25 16:45:55 UTC (rev 134433)
@@ -26,20 +26,22 @@
 
 depends_build   port:pkgconfig \
                 port:intltool \
-                port:gnome-common
+                port:gnome-common \
+                port:autoconf \
+                port:automake \
+                port:libtool
 
 depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2
 
 gobject_introspection yes
 
-# update m4/intltool.m4 and autoreconf
+# reconfigure using autogen.sh for intltool 0.51 compatibility
 
-pre-configure {
-    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
+post-patch {
+    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
 }
 
-use_autoreconf  yes
-autoreconf.args -fvi
+configure.cmd       ./autogen.sh
 
 configure.args  --disable-silent-rules
 

Added: trunk/dports/gnome/gnome-menus/files/autogen.sh
===================================================================
--- trunk/dports/gnome/gnome-menus/files/autogen.sh	                        (rev 0)
+++ trunk/dports/gnome/gnome-menus/files/autogen.sh	2015-03-25 16:45:55 UTC (rev 134433)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+PKG_NAME="gnome-menus"
+REQUIRED_AUTOMAKE_VERSION=1.9
+REQUIRED_M4MACROS=introspection.m4
+
+#(test -f $srcdir/configure.ac \
+#  && test -f $srcdir/$PKG_NAME.doap) || {
+#    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+#    echo " top-level $PKG_NAME directory"
+#    exit 1
+#}
+
+which gnome-autogen.sh || {
+    echo "You need to install gnome-common."
+    exit 1
+}
+
+. gnome-autogen.sh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150325/03de946a/attachment.html>


More information about the macports-changes mailing list