aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-text-unaccent/perl-text-unaccent.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-text-unaccent/perl-text-unaccent.SlackBuild')
-rw-r--r--perl/perl-text-unaccent/perl-text-unaccent.SlackBuild27
1 files changed, 17 insertions, 10 deletions
diff --git a/perl/perl-text-unaccent/perl-text-unaccent.SlackBuild b/perl/perl-text-unaccent/perl-text-unaccent.SlackBuild
index b88bf28ea4b69..f90e0c962782d 100644
--- a/perl/perl-text-unaccent/perl-text-unaccent.SlackBuild
+++ b/perl/perl-text-unaccent/perl-text-unaccent.SlackBuild
@@ -6,6 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210822 bkw: BUILD=2.
+# - fix build on -current.
+# - update unac.[ch] to match latest system/unac.
+# - fix the perldoc/manpage.
+# - typo-fix and reflow README and slack-desc.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=perl-text-unaccent
@@ -22,9 +28,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
@@ -59,14 +62,15 @@ rm -rf $TARNAME-$VERSION
tar xvf $CWD/$TARNAME-$VERSION.tar.gz
cd $TARNAME-$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 {} \+
# combined patch made by diffing against the unac.c in system/unac.
-patch -p1 < $CWD/oe_lig_and_size_t.diff
+# also UNAC_VERSION has to be defined.
+patch -p1 < $CWD/ligatures.diff
+
+# fix minor issue with the docs.
+patch -p1 < $CWD/podfix.diff
# https://rt.cpan.org/Public/Bug/Display.html?id=124815
# patch for newer perls
@@ -76,7 +80,10 @@ perl Makefile.PL \
PREFIX=/usr \
INSTALLDIRS=vendor \
INSTALLVENDORMAN3DIR=/usr/man/man3
-make
+
+# 20210822 bkw: we have vsnprintf(), but somehow it's not getting defined
+# on -current, which breaks the build... so define it ourselves.
+make OPTIMIZE="$SLKCFLAGS -DHAVE_VSNPRINTF"
make test
make install DESTDIR=$PKG