From ae5ee38e367ac347f801b058235a7c72ca09f13b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 17 Jun 2011 09:03:18 +0200 Subject: [PATCH] Added docbook-dsssl-1.79 build template. --- srcpkgs/docbook-dsssl/template | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 srcpkgs/docbook-dsssl/template diff --git a/srcpkgs/docbook-dsssl/template b/srcpkgs/docbook-dsssl/template new file mode 100644 index 00000000000..02c85ff9ecb --- /dev/null +++ b/srcpkgs/docbook-dsssl/template @@ -0,0 +1,47 @@ +# Template file for 'docbook-dsssl' +pkgname=docbook-dsssl +version=1.79 +distfiles="${SOURCEFORGE_SITE}/docbook/$pkgname-$version.tar.bz2" +build_style=custom-install +short_desc="DSSSL stylesheets for the DocBook DTD" +maintainer="Juan RP " +homepage="http://www.docbook.org/" +license="MIT" +checksum=2f329e120bee9ef42fbdd74ddd60e05e49786c5a7953a0ff4c680ae6bdf0e2bc +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 + +Add_dependency full xmlcatmgr +Add_dependency full docbook-xml ">=4.2" + +export sgml_entries="CATALOG /usr/share/sgml/docbook/dsssl/modular/catalog --" + +do_install() +{ + rm -rf ${wrksrc}/docsrc + install -d ${DESTDIR}/usr/share/sgml/docbook/dsssl/modular + cp -rp ${wrksrc}/* ${DESTDIR}/usr/share/sgml/docbook/dsssl/modular +} + +post_stow() +{ + # + # Run the trigger to register its XML catalog entries. + # + cd ${XBPS_MASTERDIR} && ${XBPS_TRIGGERSDIR}/xml-catalog run post-install +} + +pre_remove() +{ + cd ${XBPS_MASTERDIR} && ${XBPS_TRIGGERSDIR}/xml-catalog run pre-remove +}