<?xml version="1.0"?>
<package name="libxml2">
	<description>gnome xml library</description>
	<releases>
		<release version="2.14.6" revision="1">
			<deps>
				<dep name="zlib"/>
			</deps>
			<build>
				<script>
					<archive name="libxml2-$VERSION">
						<!-- use /usr/share/xml/catalog as default catalog in addition to /etc/xml/catalog -->
						<cmd>sed -i -e '/define XML_XML_DEFAULT_CATALOG/s_$_ " file:///usr/share/xml/catalog"_' catalog.c</cmd>

						<cmd>./configure --without-python --disable-static</cmd>
						<cmd>make</cmd>
						<cmd>make install</cmd>

						<!-- remove documentation from docdir, devhelp is sufficient -->
						<cmd>rm -rvf /usr/share/doc/libxml2-$VERSION</cmd>

						<install name="update-xmlcatalog-20140207" dest="/usr/bin/update-xmlcatalog" mode="0755"/>
					</archive>
				</script>
			</build>
		</release>
		<release version="2.14.6" revision="1" tag="python3">
			<deps>
				<dep name="libxml2"/>
				<dep name="Python3"/>
			</deps>
			<build>
				<script>
					<archive name="libxml2-$VERSION">
						<!-- use /usr/share/xml/catalog as default catalog in addition to /etc/xml/catalog -->
						<cmd>sed -i -e '/define XML_XML_DEFAULT_CATALOG/s_$_ " file:///usr/share/xml/catalog"_' catalog.c</cmd>

						<cmd>PYTHON=python3 ./configure --disable-static</cmd>
						<cmd>make</cmd>
						<cmd>make -C python install</cmd>

						<!-- remove documentation from docdir, devhelp is sufficient -->
						<cmd>rm -rvf /usr/share/doc/libxml2-python-$VERSION</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
