summaryrefslogtreecommitdiff
path: root/textproc/xmltoman
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2008-01-16 03:04:16 +0000
committerbjs <bjs@pkgsrc.org>2008-01-16 03:04:16 +0000
commit231dfd6620ebf97569f48361f5bfe79eb1045a1e (patch)
treec7f5e761e487c17e3b622d002697706220e968f7 /textproc/xmltoman
parent813288f5111e3db9813d1e72f38cd7777afeeef2 (diff)
downloadpkgsrc-231dfd6620ebf97569f48361f5bfe79eb1045a1e.tar.gz
Import xmltoman-0.3.
xmltoman and xmlmantohtml are two very simple perl scripts for converting xml to groff or html. PulseAudio (which I am working on) wants this for making its manpages, but I'm fairly certain that there are plenty of other packages out there than know of it (it's a debian tool insofar as I can tell, but I could be wrong about this).
Diffstat (limited to 'textproc/xmltoman')
-rw-r--r--textproc/xmltoman/DESCR2
-rw-r--r--textproc/xmltoman/Makefile28
-rw-r--r--textproc/xmltoman/PLIST9
-rw-r--r--textproc/xmltoman/distinfo5
-rw-r--r--textproc/xmltoman/files/Makefile19
5 files changed, 63 insertions, 0 deletions
diff --git a/textproc/xmltoman/DESCR b/textproc/xmltoman/DESCR
new file mode 100644
index 00000000000..b7ef026a625
--- /dev/null
+++ b/textproc/xmltoman/DESCR
@@ -0,0 +1,2 @@
+xmltoman and xmlmantohtml are two very simple scripts for converting xml
+to groff or html.
diff --git a/textproc/xmltoman/Makefile b/textproc/xmltoman/Makefile
new file mode 100644
index 00000000000..46c628799cd
--- /dev/null
+++ b/textproc/xmltoman/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/01/16 03:04:16 bjs Exp $
+#
+
+DISTNAME= xmltoman_0.3.orig
+PKGNAME= ${DISTNAME:S/_/-/:R}
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/x/xmltoman/}
+
+MAINTAINER= bjs@NetBSD.org
+HOMEPAGE= # none
+COMMENT= XML to manual page converter
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+USE_TOOLS+= perl:run
+USE_LANGUAGES= # none
+
+#INSTALLATION_DIRS= bin share/${PKGBASE} ${PKGMANDIR}/man1
+AUTO_MKDIRS= yes
+MAKE_ENV+= PKGBASE=${PKGBASE:Q}
+REPLACE_PERL= xmltoman xmlmantohtml
+USE_BSD_MAKEFILE= yes
+
+post-extract:
+ cp ${FILESDIR}/Makefile ${WRKSRC}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/xmltoman/PLIST b/textproc/xmltoman/PLIST
new file mode 100644
index 00000000000..b6160b9830a
--- /dev/null
+++ b/textproc/xmltoman/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/01/16 03:04:16 bjs Exp $
+bin/xmlmantohtml
+bin/xmltoman
+man/man1/xmlmantohtml.1
+man/man1/xmltoman.1
+share/xmltoman/xmltoman.css
+share/xmltoman/xmltoman.dtd
+share/xmltoman/xmltoman.xsl
+@dirrm share/xmltoman
diff --git a/textproc/xmltoman/distinfo b/textproc/xmltoman/distinfo
new file mode 100644
index 00000000000..29465ecb5a2
--- /dev/null
+++ b/textproc/xmltoman/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/01/16 03:04:16 bjs Exp $
+
+SHA1 (xmltoman_0.3.orig.tar.gz) = dcda61c3fe1deae57bf0377547fead58cc40eac0
+RMD160 (xmltoman_0.3.orig.tar.gz) = be720be467e6cb6805a831a326fa5c30521cd923
+Size (xmltoman_0.3.orig.tar.gz) = 14780 bytes
diff --git a/textproc/xmltoman/files/Makefile b/textproc/xmltoman/files/Makefile
new file mode 100644
index 00000000000..c2b0e8b9138
--- /dev/null
+++ b/textproc/xmltoman/files/Makefile
@@ -0,0 +1,19 @@
+
+SCRIPTS= xmltoman xmlmantohtml
+MAN= xmltoman.1 xmlmantohtml.1
+
+.PATH: ${.CURDIR}/xml
+FILES= xmltoman.dtd xmltoman.css xmltoman.xsl
+FILESDIR= ${PREFIX}/share/xmltoman
+
+MKCATPAGES= no
+CLEANFILES= *.1
+
+.include <bsd.prog.mk>
+
+xmltoman.1: xml/xmltoman.1.xml
+ ./xmltoman ${.OODATE} > ${.TARGET}
+
+xmlmantohtml.1: xml/xmlmantohtml.1.xml
+ ./xmltoman ${.OODATE} > ${.TARGET}
+