Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1405 from mariux64/update-xpdf-402
xpdf: update to 4.02
  • Loading branch information
wwwutz committed Oct 24, 2019
2 parents ebfa236 + 7968c5d commit 41284fb
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions xpdf.be0
@@ -1,10 +1,10 @@
#!/bin/env beesh

# BEE_VERSION xpdf-3.04-0
# BEE_VERSION xpdf-4.02-1

BEE_CONFIGURE=compat
# BEE_CONFIGURE=compat

SRCURL[0]="ftp://ftp.foolabs.com/pub/xpdf/xpdf-${PKGVERSION}.tar.gz"
SRCURL[0]="https://xpdfreader-dl.s3.amazonaws.com/xpdf-${PKGVERSION}.tar.gz"

# PATCHURL+=()

Expand All @@ -22,13 +22,18 @@ SRCURL[0]="ftp://ftp.foolabs.com/pub/xpdf/xpdf-${PKGVERSION}.tar.gz"
# bee_patch "${@}"
#}

mee_patch_post() {
sed -i -e '/\slastSize = size();/ a \ hide();\n event->ignore();' ${S}/xpdf-qt/XpdfViewer.cc
}

mee_configure() {
bee_configure \
--with-freetype2-includes=/usr/include/freetype2 \
--enable-opi \
--enable-multithreaded \
--enable-wordlist \
--enable-a4-paper
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_COLOR_MAKEFILE=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_PREFIX_PATH=/usr/local/qt5 \
-DOPI_SUPPORT=ON \
-DA4_PAPER=ON
}

#mee_build() {
Expand All @@ -41,9 +46,9 @@ mee_configure() {

mee_install_post() {
# avoid conflicts with poppler. prefix all xpdf files with 'x'
for b in pdfdetach pdffonts pdfimages pdfinfo pdftoppm pdftops pdftotext; do
for b in pdfdetach pdffonts pdfimages pdfinfo pdftohtml pdftopng pdftoppm pdftops pdftotext; do
mv -v ${D}${BINDIR}/${b} ${D}${BINDIR}/x${b}
mv -v ${D}${MANDIR}/man1/${b}.1 ${D}${MANDIR}/man1/x${b}.1
perl -pi -e 's/(pdfdetach|pdffonts|pdfimages|pdfinfo|pdftoppm|pdftops|pdftotext)/x$1/g' ${D}${MANDIR}/man1/x${b}.1
perl -pi -e 's/(pdfdetach|pdffonts|pdfimages|pdfinfo|pdftoppm|pdftops|pdftotext|pdftohtml|pdftopng)/x$1/g' ${D}${MANDIR}/man1/x${b}.1
done
}

0 comments on commit 41284fb

Please sign in to comment.