python/pypoppler: Patched to fix building with latest poppler.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-01-31 08:55:04 +07:00
parent 0a9d87ea61
commit 3a8ce1401b
2 changed files with 27 additions and 8 deletions

View File

@ -0,0 +1,20 @@
--- poppler.defs 2009-09-27 16:07:59.000000000 +0700
+++ poppler.defs 2015-12-22 16:36:14.000000000 +0600
@@ -579,16 +579,4 @@
)
-(define-enum Orientation
- (in-module "Poppler")
- (c-name "PopplerOrientation")
- (gtype-id "POPPLER_TYPE_ORIENTATION")
- (values
- '("portrait" "POPPLER_ORIENTATION_PORTRAIT")
- '("landscape" "POPPLER_ORIENTATION_LANDSCAPE")
- '("upsidedown" "POPPLER_ORIENTATION_UPSIDEDOWN")
- '("seascape" "POPPLER_ORIENTATION_SEASCAPE")
- )
-)
-
(define-enum PageTransitionType
(in-module "Poppler")

View File

@ -42,16 +42,17 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -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 {} \;
# Fix building with poppler 0.15+ and some upstream fixes.
patch -p0 < $CWD/patches/pypoppler-0.12.1-75_74.diff
patch -p0 < $CWD/patches/pypoppler-0.12.1-79_78.diff
patch -p0 < $CWD/patches/poppler0.15.0-changes.patch
patch -p1 < $CWD/patches/pypoppler-0.12.1-poppler-0.18.0-minimal-fix-revisited.patch
patch -p0 < $CWD/patches/python-poppler-0.12.1-poppler-0.39.0-changes.patch
autoreconf -ivf
@ -64,13 +65,11 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS ChangeLog COPYING INSTALL NEWS \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install