diff options
author | Koop Mast <kwm@FreeBSD.org> | 2011-09-17 16:00:49 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2011-09-17 16:00:49 +0000 |
commit | b68ae99d2585f1e4f0c53f56a3c99f381c177f34 (patch) | |
tree | bfdef0dc0ecd9028b1a21e7cd730cd0bbb47804f /textproc/itstool | |
parent | 7dd6f18e0f7624acaf74337b9c010becdc11044b (diff) |
Add itstool or ITS tool
ITS Tool allows you to translate your XML documents with PO files, using rules
from the W3C Internationalization Tag Set (ITS) to determine what to translate
and how to separate it into PO file messages.
WWW: http://itstool.org
Notes
Notes:
svn path=/head/; revision=281903
Diffstat (limited to 'textproc/itstool')
-rw-r--r-- | textproc/itstool/Makefile | 28 | ||||
-rw-r--r-- | textproc/itstool/distinfo | 2 | ||||
-rw-r--r-- | textproc/itstool/pkg-descr | 19 | ||||
-rw-r--r-- | textproc/itstool/pkg-plist | 8 |
4 files changed, 57 insertions, 0 deletions
diff --git a/textproc/itstool/Makefile b/textproc/itstool/Makefile new file mode 100644 index 000000000000..5499767b94cf --- /dev/null +++ b/textproc/itstool/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: itstool +# Date Created: 17 Sept 2011 +# Whom: Koop Mast <kwm@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= itstool +PORTVERSION= 1.1.0 +CATEGORIES= textproc +MASTER_SITES= http://files.itstool.org/itstool/ + +MAINTAINER= kwm@FreeBSD.org +COMMENT= Make XML documents translatable through po files + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 + +USE_BZIP2= yes +USE_PYTHON= yes +GNU_CONFIGURE= yes + +MAN1= itstool.1 + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \ + ${WRKSRC}/itstool.in + +.include <bsd.port.mk> diff --git a/textproc/itstool/distinfo b/textproc/itstool/distinfo new file mode 100644 index 000000000000..a5cf3229fc72 --- /dev/null +++ b/textproc/itstool/distinfo @@ -0,0 +1,2 @@ +SHA256 (itstool-1.1.0.tar.bz2) = 27dea27410b871a908402a58b44cec3dd35f7bad49eea32c403ff44877c40b1e +SIZE (itstool-1.1.0.tar.bz2) = 78062 diff --git a/textproc/itstool/pkg-descr b/textproc/itstool/pkg-descr new file mode 100644 index 000000000000..31eae323d083 --- /dev/null +++ b/textproc/itstool/pkg-descr @@ -0,0 +1,19 @@ +ITS Tool allows you to translate your XML documents with PO files, using rules +from the W3C Internationalization Tag Set (ITS) to determine what to translate +and how to separate it into PO file messages. + +PO files are the standard translation format for GNU and other Unix-like +systems. They present translatable information as discrete messages, allowing +each message to be translated independently. In contrast to whole-page +translation, translating with a message-based format like PO means you can +easily track changes to the source document down to the paragraph. When new +strings are added or existing strings are modified, you only need to update +the corresponding messages. + +ITS Tool is designed to make XML documents translatable through PO files by +applying standard ITS rules, as well as extension rules specific to ITS Tool. +ITS also provides an industry standard way for authors to override translation +information in their documents, such as whether a particular element should be +translated. + +WWW: http://itstool.org/ diff --git a/textproc/itstool/pkg-plist b/textproc/itstool/pkg-plist new file mode 100644 index 000000000000..1344c1d0b5fe --- /dev/null +++ b/textproc/itstool/pkg-plist @@ -0,0 +1,8 @@ +bin/itstool +%%DATADIR%%/its/docbook.its +%%DATADIR%%/its/its.its +%%DATADIR%%/its/mallard.its +%%DATADIR%%/its/ttml.its +%%DATADIR%%/its/xhtml.its +@dirrm %%DATADIR%%/its +@dirrm %%DATADIR%% |