From e30f3722eb0ad28035be0ecee4bb8fbebd61653e Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 4 Jul 2014 21:11:44 +0200 Subject: [PATCH] Add itstool. --- dev-util/itstool/itstool-2.0.2.recipe | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 dev-util/itstool/itstool-2.0.2.recipe diff --git a/dev-util/itstool/itstool-2.0.2.recipe b/dev-util/itstool/itstool-2.0.2.recipe new file mode 100644 index 000000000..5f2700da1 --- /dev/null +++ b/dev-util/itstool/itstool-2.0.2.recipe @@ -0,0 +1,57 @@ +SUMMARY="Translate your XML documents with PO files" +DESCRIPTION=" +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. +" +HOMEPAGE="http://itstool.org/" +SRC_URI="http://files.itstool.org/itstool/itstool-$portVersion.tar.bz2" +CHECKSUM_SHA256="bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a" +REVISION="1" +ARCHITECTURES="x86_gcc2" +PROVIDES=" + itstool = $portVersion + cmd:itstool +" + +REQUIRES=" + libxml2_python +" + +BUILD_REQUIRES=" + libxml2_python +" + +BUILD_PREREQUIRES=" + cmd:awk + cmd:make + cmd:python >= 2.6 +" + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install +} + +LICENSE="GNU GPL v3" +COPYRIGHT="2010-2014 Shaun McCance"