Update to pdf2djvu 0.9.5.

This commit is contained in:
juanfra 2016-12-15 21:44:31 +00:00
parent 88f96ac286
commit df092a4b89
4 changed files with 9 additions and 34 deletions

View File

@ -1,13 +1,9 @@
# $OpenBSD: Makefile,v 1.11 2016/12/07 21:23:47 juanfra Exp $
# XXX Don't update until the upstream bugs 113 and 114 are resolved
# https://bitbucket.org/jwilk/pdf2djvu/issues
# $OpenBSD: Makefile,v 1.12 2016/12/15 21:44:31 juanfra Exp $
COMMENT = creates DjVu files from PDF files
V = 0.8.1
V = 0.9.5
DISTNAME = pdf2djvu-${V}
REVISION = 1
CATEGORIES = graphics
@ -18,8 +14,8 @@ MAINTAINER = Juan Francisco Cantero Hurtado <juanfra@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += GraphicsMagick GraphicsMagick++ c djvulibre iconv intl lzma m
WANTLIB += poppler pthread stdc++ xml2 xslt z
WANTLIB += GraphicsMagick GraphicsMagick++ c djvulibre exiv2 iconv intl m
WANTLIB += poppler pthread stdc++
MASTER_SITES = https://github.com/jwilk/pdf2djvu/releases/download/${V}/ \
http://download.tuxfamily.org/jod/graphics/pdf2djvu/ \
@ -30,9 +26,9 @@ EXTRACT_SUFX = .tar.xz
# https://code.google.com/p/pdf2djvu/wiki/BuildDepends
LIB_DEPENDS = devel/gettext\
graphics/djvulibre \
graphics/exiv2 \
graphics/GraphicsMagick \
print/poppler \
textproc/libxslt
print/poppler
TEST_DEPENDS = devel/py-nose
# Weird things like "API specificationu[3]d for details"

View File

@ -1,2 +1,2 @@
SHA256 (pdf2djvu-0.8.1.tar.xz) = cWsawsQyj8/uizOgts0BGy6+4EDeVxY5eN3YT/z5+Ok=
SIZE (pdf2djvu-0.8.1.tar.xz) = 239164
SHA256 (pdf2djvu-0.9.5.tar.xz) = zFLL8ymeqMVrOQmrIfOZACXmaGgxQYtNFZRinQlZKDs=
SIZE (pdf2djvu-0.9.5.tar.xz) = 267188

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-tests_common_py,v 1.1 2015/09/02 18:50:08 juanfra Exp $
https://bitbucket.org/jwilk/pdf2djvu/issues/108/pdf2djvu-081-the-tests-fail-on-openbsd
--- tests/common.py.orig Thu Aug 13 17:49:20 2015
+++ tests/common.py Mon Aug 31 20:22:47 2015
@@ -133,6 +133,9 @@ class case(object):
env=env,
)
stdout, stderr = child.communicate()
+ if sys.platform.startswith('openbsd'):
+ # FIXME: https://bitbucket.org/jwilk/pdf2djvu/issues/108
+ stderr = re(r'Magick: Failed to close module [(]"\w*: Invalid handle\"[)].\n').sub('', stderr)
stderr = re(r'^(?: \S+ --> \S+ \(\d+ bytes\)\n)+$').sub('', stderr) # strip djvuextract cruft
return ipc_result(stdout, stderr, child.returncode)

View File

@ -1,7 +1,5 @@
@comment $OpenBSD: PLIST,v 1.2 2015/03/15 10:58:15 kili Exp $
@comment $OpenBSD: PLIST,v 1.3 2016/12/15 21:44:31 juanfra Exp $
@bin bin/pdf2djvu
man/de/
man/de/man1/
@man man/de/man1/pdf2djvu.1
man/fr/
man/fr/man1/
@ -16,9 +14,6 @@ man/pt/man1/
man/ru/
man/ru/man1/
@man man/ru/man1/pdf2djvu.1
man/uk/
man/uk/man1/
@man man/uk/man1/pdf2djvu.1
share/locale/de/LC_MESSAGES/pdf2djvu.mo
share/locale/pl/LC_MESSAGES/pdf2djvu.mo
share/locale/pt/LC_MESSAGES/pdf2djvu.mo