Update to pdf2djvu-0.7.19 (which includes a fix to build with
poppler-0.31.0), update MASTER_SITES and enable tests. ok (and enabling tests) juanfra@ (maintainer), some time ago.
This commit is contained in:
parent
710ac10233
commit
c911e41919
@ -1,11 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2014/01/09 12:18:34 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2015/03/15 10:58:15 kili Exp $
|
||||
|
||||
COMMENT = creates DjVu files from PDF files
|
||||
|
||||
V = 0.7.17
|
||||
DISTNAME = pdf2djvu_${V}
|
||||
PKGNAME = pdf2djvu-${V}
|
||||
REVISION = 0
|
||||
DISTNAME = pdf2djvu-0.7.19
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
@ -19,7 +16,9 @@ PERMIT_PACKAGE_CDROM = Yes
|
||||
WANTLIB += GraphicsMagick GraphicsMagick++ c djvulibre m poppler
|
||||
WANTLIB += pthread stdc++ xml2 xslt z
|
||||
|
||||
MASTER_SITES = https://pdf2djvu.googlecode.com/files/
|
||||
MASTER_SITES = https://bitbucket.org/jwilk/pdf2djvu/downloads/
|
||||
|
||||
EXTRACT_SUFX = .tar.xz
|
||||
|
||||
# https://code.google.com/p/pdf2djvu/wiki/BuildDepends
|
||||
MODULES = devel/gettext
|
||||
@ -27,6 +26,7 @@ LIB_DEPENDS = graphics/GraphicsMagick \
|
||||
textproc/libxslt \
|
||||
print/poppler \
|
||||
graphics/djvulibre
|
||||
TEST_DEPENDS = devel/py-nose
|
||||
|
||||
# Weird things like "API specificationu[3]d for details"
|
||||
USE_GROFF = Yes
|
||||
@ -38,7 +38,7 @@ CONFIGURE_ARGS += --disable-openmp \
|
||||
CONFIGURE_ENV = LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
||||
CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
|
||||
|
||||
NO_TEST = Yes
|
||||
TEST_TARGET = test
|
||||
|
||||
WRKDIST = ${WRKDIR}/${PKGNAME}
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (pdf2djvu_0.7.17.tar.gz) = /m1uLW31MZXwgokNPLXlAIB4RRBpHnCKXkYUtJZi9No=
|
||||
SIZE (pdf2djvu_0.7.17.tar.gz) = 320923
|
||||
SHA256 (pdf2djvu-0.7.19.tar.xz) = x4POoxv0AW2/heJCouvLVP5wpBvLBG4d0MtQKn9fADw=
|
||||
SIZE (pdf2djvu-0.7.19.tar.xz) = 227248
|
||||
|
@ -1,42 +0,0 @@
|
||||
$OpenBSD: patch-tools_xml2c,v 1.1.1.1 2014/01/09 02:22:09 juanfra Exp $
|
||||
|
||||
"toosl/xml2c: make it more portable."
|
||||
|
||||
https://code.google.com/p/pdf2djvu/source/detail?spec=svn9e673a76694d07042840a5e5150024eb27d79aa1&r=9e673a76694d07042840a5e5150024eb27d79aa1
|
||||
|
||||
Fixed in 0.7.18.
|
||||
|
||||
--- tools/xml2c.orig Wed Jul 24 00:01:58 2013
|
||||
+++ tools/xml2c Wed Jul 24 00:02:38 2013
|
||||
@@ -1,16 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
-# Copyright © 2009 Jakub Wilk
|
||||
+# Copyright © 2009, 2013 Jakub Wilk
|
||||
#
|
||||
# This package is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 dated June, 1991.
|
||||
|
||||
-exec sed \
|
||||
- -e '/<!--# *\(.*\) *#-->/ { s//\1/; b; }' \
|
||||
- -e '/<!--.*-->/ { s///g; b; }' \
|
||||
- -e 's/\\\\/\\\\/g' \
|
||||
- -e 's/"/\\"/g' \
|
||||
- -e 's/^/"/; s/$/\\n"/'
|
||||
+exec sed -e '
|
||||
+/<!--# *\(.*\) *#-->/ {
|
||||
+ s//\1/
|
||||
+ b
|
||||
+}
|
||||
+/<!--.*-->/ {
|
||||
+ s///g
|
||||
+ b
|
||||
+}
|
||||
+s/\\\\/\\\\/g
|
||||
+s/"/\\"/g
|
||||
+s/^/"/
|
||||
+s/$/\\n"/
|
||||
+'
|
||||
|
||||
# vim:ts=2 sw=2 et
|
@ -1,12 +1,18 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/01/09 02:22:09 juanfra Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2015/03/15 10:58:15 kili Exp $
|
||||
@bin bin/pdf2djvu
|
||||
man/de/
|
||||
man/de/man1/
|
||||
@man man/de/man1/pdf2djvu.1
|
||||
man/fr/
|
||||
man/fr/man1/
|
||||
@man man/fr/man1/pdf2djvu.1
|
||||
@man man/man1/pdf2djvu.1
|
||||
man/pl/
|
||||
man/pl/man1/
|
||||
@man man/pl/man1/pdf2djvu.1
|
||||
man/pt/
|
||||
man/pt/man1/
|
||||
@man man/pt/man1/pdf2djvu.1
|
||||
man/ru/
|
||||
man/ru/man1/
|
||||
@man man/ru/man1/pdf2djvu.1
|
||||
@ -15,5 +21,6 @@ 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
|
||||
share/locale/ru/LC_MESSAGES/pdf2djvu.mo
|
||||
share/locale/uk/LC_MESSAGES/pdf2djvu.mo
|
||||
|
Loading…
x
Reference in New Issue
Block a user