diff options
author | Danilo G. Baio <dbaio@FreeBSD.org> | 2019-06-17 22:46:23 +0000 |
---|---|---|
committer | Danilo G. Baio <dbaio@FreeBSD.org> | 2019-06-17 22:46:23 +0000 |
commit | 71ca6421bf24e077f93068962c4c3ee076da2214 (patch) | |
tree | b889ba054f1e87d6988ecb005ff591ef7ebeea39 | |
parent | fe638ff1ba051da70f6805e518c34c7651ebf43c (diff) | |
download | freebsd-ports-71ca6421bf24e077f93068962c4c3ee076da2214.zip |
Add textproc/itstool22 (v.2.0.2)
This brings back ITS Tool 2.0.2 to the tree because there is an issue
with version 2.0.5 and it is impacting the translation efforts of FreeBSD [1].
I'll keep this version until this problem gets fixed.
1 - https://github.com/itstool/itstool/issues/38
PR: 224903
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/itstool/Makefile | 2 | ||||
-rw-r--r-- | textproc/itstool22/Makefile | 29 | ||||
-rw-r--r-- | textproc/itstool22/distinfo | 2 | ||||
-rw-r--r-- | textproc/itstool22/pkg-descr | 19 | ||||
-rw-r--r-- | textproc/itstool22/pkg-plist | 8 |
6 files changed, 61 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index c209b9df78b6..2f93cd775368 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -301,6 +301,7 @@ SUBDIR += it-hyphen SUBDIR += it-mythes SUBDIR += itstool + SUBDIR += itstool22 SUBDIR += jade SUBDIR += jakarta-commons-digester SUBDIR += jalingo diff --git a/textproc/itstool/Makefile b/textproc/itstool/Makefile index 101d92612409..5a201f2af516 100644 --- a/textproc/itstool/Makefile +++ b/textproc/itstool/Makefile @@ -19,6 +19,8 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:textproc/py-libxml2@${PY_FLAVOR} USES= python tar:bzip2 GNU_CONFIGURE= yes +CONFLICTS_INSTALL= itstool22 + post-patch: @${REINPLACE_CMD} -e 's|@PYTHON@|${PYTHON_CMD}|g' \ ${WRKSRC}/itstool.in diff --git a/textproc/itstool22/Makefile b/textproc/itstool22/Makefile new file mode 100644 index 000000000000..d52f185d9525 --- /dev/null +++ b/textproc/itstool22/Makefile @@ -0,0 +1,29 @@ +# Created by: Koop Mast <kwm@FreeBSD.org> +# $FreeBSD$ +# $MCom: ports/trunk/textproc/itstool/Makefile 19804 2014-08-13 14:55:11Z kwm $ + +PORTNAME= itstool +PORTVERSION= 2.0.2 +CATEGORIES= textproc +MASTER_SITES= http://files.itstool.org/itstool/ +PKGNAMESUFFIX= 22 + +MAINTAINER= dbaio@FreeBSD.org +COMMENT= Make XML documents translatable through po files + +LICENSE= GPLv3 + +BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:textproc/py-libxml2@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:textproc/py-libxml2@${PY_FLAVOR} + +USES= python:2.7 tar:bzip2 + +GNU_CONFIGURE= yes + +CONFLICTS_INSTALL= itstool + +post-patch: + @${REINPLACE_CMD} -e 's|@PYTHON@|${PYTHON_CMD}|g' \ + ${WRKSRC}/itstool.in + +.include <bsd.port.mk> diff --git a/textproc/itstool22/distinfo b/textproc/itstool22/distinfo new file mode 100644 index 000000000000..38ebb2a15466 --- /dev/null +++ b/textproc/itstool22/distinfo @@ -0,0 +1,2 @@ +SHA256 (itstool-2.0.2.tar.bz2) = bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a +SIZE (itstool-2.0.2.tar.bz2) = 96748 diff --git a/textproc/itstool22/pkg-descr b/textproc/itstool22/pkg-descr new file mode 100644 index 000000000000..31eae323d083 --- /dev/null +++ b/textproc/itstool22/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/itstool22/pkg-plist b/textproc/itstool22/pkg-plist new file mode 100644 index 000000000000..95a832c5bdec --- /dev/null +++ b/textproc/itstool22/pkg-plist @@ -0,0 +1,8 @@ +bin/itstool +man/man1/itstool.1.gz +%%DATADIR%%/its/docbook.its +%%DATADIR%%/its/docbook5.its +%%DATADIR%%/its/its.its +%%DATADIR%%/its/mallard.its +%%DATADIR%%/its/ttml.its +%%DATADIR%%/its/xhtml.its |