summaryrefslogtreecommitdiff
path: root/textproc/xmlto
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-12-11 23:31:09 +0000
committerjoerg <joerg@pkgsrc.org>2015-12-11 23:31:09 +0000
commit41e8ebb7132fb44bf8f59d9d0ab58d4f9238b4bc (patch)
tree9e07b46bc6037e7f00b44faa73ae47c9720d55cc /textproc/xmlto
parentfb9d2c573d6f0522db879aab0d52213111c60e9b (diff)
downloadpkgsrc-41e8ebb7132fb44bf8f59d9d0ab58d4f9238b4bc.tar.gz
Using "type -t" is a pretty pointless bashism, even slowing things down
by adding additional forks. Fix and bump revision.
Diffstat (limited to 'textproc/xmlto')
-rw-r--r--textproc/xmlto/Makefile3
-rw-r--r--textproc/xmlto/distinfo7
-rw-r--r--textproc/xmlto/patches/patch-format_docbook_epub10
-rw-r--r--textproc/xmlto/patches/patch-format_docbook_txt22
-rw-r--r--textproc/xmlto/patches/patch-format_fo_dvi13
-rw-r--r--textproc/xmlto/patches/patch-format_fo_pdf13
-rw-r--r--textproc/xmlto/patches/patch-format_xhtml1_txt22
7 files changed, 88 insertions, 2 deletions
diff --git a/textproc/xmlto/Makefile b/textproc/xmlto/Makefile
index 0ebd85c9d3e..ea7f551fc95 100644
--- a/textproc/xmlto/Makefile
+++ b/textproc/xmlto/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2015/11/23 00:04:38 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2015/12/11 23:31:09 joerg Exp $
DISTNAME= xmlto-0.0.28
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= https://fedorahosted.org/releases/x/m/xmlto/
EXTRACT_SUFX= .tar.bz2
diff --git a/textproc/xmlto/distinfo b/textproc/xmlto/distinfo
index 786d40152b4..654a597051c 100644
--- a/textproc/xmlto/distinfo
+++ b/textproc/xmlto/distinfo
@@ -1,6 +1,11 @@
-$NetBSD: distinfo,v 1.12 2015/11/23 00:04:38 wiz Exp $
+$NetBSD: distinfo,v 1.13 2015/12/11 23:31:09 joerg Exp $
SHA1 (xmlto-0.0.28.tar.bz2) = aa63af9a86ab6ed0c92ea8b177dc808c18902c73
RMD160 (xmlto-0.0.28.tar.bz2) = acba3cc9ff46505ae49b91108c611646aeac2b5d
SHA512 (xmlto-0.0.28.tar.bz2) = 6e0c4968d4f1b7a3b132904182aa72a73f6167553eabdeb65cfafa6295ef7b960541685769d04144207963cca77b0c44db4f9fbb2796348ffcb37b3b399f18f1
Size (xmlto-0.0.28.tar.bz2) = 127921 bytes
+SHA1 (patch-format_docbook_epub) = 25aeefbb6004ff4f31495d8f3f352abd4d80b2a8
+SHA1 (patch-format_docbook_txt) = 8d450200270b86efdea3b773fc5392db3b9c21b1
+SHA1 (patch-format_fo_dvi) = 4f47dc2e0b3b94ed2ddf2701d27c8813d0d38465
+SHA1 (patch-format_fo_pdf) = 301b96bf0f8b711cc115306d1b47f04cc6cd2d79
+SHA1 (patch-format_xhtml1_txt) = 6025023e7700375adbabee96dab99e6260b6e707
diff --git a/textproc/xmlto/patches/patch-format_docbook_epub b/textproc/xmlto/patches/patch-format_docbook_epub
new file mode 100644
index 00000000000..a0b0aded230
--- /dev/null
+++ b/textproc/xmlto/patches/patch-format_docbook_epub
@@ -0,0 +1,10 @@
+$NetBSD: patch-format_docbook_epub,v 1.1 2015/12/11 23:31:09 joerg Exp $
+
+--- format/docbook/epub.orig 2015-12-11 20:30:43.000000000 +0000
++++ format/docbook/epub
+@@ -1,4 +1,4 @@
+-if [ -z "`type -t $ZIP_PATH`" ]
++if ! type "$ZIP_PATH" > /dev/null 2>&1
+ then
+ echo >&2 "Missing zip utility at $ZIP_PATH, conversion to epub not possible."
+ echo >&2 "Exiting !"
diff --git a/textproc/xmlto/patches/patch-format_docbook_txt b/textproc/xmlto/patches/patch-format_docbook_txt
new file mode 100644
index 00000000000..847e6afc0a3
--- /dev/null
+++ b/textproc/xmlto/patches/patch-format_docbook_txt
@@ -0,0 +1,22 @@
+$NetBSD: patch-format_docbook_txt,v 1.1 2015/12/11 23:31:09 joerg Exp $
+
+--- format/docbook/txt.orig 2015-12-11 20:30:43.000000000 +0000
++++ format/docbook/txt
+@@ -1,14 +1,14 @@
+ case "$USE_BACKEND" in
+ DEFAULT|DBLATEX)
+- if [ -n "`type -t $W3M_PATH`" ]
++ if type "$W3M_PATH" > /dev/null 2>&1
+ then
+ CONVERT="$W3M_PATH"
+ ARGS="-T text/html -dump"
+- elif [ -n "`type -t $LYNX_PATH`" ]
++ elif type "$LYNX_PATH" > /dev/null 2>&1
+ then
+ CONVERT="$LYNX_PATH"
+ ARGS="-force_html -dump -nolist -width=72"
+- elif [ -n "`type -t $LINKS_PATH`" ]
++ elif type "$LINKS_PATH" > /dev/null 2>&1
+ then
+ CONVERT="$LINKS_PATH"
+ ARGS="-dump"
diff --git a/textproc/xmlto/patches/patch-format_fo_dvi b/textproc/xmlto/patches/patch-format_fo_dvi
new file mode 100644
index 00000000000..2404b17b969
--- /dev/null
+++ b/textproc/xmlto/patches/patch-format_fo_dvi
@@ -0,0 +1,13 @@
+$NetBSD: patch-format_fo_dvi,v 1.1 2015/12/11 23:31:09 joerg Exp $
+
+--- format/fo/dvi.orig 2015-12-11 20:30:43.000000000 +0000
++++ format/fo/dvi
+@@ -6,7 +6,7 @@ post-process)
+ then
+ echo >&2 "Post-process XSL-FO to DVI"
+ fi
+- if [ -z "`type -t $XMLTEX_PATH`" ]
++ if ! type "$XMLTEX_PATH" > /dev/null 2>&1
+ then
+ echo >&2 "Can't process, xmltex tool not found at $XMLTEX_PATH."
+ exit 3
diff --git a/textproc/xmlto/patches/patch-format_fo_pdf b/textproc/xmlto/patches/patch-format_fo_pdf
new file mode 100644
index 00000000000..26c4de1748f
--- /dev/null
+++ b/textproc/xmlto/patches/patch-format_fo_pdf
@@ -0,0 +1,13 @@
+$NetBSD: patch-format_fo_pdf,v 1.1 2015/12/11 23:31:09 joerg Exp $
+
+--- format/fo/pdf.orig 2015-12-11 20:30:43.000000000 +0000
++++ format/fo/pdf
+@@ -8,7 +8,7 @@ DEFAULT|DBLATEX)
+ then
+ echo >&2 "Post-process XSL-FO to PDF"
+ fi
+- if [ -z "`type -t $PDFXMLTEX_PATH`" ]
++ if ! type "$PDFXMLTEX_PATH" > /dev/null 2>&1
+ then
+ echo >&2 "Can't process, pdfxmltex tool not found at $PDFXMLTEX_PATH."
+ exit 3
diff --git a/textproc/xmlto/patches/patch-format_xhtml1_txt b/textproc/xmlto/patches/patch-format_xhtml1_txt
new file mode 100644
index 00000000000..36861b1f915
--- /dev/null
+++ b/textproc/xmlto/patches/patch-format_xhtml1_txt
@@ -0,0 +1,22 @@
+$NetBSD: patch-format_xhtml1_txt,v 1.1 2015/12/11 23:31:09 joerg Exp $
+
+--- format/xhtml1/txt.orig 2015-12-11 20:30:43.000000000 +0000
++++ format/xhtml1/txt
+@@ -1,14 +1,14 @@
+ case "$USE_BACKEND" in
+ DEFAULT|DBLATEX)
+- if [ -n "`type -t $W3M_PATH`" ]
++ if type "$W3M_PATH" > /dev/null 2>&1
+ then
+ CONVERT="$W3M_PATH"
+ ARGS="-T text/html -dump"
+- elif [ -n "`type -t $LYNX_PATH`" ]
++ elif type "$LYNX_PATH" > /dev/null 2>&1
+ then
+ CONVERT="$LYNX_PATH"
+ ARGS="-force_html -dump -nolist -width=72"
+- elif [ -n "`type -t $LINKS_PATH`" ]
++ elif type "$LINKS_PATH" > /dev/null 2>&1
+ then
+ CONVERT="$LINKS_PATH"
+ ARGS="-dump"