Prevent build failure when gtkdocize is found at configure time then

junked by dpb(1) at build time.

breakage reported by sthen@
This commit is contained in:
ajacoutot 2022-07-05 21:15:15 +00:00
parent eb8f4d9b32
commit 76bfe615f5
2 changed files with 19 additions and 12 deletions

View File

@ -31,7 +31,7 @@ LIB_DEPENDS= sysutils/polkit
# /usr/local/share/dbus-1/system-services/
RUN_DEPENDS += x11/dbus,-suid
CONFIGURE_STYLE= gnu
CONFIGURE_STYLE= autoreconf
CONFIGURE_ARGS= --disable-pam-module \
--with-pam-module-dir=${LOCALBASE}/lib/security
@ -40,19 +40,10 @@ DEBUG_PACKAGES= ${BUILD_PACKAGES}
FAKE_FLAGS= DBUS_SYS_DIR=${TRUEPREFIX}/share/examples/consolekit/dbus-1 \
sysconfdir=${TRUEPREFIX}/share/examples/consolekit
BUILD_DEPENDS += devel/gettext,-tools
AUTORECONF= ./autogen.sh
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.15
BUILD_DEPENDS += ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS} \
devel/gettext,-tools \
devel/libtool
pre-configure:
cd ${WRKSRC} && \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
NOCONFIGURE=1 \
/bin/sh ./autogen.sh ${CONFIGURE_ARGS}
post-install:
rmdir ${WRKINST}/var/run/ConsoleKit

View File

@ -0,0 +1,16 @@
configure will pick up gtk-doc even though we pass --disable-gtk-doc and if
junked by dpb(1) we will error out with:
aclocal-1.15: error: aclocal: file 'm4/gtk-doc.m4' does not exist
Index: autogen.sh
--- autogen.sh.orig
+++ autogen.sh
@@ -10,7 +10,7 @@ test -z "$srcdir" && srcdir=.
exit 1
}
-GTKDOCIZE=$(which gtkdocize 2>/dev/null)
+#GTKDOCIZE=$(which gtkdocize 2>/dev/null)
if test -z $GTKDOCIZE; then
echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
rm -f gtk-doc.make