office/evince: Updated for version 40.4.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-07-30 14:54:29 -04:00 committed by Willy Sudiarto Raharjo
parent f75a6dea04
commit 14d5175ca7
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 37 additions and 58 deletions

View file

@ -13,11 +13,3 @@ Evince is specifically designed to support the following file formats:
* CBR/CBZ (comic books)
* DVI
* XPS (requires optional dependency libgxps)
This uses dconf (runtime-only) to save various settings (and even
then, not ALL settings are saved).
Note: this is the last version I could get to compile and run on Slackware
14.2. Newer versions of evince require newer glib2 and gtk+3 libraries
than 14.2 provides, so please don't email me asking for updates (you'll
have to wait until Slackware 15.0 is released).

View file

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

View file

@ -1,10 +1,10 @@
PRGNAM="evince"
VERSION="3.34.2"
VERSION="40.4"
HOMEPAGE="http://projects.gnome.org/evince/"
DOWNLOAD="https://download.gnome.org/sources/evince/3.34/evince-3.34.2.tar.xz"
MD5SUM="9e9e82fa8f6045ad7817157d9335d185"
DOWNLOAD="https://download.gnome.org/sources/evince/40/evince-40.4.tar.xz"
MD5SUM="bf78a8e8c384bbd2780b7be0ac917e79"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="libhandy"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"