pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/trang Initial import of trang-20030619:
details: https://anonhg.NetBSD.org/pkgsrc/rev/8b7b7303029e
branches: trunk
changeset: 517217:8b7b7303029e
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Aug 06 17:37:52 2006 +0000
description:
Initial import of trang-20030619:
Trang converts between different schema languages for XML. It
supports the following languages:
* RELAX NG (XML syntax)
* RELAX NG compact syntax
* XML 1.0 DTDs
* W3C XML Schema
A schema written in any of the supported schema languages can be
converted into any of the other supported schema languages, except
that W3C XML Schema is supported for output only, not for input.
Trang can also infer a schema from one or more example XML documents.
Trang is constructed around an RELAX NG object model designed to
support schema conversion. For each schema language supported for
input, there is an input module that can convert from the schema
language into this internal object model. Similarly, for each schema
language supported for output, there is an output module that can
convert from the internal object model in the schema language.
Trang aims to produce human-understandable schemas; it tries for
a translation that preserves all aspects of the input schema that
may be significant to a human reader, including the definitions,
the way the schema is divided into files, annotations and comments.
diffstat:
textproc/trang/DESCR | 24 ++++++++++++++++++++++++
textproc/trang/Makefile | 31 +++++++++++++++++++++++++++++++
textproc/trang/PLIST | 7 +++++++
textproc/trang/distinfo | 5 +++++
4 files changed, 67 insertions(+), 0 deletions(-)
diffs (83 lines):
diff -r a02b48d57a0d -r 8b7b7303029e textproc/trang/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/trang/DESCR Sun Aug 06 17:37:52 2006 +0000
@@ -0,0 +1,24 @@
+Trang converts between different schema languages for XML. It
+supports the following languages:
+
+ * RELAX NG (XML syntax)
+ * RELAX NG compact syntax
+ * XML 1.0 DTDs
+ * W3C XML Schema
+
+A schema written in any of the supported schema languages can be
+converted into any of the other supported schema languages, except
+that W3C XML Schema is supported for output only, not for input.
+Trang can also infer a schema from one or more example XML documents.
+
+Trang is constructed around an RELAX NG object model designed to
+support schema conversion. For each schema language supported for
+input, there is an input module that can convert from the schema
+language into this internal object model. Similarly, for each schema
+language supported for output, there is an output module that can
+convert from the internal object model in the schema language.
+
+Trang aims to produce human-understandable schemas; it tries for
+a translation that preserves all aspects of the input schema that
+may be significant to a human reader, including the definitions,
+the way the schema is divided into files, annotations and comments.
diff -r a02b48d57a0d -r 8b7b7303029e textproc/trang/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/trang/Makefile Sun Aug 06 17:37:52 2006 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/08/06 17:37:52 wiz Exp $
+#
+
+DISTNAME= trang-20030619
+CATEGORIES= textproc
+MASTER_SITES= http://www.thaiopensource.com/download/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://www.thaiopensource.com/relaxng/trang.html
+COMMENT= Multi-format schema converter based on RELAX NG
+
+DEPENDS+= jing-[0-9]*:../../textproc/jing
+
+USE_JAVA= run
+USE_JAVA2= 1.4
+
+do-build:
+ ${ECHO} "#!/bin/sh" > ${WRKSRC}/trang
+ ${ECHO} "${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/libexec/trang/trang.jar"' "$$@"' >> ${WRKSRC}/trang
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/trang ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/libexec/trang
+ ${INSTALL_DATA} ${WRKSRC}/trang.jar ${PREFIX}/libexec/trang
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/trang
+ ${INSTALL_DATA} ${WRKSRC}/copying.txt ${PREFIX}/share/doc/trang
+ ${INSTALL_DATA} ${WRKSRC}/trang-manual.html ${PREFIX}/share/doc/trang
+
+.include "../../mk/java-vm.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a02b48d57a0d -r 8b7b7303029e textproc/trang/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/trang/PLIST Sun Aug 06 17:37:52 2006 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/08/06 17:37:52 wiz Exp $
+bin/trang
+libexec/trang/trang.jar
+share/doc/trang/copying.txt
+share/doc/trang/trang-manual.html
+@dirrm share/doc/trang
+@dirrm libexec/trang
diff -r a02b48d57a0d -r 8b7b7303029e textproc/trang/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/trang/distinfo Sun Aug 06 17:37:52 2006 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/08/06 17:37:52 wiz Exp $
+
+SHA1 (trang-20030619.zip) = ed1c371f11c7e3c329baab6fa2997549f03458d0
+RMD160 (trang-20030619.zip) = f7dea9e4aae3e753fad2faae1304d865e30a5f6e
+Size (trang-20030619.zip) = 941382 bytes
Home |
Main Index |
Thread Index |
Old Index