vp-build/srcpkgs/docbook-xsl/template
Juan RP 85cc462e1d Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
2009-11-22 08:31:44 +01:00

54 lines
1.7 KiB
Plaintext

# Template file for 'docbook-xml'
pkgname=docbook-xsl
version=1.75.2
distfiles="${SOURCEFORGE_SITE}/docbook/$pkgname-$version.tar.bz2"
build_style=custom-install
short_desc="Docbook XSL modular stylesheet"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=0dcc3aebd2ada8719e47b77c62ab986c4f2747f9a7cab6f629b6472e6d058e09
long_desc="
The DocBook XSL stylesheets provide a serie of ready-to-use templates to
process documents based on the DocBook XML DTD. They can generate different
types of output files, like XHTML, slides, manpages, JavaDoc...
They are written in a modular fashion. Each of the HTML and FO stylesheets
starts with a driver file that assembles a collection of component files
into a complete stylesheet. This modular design puts similar things together
into smaller files that are easier to write and maintain than one big
stylesheet."
noarch=yes
triggers="xml-catalog"
Add_dependency full xmlcatmgr
Add_dependency full docbook-xml ">=4.2"
xml_catalogs="/usr/share/xsl/docbook/catalog.xml"
do_install()
{
local xslmods="common eclipse epub fo highlighting html htmlhelp \
images javahelp lib manpages params profiling \
roundtrip slides website xhtml xhtml-1_1"
cd $wrksrc
install -D -m644 catalog.xml \
${DESTDIR}/usr/share/xsl/docbook/catalog.xml
install -m644 VERSION ${DESTDIR}/usr/share/xsl/docbook
for dir in ${xslmods}; do
install -d ${DESTDIR}/usr/share/xsl/docbook/${dir}
cp -a ${dir}/* ${DESTDIR}/usr/share/xsl/docbook/${dir}/
done
}
post_install()
{
#
# Run the trigger to register its XML catalog entries.
#
export xml_entries="nextCatalog ${xml_catalogs} --"
cd ${XBPS_MASTERDIR}
${XBPS_TRIGGERSDIR}/xml-catalog run post-install
unset xml_entries
}