2008-10-13 02:50:32 +00:00
|
|
|
# Template build file for 'xmlcatmgr'.
|
|
|
|
pkgname=xmlcatmgr
|
|
|
|
version=2.2
|
2008-12-15 06:27:38 +00:00
|
|
|
distfiles="$SOURCEFORGE_SITE/xmlcatmgr/$pkgname-$version.tar.gz"
|
2008-10-13 02:50:32 +00:00
|
|
|
build_style=gnu_configure
|
|
|
|
short_desc="XML and SGML catalog manager"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2008-10-27 05:12:30 +00:00
|
|
|
checksum=ea1142b6aef40fbd624fc3e2130cf10cf081b5fa88e5229c92b8f515779d6fdc
|
2008-10-13 02:50:32 +00:00
|
|
|
long_desc="
|
|
|
|
XML Catalog Manager (xmlcatmgr in its short form) is a small utility used
|
|
|
|
to manipulate SGML and XML catalogs. It is extremely small and lightweight,
|
|
|
|
specially designed to be run from packaging systems. Basically, it allows
|
|
|
|
adding and removing entries from catalogs in a completely automated way.
|
|
|
|
|
|
|
|
A catalog is a lookup mechanism used to translate entities into other
|
|
|
|
different entities. They can, for example, map public identifiers to
|
|
|
|
local files or URIs. This allows you to tell the parser where to look
|
|
|
|
for entities without having to modify the original document source."
|
2008-10-27 05:12:30 +00:00
|
|
|
|
2009-03-20 07:17:00 +00:00
|
|
|
conf_files="/etc/sgml/catalog /etc/xml/catalog
|
|
|
|
/usr/share/sgml/catalog /usr/share/xml/catalog"
|
2011-06-17 07:01:50 +00:00
|
|
|
stow_copy_files="$conf_files"
|
2010-04-23 13:28:22 +00:00
|
|
|
|
2009-03-20 07:17:00 +00:00
|
|
|
Add_dependency full glibc
|
|
|
|
|
2008-10-27 05:12:30 +00:00
|
|
|
pre_install()
|
|
|
|
{
|
|
|
|
# Create XML and SGML catalogs once built.
|
|
|
|
echo "=> Creating SGML catalogs..."
|
|
|
|
$wrksrc/xmlcatmgr -sc $wrksrc/catalog.etc.sgml create
|
|
|
|
$wrksrc/xmlcatmgr -sc $wrksrc/catalog.sgml create
|
|
|
|
$wrksrc/xmlcatmgr -sc $wrksrc/catalog.etc.sgml add CATALOG \
|
2009-03-20 07:17:00 +00:00
|
|
|
/usr/share/sgml/catalog
|
2008-10-27 05:12:30 +00:00
|
|
|
echo "=> Creating XML catalogs..."
|
|
|
|
$wrksrc/xmlcatmgr -c $wrksrc/catalog.etc.xml create
|
|
|
|
$wrksrc/xmlcatmgr -c $wrksrc/catalog.xml create
|
|
|
|
$wrksrc/xmlcatmgr -c $wrksrc/catalog.etc.xml add nextCatalog \
|
2009-03-20 07:17:00 +00:00
|
|
|
/usr/share/xml/catalog
|
2008-10-27 05:12:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
# Install the XML/SGML catalog files.
|
|
|
|
echo "=> Installing XML/SGML catalogs."
|
|
|
|
chmod 644 $wrksrc/catalog.*
|
2009-03-20 07:17:00 +00:00
|
|
|
install -D -m644 $wrksrc/catalog.sgml ${DESTDIR}/usr/share/sgml/catalog
|
|
|
|
install -D -m644 $wrksrc/catalog.etc.sgml ${DESTDIR}/etc/sgml/catalog
|
|
|
|
install -D -m644 $wrksrc/catalog.xml ${DESTDIR}/usr/share/xml/catalog
|
|
|
|
install -D -m644 $wrksrc/catalog.etc.xml ${DESTDIR}/etc/xml/catalog
|
2008-10-27 05:12:30 +00:00
|
|
|
}
|