forked from Lainports/freebsd-ports
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
This commit is contained in:
parent
fe638ff1ba
commit
71ca6421bf
6 changed files with 61 additions and 0 deletions
|
|
@ -301,6 +301,7 @@
|
|||
SUBDIR += it-hyphen
|
||||
SUBDIR += it-mythes
|
||||
SUBDIR += itstool
|
||||
SUBDIR += itstool22
|
||||
SUBDIR += jade
|
||||
SUBDIR += jakarta-commons-digester
|
||||
SUBDIR += jalingo
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
29
textproc/itstool22/Makefile
Normal file
29
textproc/itstool22/Makefile
Normal file
|
|
@ -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>
|
||||
2
textproc/itstool22/distinfo
Normal file
2
textproc/itstool22/distinfo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
SHA256 (itstool-2.0.2.tar.bz2) = bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a
|
||||
SIZE (itstool-2.0.2.tar.bz2) = 96748
|
||||
19
textproc/itstool22/pkg-descr
Normal file
19
textproc/itstool22/pkg-descr
Normal file
|
|
@ -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/
|
||||
8
textproc/itstool22/pkg-plist
Normal file
8
textproc/itstool22/pkg-plist
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue