1eb8dc403SDave CobbleySUMMARY = "XSL stylesheets for processing DocBook XML to various output formats"
2eb8dc403SDave CobbleyHOMEPAGE = "http://docbook.sourceforge.net"
3eb8dc403SDave CobbleyLICENSE = "XSL"
4eb8dc403SDave CobbleyLIC_FILES_CHKSUM = "file://COPYING;md5=6beadd98f9c54ab0c387e14211ee4d0e"
5eb8dc403SDave Cobbley
6eb8dc403SDave CobbleySRC_URI = "${SOURCEFORGE_MIRROR}/docbook/docbook-xsl-${PV}.tar.bz2 \
7eb8dc403SDave Cobbley           file://docbook-xsl-stylesheets-no-bashism-in-docbook-xsl-up.patch \
8eb8dc403SDave Cobbley"
9eb8dc403SDave Cobbley
10eb8dc403SDave CobbleySRC_URI[md5sum] = "b48cbf929a2ad85e6672f710777ca7bc"
11eb8dc403SDave CobbleySRC_URI[sha256sum] = "725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968"
12eb8dc403SDave Cobbley
13eb8dc403SDave CobbleyUPSTREAM_CHECK_URI = "http://sourceforge.net/projects/docbook/files/docbook-xsl/"
14eb8dc403SDave Cobbley# Reject versions ending in .0 as those are release candidates
15eb8dc403SDave CobbleyUPSTREAM_CHECK_REGEX = "/docbook-xsl/(?P<pver>(\d+[\.\-_]*)+(?!\.0)\.\d+)/"
16eb8dc403SDave Cobbley
17*19323693SBrad BishopDEPENDS = "libxml2-native"
18*19323693SBrad Bishop
19eb8dc403SDave CobbleyS = "${WORKDIR}/docbook-xsl-${PV}"
20eb8dc403SDave Cobbley
21*19323693SBrad Bishopinherit allarch xmlcatalog
22eb8dc403SDave Cobbley
23eb8dc403SDave Cobbleydo_configure (){
24eb8dc403SDave Cobbley	:
25eb8dc403SDave Cobbley}
26eb8dc403SDave Cobbley
27eb8dc403SDave Cobbleydo_compile (){
28eb8dc403SDave Cobbley	:
29eb8dc403SDave Cobbley}
30eb8dc403SDave Cobbley
31eb8dc403SDave Cobbleydo_install () {
32eb8dc403SDave Cobbley	install -v -m755 -d ${D}${datadir}/xml/docbook/xsl-stylesheets-${PV}
33eb8dc403SDave Cobbley	ln -s xsl-stylesheets-${PV} ${D}${datadir}/xml/docbook/xsl-stylesheets
34eb8dc403SDave Cobbley
35eb8dc403SDave Cobbley	cp -v -R VERSION assembly common eclipse epub epub3 fo \
36eb8dc403SDave Cobbley		highlighting html htmlhelp images javahelp lib manpages \
37eb8dc403SDave Cobbley		params profiling roundtrip slides template webhelp website \
38eb8dc403SDave Cobbley		xhtml xhtml-1_1 xhtml5 catalog.xml \
39eb8dc403SDave Cobbley		${D}${datadir}/xml/docbook/xsl-stylesheets-${PV}
40eb8dc403SDave Cobbley
41eb8dc403SDave Cobbley	ln -s VERSION ${D}/${datadir}/xml/docbook/xsl-stylesheets-${PV}/VERSION.xsl
42eb8dc403SDave Cobbley
43*19323693SBrad Bishop	install -d ${D}${docdir}/${BPN}
44*19323693SBrad Bishop	install -v -m644 README RELEASE-NOTES* NEWS* ${D}${docdir}/${BPN}
45eb8dc403SDave Cobbley}
46eb8dc403SDave Cobbley
47eb8dc403SDave CobbleyRDEPENDS_${PN} += "perl"
48eb8dc403SDave CobbleyFILES_${PN} = "${datadir}/xml/* ${sysconfdir}/xml/docbook-xsl.xml"
49eb8dc403SDave CobbleyFILES_${PN}-doc = "${datadir}/doc/*"
50*19323693SBrad Bishop
51*19323693SBrad BishopXMLCATALOGS = "${datadir}/xml/docbook/xsl-stylesheets-${PV}/catalog.xml"
52*19323693SBrad Bishop
53*19323693SBrad BishopBBCLASSEXTEND = "native"
54