summaryrefslogtreecommitdiffstats
path: root/system/wdiff
diff options
context:
space:
mode:
author B. Watson2021-08-10 00:00:34 +0200
committer Willy Sudiarto Raharjo2021-10-12 19:51:32 +0200
commit8f3702bc5b5103c449e8d30fcc8855694c534ec8 (patch)
treecef60a00c65084adc1edcb96b321b24fe092513f /system/wdiff
parent0bcd97b39d65b992d2314a21cc029cb9af9c52ff (diff)
downloadslackbuilds-8f3702bc5b5103c449e8d30fcc8855694c534ec8.tar.gz
system/wdiff: Add --enable-experimental.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/wdiff')
-rw-r--r--system/wdiff/wdiff.SlackBuild19
-rw-r--r--system/wdiff/wdiff.info2
2 files changed, 10 insertions, 11 deletions
diff --git a/system/wdiff/wdiff.SlackBuild b/system/wdiff/wdiff.SlackBuild
index b8b02a333a..4a06f09f4a 100644
--- a/system/wdiff/wdiff.SlackBuild
+++ b/system/wdiff/wdiff.SlackBuild
@@ -6,11 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210809 bkw: BUILD=2, --enable-experimental
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wdiff
VERSION=${VERSION:-1.2.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +24,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -57,15 +56,15 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# The --enable-experimental option builds mdiff, wdiff2, and unify. These
+# look useful enough to include in the build.
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
+ --enable-experimental \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -78,7 +77,7 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
rm -f $PKG/usr/info/dir
-gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+gzip -9 $PKG/usr/man/man1/*.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS BACKLOG COPYING ChangeLog NEWS README THANKS TODO \
diff --git a/system/wdiff/wdiff.info b/system/wdiff/wdiff.info
index 34dc1f18b6..acee229a9f 100644
--- a/system/wdiff/wdiff.info
+++ b/system/wdiff/wdiff.info
@@ -1,7 +1,7 @@
PRGNAM="wdiff"
VERSION="1.2.2"
HOMEPAGE="https://www.gnu.org/software/wdiff/"
-DOWNLOAD="http://ftp.gnu.org/gnu/wdiff/wdiff-1.2.2.tar.gz"
+DOWNLOAD="https://ftp.gnu.org/gnu/wdiff/wdiff-1.2.2.tar.gz"
MD5SUM="1c6ddd1f3106139ff9fe00e934df715f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""