aboutsummaryrefslogtreecommitdiff
path: root/office/evince/evince.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/evince/evince.SlackBuild')
-rw-r--r--office/evince/evince.SlackBuild79
1 files changed, 33 insertions, 46 deletions
diff --git a/office/evince/evince.SlackBuild b/office/evince/evince.SlackBuild
index db10141d8984..2bf4182aa0b6 100644
--- a/office/evince/evince.SlackBuild
+++ b/office/evince/evince.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for evince
-# Copyright 2009 Andrew Brouwers <abrouwers@gmail.com>
+# Copyright 2009 Andrew Brouwers <email removed>
# Copyright 2009-2014, Michiel van Wessem, Manchester, United Kingdom.
# Copyright 2019, B. Watson
# All rights reserved.
@@ -26,6 +26,7 @@
# Now maintained by B. Watson <yalhcru@gmail.com>
+# 20210730 bkw: update for v40.4 and slackware-current. Add libhandy dep.
# 20191231 bkw:
# - take over maintenance
# - update for v3.28.5.3, which is the last version that will build with
@@ -35,7 +36,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=evince
-VERSION=${VERSION:-3.34.2}
+VERSION=${VERSION:-40.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -86,54 +87,40 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-# If we have any patches apply them here:
-# http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-text/evince/files/
-
-# 20191231 bkw: I'll leave this here, but I have NOT tested it.
-# It was never documented in README, caveat hactor.
-NLS=${NLS:-YES}
-if [ "$NLS" != "YES" ]; then
- # disable NLS - we're going for a small package here.
- rm po/*.po
- sed -i -e 's/USE_NLS=yes/USE_NLS=no/g' \
- -e 's/ENABLE_NLS 1/ENABLE_NLS 0/g' configure
-fi
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --enable-dbus \
- --enable-pdf \
- --enable-tiff \
- --enable-djvu \
- --enable-t1lib \
- --enable-comics \
- --enable-dvi \
- --enable-ps \
- --enable-xps \
- --enable-introspection \
- --disable-static \
- --disable-nautilus \
- --disable-maintainer-mode \
- --without-gspell \
- --with-systemduserunitdir=no \
- --build=$ARCH-slackware-linux
-
-make V=1
-make install-strip DESTDIR=$PKG
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dstrip=true \
+ -Ddbus=${DBUS:-true} \
+ -Dcomics=enabled \
+ -Ddjvu=enabled \
+ -Ddvi=enabled \
+ -Dt1lib=enabled \
+ -Dpdf=enabled \
+ -Dps=enabled \
+ -Dtiff=enabled \
+ -Dnautilus=false \
+ -Dgspell=disabled \
+ -Dsystemduserunitdir=no
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
-rm -rf $PKG/{usr/share/gtk-doc,etc}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING NEWS README.md MAINTAINERS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING NEWS *.md MAINTAINERS NEWS NOTES TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install