diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-05-28 20:14:47 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-05-28 20:14:47 +0000 |
commit | edec45419def1b81bd663a2859684ef55ba56269 (patch) | |
tree | caa3c2d5f4e55b38e7740a39d80a21507679c586 /community-testing/pdf2djvu | |
parent | 483f7de4ab6a706517279a24d2efc969f4a1996d (diff) |
Mon May 28 20:14:39 UTC 2012
Diffstat (limited to 'community-testing/pdf2djvu')
-rw-r--r-- | community-testing/pdf2djvu/PKGBUILD | 30 | ||||
-rw-r--r-- | community-testing/pdf2djvu/poppler-0.20.patch | 69 |
2 files changed, 0 insertions, 99 deletions
diff --git a/community-testing/pdf2djvu/PKGBUILD b/community-testing/pdf2djvu/PKGBUILD deleted file mode 100644 index ecd4c9d65..000000000 --- a/community-testing/pdf2djvu/PKGBUILD +++ /dev/null @@ -1,30 +0,0 @@ -# $Id: PKGBUILD 71059 2012-05-22 21:46:21Z ebelanger $ -# Contributor: Paulo Matias <matiasΘarchlinux-br·org> -# Maintainer: Jelle van der Waa <jelle@vdwaa.nl> - -pkgname=pdf2djvu -pkgver=0.7.12 -pkgrel=1 -pkgdesc="Creates DjVu files from PDF files" -arch=('i686' 'x86_64') -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" - "poppler-0.20.patch") -md5sums=('4fd56c0763b56b4081fc9c85be16d9d7' - '9f9c5b098a3a13256beac04553ee67c3') - -build() { - cd ${srcdir}/${pkgname}-${pkgver} - patch -p1 <$srcdir/poppler-0.20.patch - ./configure --prefix=/usr - make -} - -package() { - cd ${srcdir}/${pkgname}-${pkgver} - make install DESTDIR=${pkgdir} - install -Dm644 doc/${pkgname}.1 ${pkgdir}/usr/share/man/man1/${pkgname}.1 -} diff --git a/community-testing/pdf2djvu/poppler-0.20.patch b/community-testing/pdf2djvu/poppler-0.20.patch deleted file mode 100644 index 36d23f73a..000000000 --- a/community-testing/pdf2djvu/poppler-0.20.patch +++ /dev/null @@ -1,69 +0,0 @@ -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); |