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>
This commit is contained in:
Huidae Cho 2021-11-02 18:35:29 +01:00 committed by Willy Sudiarto Raharjo
parent 62cb49928c
commit 4d2007c75b
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 34 additions and 6 deletions

View file

@ -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"

View file

@ -7,7 +7,7 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dwdiff PRGNAM=dwdiff
VERSION=${VERSION:-2.0.1} VERSION=${VERSION:-2.1.4}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -59,7 +59,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tgz tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
@ -68,8 +68,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \; -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 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' # This is one messed up makefile - and its configure doesn't accept '--build'
CC="gcc -fgnu89-inline" \ CC="gcc -fgnu89-inline" \

View file

@ -1,8 +1,8 @@
PRGNAM="dwdiff" PRGNAM="dwdiff"
VERSION="2.0.1" VERSION="2.1.4"
HOMEPAGE="https://os.ghalkes.nl/dwdiff.html" HOMEPAGE="https://os.ghalkes.nl/dwdiff.html"
DOWNLOAD="https://os.ghalkes.nl/dist/dwdiff-2.0.1.tgz" DOWNLOAD="https://os.ghalkes.nl/dist/dwdiff-2.1.4.tar.bz2"
MD5SUM="1d87b54187515ecbfa803df505999e79" MD5SUM="4e7b332b1e9e1a9b6f119f39532ed24f"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""

View file

@ -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;