# Buildsheet autogenerated by ravenadm tool -- Do not edit.

NAMEBASE=		itstool
VERSION=		2.0.7
REVISION=		1
KEYWORDS=		textproc
VARIANTS=		std
SDESC[std]=		ITS-based XML translation tool
HOMEPAGE=		https://itstool.org/
CONTACT=		nobody

DOWNLOAD_GROUPS=	main
SITES[main]=		https://files.itstool.org/itstool/
DISTFILE[1]=		itstool-2.0.7.tar.bz2:main
DF_INDEX=		1
SPKGS[std]=		single

OPTIONS_AVAILABLE=	none
OPTIONS_STANDARD=	none

BUILDRUN_DEPENDS=	python-libxml2:single:python_default

USES=			python:sutools

FPC_EQUIVALENT=		textproc/itstool

MUST_CONFIGURE=		gnu

post-install:
	# don't allow !python shebang
	${SED} -i'' -e 's|#!python|#!${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/bin/itstool

pre-configure:
	${REINPLACE_CMD} \
		-e 's|/usr/local|${LOCALBASE}|g' \
		${WRKSRC}/itstool.in
	${REINPLACE_CMD} -e 's|python -|${PYTHON_CMD} -|' \
		${WRKSRC}/configure

[FILE:1007:descriptions/desc.single]
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.


[FILE:100:distinfo]
6b9a7cd29a12bb95598f5750e8763cee78836a1a207f85b74d8b3275b27e87ca       104648 itstool-2.0.7.tar.bz2


[FILE:118:manifests/plist.single]
@comment rest is autoplist'd
share/itstool/its/
 docbook.its
 docbook5.its
 its.its
 mallard.its
 ttml.its
 xhtml.its