[145497] trunk/dports/gnome/grisbi
devans at macports.org
devans at macports.org
Sun Feb 7 11:40:19 PST 2016
Revision: 145497
https://trac.macports.org/changeset/145497
Author: devans at macports.org
Date: 2016-02-07 11:40:19 -0800 (Sun, 07 Feb 2016)
Log Message:
-----------
grisbi: add optional dependencies to avoid opportunitic linking, reconfigure using autogen.sh from upstream git for intltool 0.51 compatibility, increment revision.
Modified Paths:
--------------
trunk/dports/gnome/grisbi/Portfile
Added Paths:
-----------
trunk/dports/gnome/grisbi/files/
trunk/dports/gnome/grisbi/files/autogen.sh
Modified: trunk/dports/gnome/grisbi/Portfile
===================================================================
--- trunk/dports/gnome/grisbi/Portfile 2016-02-07 15:23:09 UTC (rev 145496)
+++ trunk/dports/gnome/grisbi/Portfile 2016-02-07 19:40:19 UTC (rev 145497)
@@ -5,6 +5,7 @@
name grisbi
version 1.0.0
+revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
categories gnome
platforms darwin
@@ -28,11 +29,24 @@
sha256 8a23d26777666814d918702ad9207bac433abd3ac71568d53f7c485670f92c55
depends_build port:pkgconfig \
- port:intltool
+ port:intltool \
+ port:autoconf \
+ port:automake \
+ port:libtool
depends_lib port:gtk2 \
- port:libxml2
+ port:libxml2 \
+ port:goffice08 \
+ path:lib/libssl.dylib:openssl
+# reconfigure using autogen.sh from upstream git for intltool 0.51 compatibility
+
+post-patch {
+ xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
+}
+
+configure.cmd ./autogen.sh && ./configure
+
configure.args --disable-silent-rules \
--without-ofx
Added: trunk/dports/gnome/grisbi/files/autogen.sh
===================================================================
--- trunk/dports/gnome/grisbi/files/autogen.sh (rev 0)
+++ trunk/dports/gnome/grisbi/files/autogen.sh 2016-02-07 19:40:19 UTC (rev 145497)
@@ -0,0 +1,96 @@
+#!/bin/sh
+#
+# autogen.sh glue for Grisbi
+# $Id: autogen.sh,v 1.15 2009/08/23 07:27:46 pbiava Exp $
+#
+# Requires: automake, autoconf, dpkg-dev
+
+#
+# Check if autoconf and automake are installed
+#
+autoconf --version >/dev/null 2>&1
+if [ $? -ne 0 ] ; then
+ echo "Please install autoconf and rerun this script !"
+ exit 1
+fi
+automake --version >/dev/null 2>&1
+if [ $? -ne 0 ] ; then
+ echo "Please install automake and rerun this script !"
+ exit 1
+fi
+echo "automake and autoconf are installed"
+
+# test for some distribution...
+
+PATH_AUTOMAKE=$(ls -1d /usr/share/automake* 2>/dev/null | sort -gbu | tail -1)
+
+if ! test -x $PATH_AUTOMAKE
+then
+ echo "Error: directory $PATH_AUTOMAKE does not exist"
+fi
+
+# Refresh GNU autotools toolchain.
+for i in config.guess config.sub missing install-sh mkinstalldirs ; do
+ test -r $PATH_AUTOMAKE/${i} && {
+ rm -f ${i}
+ cp $PATH_AUTOMAKE/${i} .
+ }
+ if test -r ${i} ; then
+ chmod 755 ${i}
+ fi
+done
+
+#
+# Apple's Developer Tools have a "libtool" that has nothing to do with
+# the GNU libtool; they call the latter "glibtool". They also call
+# libtoolize "glibtoolize".
+#
+# Check for "glibtool" first.
+# Borrowed from ethereal
+#
+LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \
+ sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'`
+if test -z "$LTVER"
+then
+ LTVER=`libtool --version | grep ' libtool)' | \
+ sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' `
+ LIBTOOLIZE=libtoolize
+else
+ LIBTOOLIZE=glibtoolize
+fi
+case "$LTVER" in
+'' | 0.* | 1.[0-3]* )
+
+ cat >&2 <<_EOF_
+
+ You must have libtool 1.4 or later installed to compile $PROJECT.
+ Download the appropriate package for your distribution/OS,
+ or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
+_EOF_
+ exit 1
+ ;;
+esac
+
+$LIBTOOLIZE --force --copy
+
+intltoolize --force --copy --automake
+
+autoreconf --verbose --force --install
+
+#
+# Check if the configure script is created
+#
+echo
+if [ ! -f ./configure ] ; then
+ echo "The configure script was not created !"
+ echo "You can't compile Grisbi."
+ exit 1
+fi
+echo "The configure script was successfully created."
+echo "To compile Grisbi, please run :"
+echo " ./configure"
+echo " make"
+echo " make install"
+echo
+
+exit 0
Property changes on: trunk/dports/gnome/grisbi/files/autogen.sh
___________________________________________________________________
Added: svn:executable
+ *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160207/62ebedf7/attachment.html>
More information about the macports-changes
mailing list