summaryrefslogtreecommitdiff
path: root/community/pdf2djvu
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-05-28 17:20:00 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-05-28 17:20:00 -0300
commit6575af67294a57126aa9408ee255db0e7be47bcd (patch)
tree0ebeb47514aec8981445ad7404d961ade8a41dc7 /community/pdf2djvu
parent15715eb69d409c77752f91aa6d8080ecc0262af6 (diff)
parentedec45419def1b81bd663a2859684ef55ba56269 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/collectd/PKGBUILD community-testing/collectd/install community-testing/collectd/libperl.patch community-testing/collectd/rc.d community-testing/collectd/rtnl_dump_filter.patch community-testing/freeradius/PKGBUILD community-testing/freeradius/freeradius.install community-testing/freeradius/krb5-build-fix.patch community-testing/freeradius/radiusd community-testing/inn/PKGBUILD community-testing/inn/inn.install community-testing/inn/innd.conf community-testing/inn/innd.rc community-testing/inn/nnrpd.conf community-testing/inn/nnrpd.rc community-testing/inn/site.make.patch community-testing/libvirt/PKGBUILD community-testing/linux-tools/PKGBUILD community-testing/linux-tools/cpupower.conf community-testing/linux-tools/cpupower.rc community-testing/linux-tools/cpupower.service community-testing/perl-berkeleydb/PKGBUILD community-testing/perl-class-methodmaker/PKGBUILD community-testing/perl-clone/PKGBUILD community-testing/perl-crypt-blowfish/PKGBUILD community-testing/perl-crypt-des/PKGBUILD community-testing/perl-curses/PKGBUILD community-testing/perl-data-structure-util/PKGBUILD community-testing/perl-datetime/PKGBUILD community-testing/perl-device-serialport/PKGBUILD community-testing/perl-file-rsyncp/PKGBUILD community-testing/perl-fuse/PKGBUILD community-testing/perl-gd/PKGBUILD community-testing/perl-gssapi/PKGBUILD community-testing/perl-html-strip/PKGBUILD community-testing/perl-inline-java/PKGBUILD community-testing/perl-io-dirent/PKGBUILD community-testing/perl-io-tty/PKGBUILD community-testing/perl-json-xs/PKGBUILD community-testing/perl-libapreq2/PKGBUILD community-testing/perl-mail-box-parser-c/PKGBUILD community-testing/perl-mail-transport-dbx/PKGBUILD community-testing/perl-net-dbus/PKGBUILD community-testing/perl-net-libidn/PKGBUILD community-testing/perl-params-classify/PKGBUILD community-testing/perl-params-validate/PKGBUILD community-testing/perl-string-crc32/PKGBUILD community-testing/perl-text-charwidth/PKGBUILD community-testing/perl-text-kakasi/ChangeLog community-testing/perl-text-kakasi/PKGBUILD community-testing/perl-tie-hash-indexed/PKGBUILD community-testing/perl-www-curl/PKGBUILD community-testing/perl-xmms/PKGBUILD community-testing/pork/PKGBUILD community-testing/rxvt-unicode/PKGBUILD community-testing/rxvt-unicode/urxvt-tabbed.desktop community-testing/rxvt-unicode/urxvt.desktop community-testing/rxvt-unicode/urxvtc.desktop community-testing/znc/PKGBUILD community/blackbox/PKGBUILD community/ccrtp/PKGBUILD community/gambas2/poppler-0.20.patch community/gambas3/poppler-0-20.patch community/libunistring/PKGBUILD community/libzrtpcpp/PKGBUILD community/mplayer2/PKGBUILD community/pdf2djvu/poppler-0.20.patch community/sword/PKGBUILD community/xiphos/PKGBUILD core/procps/PKGBUILD extra/dvdrip/PKGBUILD extra/gstreamer0.10-good/PKGBUILD extra/inkscape/poppler20.patch extra/iperf/PKGBUILD extra/libreoffice/PKGBUILD extra/libreoffice/fix_broken_hebrew_wordwrapping.diff extra/libreoffice/libreoffice-base.install extra/libreoffice/libreoffice-calc.install extra/libreoffice/libreoffice-common.install extra/libreoffice/libreoffice-draw.install extra/libreoffice/libreoffice-impress.install extra/libreoffice/libreoffice-writer.install extra/mail-notification/PKGBUILD extra/nxserver/PKGBUILD extra/php-suhosin/PKGBUILD extra/poppler/PKGBUILD extra/streamtuner/PKGBUILD extra/systemd/PKGBUILD extra/tunepimp/PKGBUILD mozilla-testing/iceweasel-libre/iceweasel.install multilib/wine/PKGBUILD staging/gimp-devel/gimp-devel.install testing/consolekit/PKGBUILD testing/cryptsetup/PKGBUILD testing/cryptsetup/encrypt_hook testing/cryptsetup/encrypt_install testing/dmraid/PKGBUILD testing/dmraid/dmraid_install testing/graphviz/PKGBUILD testing/imagemagick/PKGBUILD testing/imagemagick/perlmagick.rpath.patch testing/irssi/PKGBUILD testing/kdebindings-perlkde/PKGBUILD testing/kdebindings-perlqt/PKGBUILD testing/lvm2/PKGBUILD testing/lvm2/lvm2_hook testing/lvm2/lvm2_install testing/mdadm/PKGBUILD testing/mdadm/mdadm_install testing/mdadm/mdadm_udev_install testing/mkinitcpio-nfs-utils/PKGBUILD testing/net-snmp/snmpd.rc testing/perl-bit-vector/PKGBUILD testing/perl-compress-bzip2/PKGBUILD testing/perl-crypt-openssl-bignum/PKGBUILD testing/perl-crypt-openssl-random/PKGBUILD testing/perl-crypt-openssl-rsa/PKGBUILD testing/perl-crypt-ssleay/PKGBUILD testing/perl-dbd-mysql/PKGBUILD testing/perl-dbi/PKGBUILD testing/perl-fcgi/PKGBUILD testing/perl-locale-gettext/PKGBUILD testing/perl-locale-gettext/compatibility-with-POSIX-module.patch testing/perl-net-ssleay/PKGBUILD testing/perl-time-hires/PKGBUILD testing/perl/0001-Append-CFLAGS-and-LDFLAGS-to-their-Config.pm-counter.patch testing/perl/ChangeLog testing/perl/PKGBUILD testing/perl/digest_eval_hole.diff testing/perl/fix-h2ph-and-tests.patch testing/perl/perl.install testing/perl/perlbin.csh testing/perl/perlbin.sh testing/perl/provides.pl testing/php/PKGBUILD testing/php/logrotate.d.php-fpm testing/php/rc.d.php-fpm testing/pidgin/pidgin.install testing/pinentry/pinentry.install testing/postgresql/postgresql.pam testing/slim/logrotate testing/subversion/PKGBUILD testing/vim/PKGBUILD testing/vim/archlinux.vim testing/vim/gvim.desktop testing/vim/gvim.install testing/vim/vimrc testing/weechat/PKGBUILD testing/xf86-video-ati/PKGBUILD testing/xf86-video-intel/PKGBUILD testing/xf86-video-nouveau/PKGBUILD testing/xorg-server/PKGBUILD
Diffstat (limited to 'community/pdf2djvu')
-rw-r--r--community/pdf2djvu/PKGBUILD14
-rw-r--r--community/pdf2djvu/poppler-0.20.patch69
2 files changed, 77 insertions, 6 deletions
diff --git a/community/pdf2djvu/PKGBUILD b/community/pdf2djvu/PKGBUILD
index 7e30d453c..19d6269fa 100644
--- a/community/pdf2djvu/PKGBUILD
+++ b/community/pdf2djvu/PKGBUILD
@@ -1,21 +1,24 @@
-# $Id: PKGBUILD 58479 2011-11-13 13:51:40Z jelle $
+# $Id: PKGBUILD 71280 2012-05-26 07:55:10Z pschmitz $
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
pkgname=pdf2djvu
-pkgver=0.7.11
-pkgrel=3
+pkgver=0.7.12
+pkgrel=1
pkgdesc="Creates DjVu files from PDF files"
arch=('i686' 'x86_64' 'mips64el')
url="http://pdf2djvu.googlecode.com"
license=('GPL')
depends=('poppler' 'djvulibre' 'libxslt' 'gcc-libs')
makedepends=('pstreams')
-source=("http://pdf2djvu.googlecode.com/files/${pkgname}_${pkgver}.tar.gz")
-md5sums=('cdc0cbb46512aaf7109d6ebc7aef1a7a')
+source=("http://pdf2djvu.googlecode.com/files/${pkgname}_${pkgver}.tar.gz"
+ "poppler-0.20.patch")
+md5sums=('4fd56c0763b56b4081fc9c85be16d9d7'
+ '9f9c5b098a3a13256beac04553ee67c3')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
+ patch -p1 <$srcdir/poppler-0.20.patch
./configure --prefix=/usr
make
}
@@ -25,4 +28,3 @@ package() {
make install DESTDIR=${pkgdir}
install -Dm644 doc/${pkgname}.1 ${pkgdir}/usr/share/man/man1/${pkgname}.1
}
-md5sums=('37c3d5a31c155bc65a39912da4c6bce1')
diff --git a/community/pdf2djvu/poppler-0.20.patch b/community/pdf2djvu/poppler-0.20.patch
new file mode 100644
index 000000000..36d23f73a
--- /dev/null
+++ b/community/pdf2djvu/poppler-0.20.patch
@@ -0,0 +1,69 @@
+diff -wbBur pdf2djvu-0.7.12/configure pdf2djvu-0.7.12.my/configure
+--- pdf2djvu-0.7.12/configure 2012-01-22 03:17:01.000000000 +0400
++++ pdf2djvu-0.7.12.my/configure 2012-05-17 20:44:06.000000000 +0400
+@@ -6653,7 +6653,7 @@
+
+ if test "$GXX" = yes
+ then
+- CXXFLAGS="$CXXFLAGS -Werror=overloaded-virtual"
++ CXXFLAGS="$CXXFLAGS "
+ fi
+
+ # Output files
+diff -wbBur pdf2djvu-0.7.12/configure.ac pdf2djvu-0.7.12.my/configure.ac
+--- pdf2djvu-0.7.12/configure.ac 2012-01-22 03:16:50.000000000 +0400
++++ pdf2djvu-0.7.12.my/configure.ac 2012-05-17 20:43:37.000000000 +0400
+@@ -225,7 +225,7 @@
+ AX_CXXFLAGS_WARN_ALL(CXXFLAGS)
+ if test "$GXX" = yes
+ then
+- CXXFLAGS="$CXXFLAGS -Werror=overloaded-virtual"
++ CXXFLAGS="$CXXFLAGS "
+ fi
+
+ # Output files
+diff -wbBur pdf2djvu-0.7.12/pdf-backend.cc pdf2djvu-0.7.12.my/pdf-backend.cc
+--- pdf2djvu-0.7.12/pdf-backend.cc 2012-01-22 03:16:50.000000000 +0400
++++ pdf2djvu-0.7.12.my/pdf-backend.cc 2012-05-17 20:47:24.000000000 +0400
+@@ -32,10 +32,10 @@
+ * ======================
+ */
+
+-static void poppler_error_handler(int pos, char *message, va_list args)
++static void poppler_error_handler(void *data, ErrorCategory ec, int pos, char *message)
+ {
+ std::string format;
+- std::string expanded_message = string_vprintf(message, args);
++ std::string expanded_message = message;
+ const char *c_message = expanded_message.c_str();
+ if (pos >= 0)
+ {
+@@ -61,7 +61,7 @@
+ Cwd cwd(argv0_dir_name);
+ #endif
+ globalParams = new GlobalParams();
+- setErrorFunction(poppler_error_handler);
++ setErrorCallback(poppler_error_handler, 0);
+ }
+
+ void pdf::Environment::set_antialias(bool value)
+diff -wbBur pdf2djvu-0.7.12/pdf2djvu.cc pdf2djvu-0.7.12.my/pdf2djvu.cc
+--- pdf2djvu-0.7.12/pdf2djvu.cc 2012-01-22 03:16:50.000000000 +0400
++++ pdf2djvu-0.7.12.my/pdf2djvu.cc 2012-05-17 20:55:07.000000000 +0400
+@@ -1387,13 +1387,13 @@
+ debug(0)++;
+ }
+ out1.reset(new pdf::Renderer(paper_color, config.monochrome));
+- out1->startDoc(doc->getXRef());
++ out1->startDoc((PDFDoc*)doc->getXRef());
+ outm.reset(new MutedRenderer(paper_color, config.monochrome, *page_files));
+- outm->startDoc(doc->getXRef());
++ outm->startDoc((PDFDoc*)doc->getXRef());
+ if (!config.monochrome)
+ {
+ outs.reset(new MutedRenderer(paper_color, config.monochrome, *page_files));
+- outs->startDoc(doc->getXRef());
++ outs->startDoc((PDFDoc*)doc->getXRef());
+ }
+ }
+ assert(doc.get() != NULL);