mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-12 23:00:10 +02:00
70 lines
2.0 KiB
Bash
70 lines
2.0 KiB
Bash
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/"
|
|
COPYRIGHT="2010-2014 Shaun McCance"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="http://files.itstool.org/itstool/itstool-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="6b9a7cd29a12bb95598f5750e8763cee78836a1a207f85b74d8b3275b27e87ca"
|
|
PATCHES="fix_crash_912099.patch"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
itstool$secondaryArchSuffix = $portVersion
|
|
cmd:itstool$commandSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
libxml2${secondaryArchSuffix}_python
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
libxml2${secondaryArchSuffix}_python
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:awk
|
|
cmd:make
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|