aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorHuidae Cho <grass4u@gmail.com>2021-11-02 18:35:29 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-11-05 22:56:43 +0700
commit4d2007c75b580130a9718e18534566a1508b0516 (patch)
tree4a28febf9140a3849b5a003708de8ebb050575a1 /misc
parent62cb49928ce6d59e925280d3ff088857ef3b9781 (diff)
misc/dwdiff: Updated for version 2.1.4.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/dwdiff/config.pkg.patch12
-rw-r--r--misc/dwdiff/dwdiff.SlackBuild8
-rw-r--r--misc/dwdiff/dwdiff.info6
-rw-r--r--misc/dwdiff/src-option.c.patch14
4 files changed, 34 insertions, 6 deletions
diff --git a/misc/dwdiff/config.pkg.patch b/misc/dwdiff/config.pkg.patch
new file mode 100644
index 0000000000000..2cf3efd515e7d
--- /dev/null
+++ b/misc/dwdiff/config.pkg.patch
@@ -0,0 +1,12 @@
+diff -ru dwdiff-2.1.4.orig/config.pkg dwdiff-2.1.4/config.pkg
+--- dwdiff-2.1.4.orig/config.pkg 2020-12-13 06:38:01.000000000 -0500
++++ dwdiff-2.1.4/config.pkg 2021-10-26 09:04:45.389583300 -0400
+@@ -11,6 +11,8 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
++INSTALLDIRS="mandir"
++
+ EXTENSIONS="c verbose_compile gettext"
+
+ SWITCHES="+unicode +dwfilter"
diff --git a/misc/dwdiff/dwdiff.SlackBuild b/misc/dwdiff/dwdiff.SlackBuild
index cbca68bd60f31..82e611073ec80 100644
--- a/misc/dwdiff/dwdiff.SlackBuild
+++ b/misc/dwdiff/dwdiff.SlackBuild
@@ -7,7 +7,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dwdiff
-VERSION=${VERSION:-2.0.1}
+VERSION=${VERSION:-2.1.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -59,7 +59,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -68,8 +68,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \;
+# Patch for configure --mandir
+patch -p1 < $CWD/config.pkg.patch
# Patch for a build failure if not building with unicode.
-patch -p1 < $CWD/doDiff.c.patch
+patch -p1 < $CWD/src-option.c.patch
# This is one messed up makefile - and its configure doesn't accept '--build'
CC="gcc -fgnu89-inline" \
diff --git a/misc/dwdiff/dwdiff.info b/misc/dwdiff/dwdiff.info
index baaf8cfee3131..a5f37453fbd75 100644
--- a/misc/dwdiff/dwdiff.info
+++ b/misc/dwdiff/dwdiff.info
@@ -1,8 +1,8 @@
PRGNAM="dwdiff"
-VERSION="2.0.1"
+VERSION="2.1.4"
HOMEPAGE="https://os.ghalkes.nl/dwdiff.html"
-DOWNLOAD="https://os.ghalkes.nl/dist/dwdiff-2.0.1.tgz"
-MD5SUM="1d87b54187515ecbfa803df505999e79"
+DOWNLOAD="https://os.ghalkes.nl/dist/dwdiff-2.1.4.tar.bz2"
+MD5SUM="4e7b332b1e9e1a9b6f119f39532ed24f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/misc/dwdiff/src-option.c.patch b/misc/dwdiff/src-option.c.patch
new file mode 100644
index 0000000000000..682fbbea8562b
--- /dev/null
+++ b/misc/dwdiff/src-option.c.patch
@@ -0,0 +1,14 @@
+diff -ru dwdiff-2.1.4.orig/src/option.c dwdiff-2.1.4/src/option.c
+--- dwdiff-2.1.4.orig/src/option.c 2020-12-13 06:38:01.000000000 -0500
++++ dwdiff-2.1.4/src/option.c 2021-10-26 08:48:13.189583300 -0400
+@@ -470,8 +470,10 @@
+ option.output = stdout;
+
+ initOptions();
++#ifdef USE_UNICODE
+ UErrorCode error = U_ZERO_ERROR;
+ ONLY_UNICODE(option.decomposition = unorm2_getNFDInstance(&error);)
++#endif
+
+ option.needStartStop = true;
+