summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorapb <apb@pkgsrc.org>2012-02-28 17:17:57 +0000
committerapb <apb@pkgsrc.org>2012-02-28 17:17:57 +0000
commit262b5fa22dc3006e6a934e707b3becd0873ab998 (patch)
tree910ed793af27c8277ad71dea8c97b7cde004b94e /textproc
parent915a21ccee0ce050b4de740f5d6be7a537c7f079 (diff)
downloadpkgsrc-262b5fa22dc3006e6a934e707b3becd0873ab998.tar.gz
Add regxml, from Nhat Minh Le's 2009 Google Summer of Code project.
regxml is a collection of command-line utilities for XML stream manipulation. The xmlgrep and xmlsed commands are fast and memory-efficient commands for editing tasks similar to what grep(1) and sed(1) can do on text files.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/regxml/DESCR4
-rw-r--r--textproc/regxml/Makefile71
-rw-r--r--textproc/regxml/PLIST8
-rw-r--r--textproc/regxml/distinfo5
4 files changed, 88 insertions, 0 deletions
diff --git a/textproc/regxml/DESCR b/textproc/regxml/DESCR
new file mode 100644
index 00000000000..f5eee5ce7dd
--- /dev/null
+++ b/textproc/regxml/DESCR
@@ -0,0 +1,4 @@
+regxml is a collection of command-line utilities for XML stream
+manipulation. The xmlgrep and xmlsed commands are fast and
+memory-efficient commands for editing tasks similar to what
+grep(1) and sed(1) can do on text files.
diff --git a/textproc/regxml/Makefile b/textproc/regxml/Makefile
new file mode 100644
index 00000000000..1c7caf303ca
--- /dev/null
+++ b/textproc/regxml/Makefile
@@ -0,0 +1,71 @@
+# $NetBSD: Makefile,v 1.1 2012/02/28 17:17:57 apb Exp $
+#
+
+DISTNAME= regxml-${SNAPSHOT_DATE}-${SNAPSHOT_HASH:C/(......).*/\1/}
+PKGNAME= regxml-0.0.${SNAPSHOT_DATE}
+CATEGORIES= textproc
+EXTRACT_SUFX= .tar.gz
+
+# The master site does not have a stable distfile.
+#
+# You can download a distfile from
+# <http://git.huoc.org/?p=regxml.git;a=snapshot;h=${SNAPSHOT_HASH};sf=tgz>
+# but the timestamp in the gzip compression layer will be different
+# almost every time, so it will fail the pkgsrc integrity tests.
+# To deal with this, we keep a distfile in MASTER_SITE_LOCAL.
+#
+# To update to a newer snapshot:
+#
+# 1. Go to <http://git.huoc.org/?p=regxml.git;a=summary> and
+# choose an appropriate snapshot. Make a note of the date
+# and the git hash.
+# 2. Download the snapshot to your own computer.
+# 3. Rename the downloaded snapshot to
+# regxml-${YYYYMMDD}-${FIRST_6_CHARS_OF_GIT_HASH}.tar.gz
+# 4. Edit the SNAPSHOT_DATE and SNAPSHOT_HASH in thie Makefile.
+# 5. Upload your copy of the snapshot to MASTER_SITE_LOCAL, which is
+# <http://ftp.NetBSD.org/pub/pkgsrc/distfiles/LOCAL_PORTS/>
+# 6. Everything else you would normally do when updating to a new version
+# of a package.
+#
+SNAPSHOT_DATE= 20100901
+SNAPSHOT_HASH= d9f32668e0f75204abe7acfaf22981893520c7b6
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://git.huoc.org/?p=regxml.git;a=summary
+
+COMMENT= Command line utilities for XML stream manipulation
+LICENSE= 2-clause-bsd
+
+USE_TOOLS+= gmake
+MAKE_FILE= GNUmakefile
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/${DISTNAME:C/-.*//}
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= ${PKGMANDIR} ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= ${PKGMANDIR}/man3 ${PKGMANDIR}/man7
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xmlgrep/xmlgrep \
+ ${DESTDIR}${PREFIX}/bin/xmlgrep
+ ${INSTALL_PROGRAM} ${WRKSRC}/xmlsed/xmlsed \
+ ${DESTDIR}${PREFIX}/bin/xmlsed
+ ${INSTALL_MAN} ${WRKSRC}/doc/xmlgrep.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+ ${INSTALL_MAN} ${WRKSRC}/doc/xmlsed.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+ ${INSTALL_MAN} ${WRKSRC}/doc/regxml.3 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/
+ ${INSTALL_MAN} ${WRKSRC}/doc/regxml_xml.3 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/
+ ${INSTALL_MAN} ${WRKSRC}/doc/xmltools.7 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/
+
+.include "../../textproc/expat/buildlink3.mk"
+
+# url2pkg-marker (please do not remove this line.)
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/regxml/PLIST b/textproc/regxml/PLIST
new file mode 100644
index 00000000000..d618fb75ed3
--- /dev/null
+++ b/textproc/regxml/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2012/02/28 17:17:58 apb Exp $
+bin/xmlgrep
+bin/xmlsed
+man/man1/xmlgrep.1
+man/man1/xmlsed.1
+man/man3/regxml.3
+man/man3/regxml_xml.3
+man/man7/xmltools.7
diff --git a/textproc/regxml/distinfo b/textproc/regxml/distinfo
new file mode 100644
index 00000000000..17362f334d0
--- /dev/null
+++ b/textproc/regxml/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2012/02/28 17:17:58 apb Exp $
+
+SHA1 (regxml-20100901-d9f326.tar.gz) = 7a217fdae8bdce222b3689310706af110d95cf38
+RMD160 (regxml-20100901-d9f326.tar.gz) = 45448c013dc6bdae3a1852e5a99984cb6f2afe71
+Size (regxml-20100901-d9f326.tar.gz) = 47261 bytes