aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-02-29 22:11:39 +0800
committerpav <pav@FreeBSD.org>2004-02-29 22:11:39 +0800
commitb5102489af83a7b9621d71550594c5531d4187db (patch)
tree234b163ddb22f1a2a7beacb9f61c638508c136fa /textproc
parentdbcf9a00bf4e7724b6a9dc3a95e89182810d0fa3 (diff)
downloadfreebsd-ports-gnome-b5102489af83a7b9621d71550594c5531d4187db.tar.gz
freebsd-ports-gnome-b5102489af83a7b9621d71550594c5531d4187db.tar.zst
freebsd-ports-gnome-b5102489af83a7b9621d71550594c5531d4187db.zip
Add trang, convertor 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 WWW: http://www.thaiopensource.com/relaxng/trang.html PR: ports/61706 Submitted by: Kimura Fuyuki <fuyuki@nigredo.org>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/trang/Makefile36
-rw-r--r--textproc/trang/distinfo1
-rw-r--r--textproc/trang/pkg-descr9
-rw-r--r--textproc/trang/pkg-plist2
5 files changed, 49 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index ff007a49c7a1..9e00d6ffac8b 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -513,6 +513,7 @@
SUBDIR += texi2html
SUBDIR += tkdiff
SUBDIR += tnef2txt
+ SUBDIR += trang
SUBDIR += tth
SUBDIR += txt2html
SUBDIR += txt2man
diff --git a/textproc/trang/Makefile b/textproc/trang/Makefile
new file mode 100644
index 000000000000..2399e7143145
--- /dev/null
+++ b/textproc/trang/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: Trang
+# Date created: 22 January 2004
+# Whom: Kimura Fuyuki <fuyuki@nigredo.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= trang
+PORTVERSION= 2003.06.19
+CATEGORIES= textproc
+MASTER_SITES= http://www.thaiopensource.com/download/
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
+
+MAINTAINER= fuyuki@nigredo.org
+COMMENT= Multi-format schema converter based on RELAX NG
+
+USE_ZIP= yes
+USE_JAVA= 1.4+
+PORTDOCS= copying.txt trang-manual.html
+
+NO_BUILD_DEPENDS_JAVA= yes
+
+do-build:
+ ${ECHO_CMD} '#/bin/sh' >${WRKSRC}/trang
+ ${ECHO_CMD} 'exec javavm -jar ${JAVAJARDIR}/trang.jar "$$@"' \
+ >>${WRKSRC}/trang
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/*.jar ${JAVAJARDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/trang ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/textproc/trang/distinfo b/textproc/trang/distinfo
new file mode 100644
index 000000000000..6d19723f68f9
--- /dev/null
+++ b/textproc/trang/distinfo
@@ -0,0 +1 @@
+MD5 (trang-20030619.zip) = 9611ea59fda0f62fecc4a5017a72984e
diff --git a/textproc/trang/pkg-descr b/textproc/trang/pkg-descr
new file mode 100644
index 000000000000..3f5aec1c901f
--- /dev/null
+++ b/textproc/trang/pkg-descr
@@ -0,0 +1,9 @@
+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
+
+WWW: http://www.thaiopensource.com/relaxng/trang.html
diff --git a/textproc/trang/pkg-plist b/textproc/trang/pkg-plist
new file mode 100644
index 000000000000..251be9a58713
--- /dev/null
+++ b/textproc/trang/pkg-plist
@@ -0,0 +1,2 @@
+bin/trang
+share/java/classes/trang.jar