<?xml version="1.0"?>
<package name="itstool">
	<description>convert between XML and PO using ITS</description>
	<releases>
		<release version="2.0.7" revision="2">
			<deps>
				<dep name="lxml"/>
				<dep name="Python3"/>

				<dep name="autoconf"/>
				<dep name="automake"/>
				<dep name="libtool"/>
			</deps>
			<build>
				<script>
					<archive name="itstool-$VERSION">
						<!-- Fix insufficiently quoted regular expressions, already upstream -->
						<patch name="itstool-$VERSION-fix-regex"/>

						<!-- Port from the deprecated libxml2 Python module to lxml
						     https://github.com/itstool/itstool/pull/57 -->
						<patch name="itstool-$VERSION-lxml-1"/>

						<cmd>autoreconf -if</cmd>

						<cmd>PYTHON=/usr/bin/python3 ./configure</cmd>
						<cmd>make</cmd>
						<cmd>make install</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
