summaryrefslogtreecommitdiff
path: root/system/fakeroot
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2016-11-04 06:13:39 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-11-04 06:13:39 +0700
commit731b7baf590ba3751c5f09e048749994d24cc1e7 (patch)
treea47b606ebeb28b5be87c09c4bd6c0a2bb0fc2697 /system/fakeroot
parentda055788f08760e5ba56ca14fd031e84d5ca0a5e (diff)
downloadslackbuilds-731b7baf590ba3751c5f09e048749994d24cc1e7.tar.gz
system/fakeroot: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/fakeroot')
-rw-r--r--system/fakeroot/README5
-rw-r--r--system/fakeroot/fakeroot.SlackBuild2
-rw-r--r--system/fakeroot/fakeroot.info2
3 files changed, 5 insertions, 4 deletions
diff --git a/system/fakeroot/README b/system/fakeroot/README
index 57e066a737..f0f7c8e1c3 100644
--- a/system/fakeroot/README
+++ b/system/fakeroot/README
@@ -3,5 +3,6 @@ root privileges. This is done by setting LD_PRELOAD to libfakeroot.so,
which provides wrappers around getuid, chown, chmod, mknod, stat, and
so on, thereby creating a fake root environment.
-By passing MANPO=no to the SlackBuild, you can skip installing of
-non-English man pages. If so, po4a is not required to build the package.
+po4a is optional, auto-detected dependency, needed for building non-English
+man pages. You can skip building them by passing MANPO=no to the build script.
+Passing MANPO=yes will make the script fail if po4a is not installed.
diff --git a/system/fakeroot/fakeroot.SlackBuild b/system/fakeroot/fakeroot.SlackBuild
index 85cae0239c..ed0dbfb4b7 100644
--- a/system/fakeroot/fakeroot.SlackBuild
+++ b/system/fakeroot/fakeroot.SlackBuild
@@ -87,7 +87,7 @@ CXXFLAGS="$SLKCFLAGS" \
make
make DESTDIR=$PKG install-exec
-if [ ${MANPO:-yes} != no ]; then
+if [ -z "$MANPO" -a -x /usr/bin/po4a ] || [ "$MANPO" = yes ]; then
cd doc
po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
cd ..
diff --git a/system/fakeroot/fakeroot.info b/system/fakeroot/fakeroot.info
index 0989c8bcb7..577d27e42d 100644
--- a/system/fakeroot/fakeroot.info
+++ b/system/fakeroot/fakeroot.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.21.orig.t
MD5SUM="be5c9a0e516869fca4a6758105968e5a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="po4a"
+REQUIRES=""
MAINTAINER="Andrzej Telszewski"
EMAIL="atelszewski@gmail.com"