Skip to content
Permalink
Browse files

devhelp: use upstream autogen.sh to reconfigure with our intltool.m4,…

… build deps, update post-activate.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@117644 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
dbevans committed Mar 7, 2014
1 parent a292121 commit 1f414321ad95ec0291803dabf81c57e45a8a0738
@@ -26,10 +26,12 @@ use_xz yes
checksums rmd160 8d855f485742a0bdc766591d36af09bdbea61801 \
sha256 a245b53824c6f2ff89245ff807bb2140bde74951ea6f1d759a0fd0c6959ca9f7

patchfiles patch-configure.diff

depends_build port:pkgconfig \
port:intltool
port:intltool \
port:gnome-common \
port:autoconf \
port:automake \
port:libtool

depends_lib port:desktop-file-utils \
port:gnome-icon-theme \
@@ -57,6 +59,17 @@ platform darwin {
}
}

patchfiles patch-configure.ac.diff

# use upstream autogen.sh to update m4/intltool.m4 using intltoolize and autoreconf

post-patch {
xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
copy ${worksrcpath}/libgd/libgd.m4 ${worksrcpath}/m4
}

configure.cmd ./autogen.sh

configure.args --with-webkit2=no \
--disable-schemas-compile

@@ -75,7 +88,7 @@ if {![variant_isset python26]} {
}

post-activate {
system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}
@@ -0,0 +1,21 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME="Devhelp"
ACLOCAL_FLAGS="-I libgd $ACLOCAL_FLAGS"

(test -f $srcdir/src/dh-main.c) || {
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
@@ -0,0 +1,13 @@
--- configure.ac.orig 2014-03-06 15:51:48.000000000 -0800
+++ configure.ac 2014-03-06 15:52:52.000000000 -0800
@@ -96,8 +96,8 @@
# i18n stuff
IT_PROG_INTLTOOL([0.40.0])

-AM_GNU_GETTEXT_VERSION([0.17])
-AM_GNU_GETTEXT([external])
+#AM_GNU_GETTEXT_VERSION([0.17])
+#AM_GNU_GETTEXT([external])

GETTEXT_PACKAGE=devhelp
AC_SUBST(GETTEXT_PACKAGE)

This file was deleted.

0 comments on commit 1f41432

Please sign in to comment.
You can’t perform that action at this time.