forked from ports/contrib
preload: clean up check for help2man
This commit is contained in:
parent
0206d43be1
commit
cbc9939984
@ -1,3 +1,4 @@
|
||||
7732aa62c999e42f03ac6dfa13825e33 preload-0.6.3-check-help2man.patch
|
||||
1149e26ee70a6f74ae91a547104a9b52 preload-0.6.3-memcached-default.patch
|
||||
31e0ca4edcd8582049c69e711f6eb223 preload-0.6.3-statedir-fix.patch
|
||||
4ebb8463b3b7a323ad8b7ffe89578f6e preload-0.6.3.tar.gz
|
||||
|
@ -10,22 +10,16 @@ release=1
|
||||
source=(http://dl.sourceforge.net/sourceforge/preload/preload-$version.tar.gz
|
||||
rc.preload
|
||||
$name-$version-memcached-default.patch
|
||||
$name-$version-statedir-fix.patch)
|
||||
$name-$version-statedir-fix.patch
|
||||
$name-$version-check-help2man.patch)
|
||||
|
||||
build() {
|
||||
cd preload-$version
|
||||
patch -p 1 -i $SRC/$name-$version-memcached-default.patch
|
||||
patch -p 1 -i $SRC/$name-$version-statedir-fix.patch
|
||||
patch -p 1 -i $SRC/$name-$version-check-help2man.patch
|
||||
autoreconf
|
||||
|
||||
# preload(8) is generated by help2man if available, otherwise
|
||||
# it only contains "help2man is required to generate this file."
|
||||
##rm -rv usr/man
|
||||
if [ -z "$(pkginfo -i |grep '^help2man ')" ]; then
|
||||
echo 'Install help2man.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man \
|
||||
|
15
preload/preload-0.6.3-check-help2man.patch
Normal file
15
preload/preload-0.6.3-check-help2man.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff -pruN preload-0.6.3.orig/configure.ac preload-0.6.3/configure.ac
|
||||
--- preload-0.6.3.orig/configure.ac 2008-07-29 23:58:51.018143308 +1000
|
||||
+++ preload-0.6.3/configure.ac 2008-07-30 00:29:37.524144736 +1000
|
||||
@@ -24,6 +24,11 @@ AC_SUBST(MAILING_LIST)
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
||||
+AC_CHECK_PROG([have_help2man],[help2man],[yes],[no],[/usr/bin])
|
||||
+if test $have_help2man = no; then
|
||||
+ AC_MSG_ERROR([Missing help2man.])
|
||||
+fi
|
||||
+
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_TIME
|
Loading…
x
Reference in New Issue
Block a user