Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | SUMMARY = "XSL stylesheets for processing DocBook XML to various output formats" |
| 2 | HOMEPAGE = "http://docbook.sourceforge.net" |
| 3 | LICENSE = "XSL" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6beadd98f9c54ab0c387e14211ee4d0e" |
| 5 | |
| 6 | SRC_URI = "${SOURCEFORGE_MIRROR}/docbook/docbook-xsl-${PV}.tar.bz2 \ |
| 7 | file://docbook-xsl.xml \ |
| 8 | file://docbook-xsl-stylesheets-no-bashism-in-docbook-xsl-up.patch \ |
| 9 | " |
| 10 | |
| 11 | SRC_URI[md5sum] = "b48cbf929a2ad85e6672f710777ca7bc" |
| 12 | SRC_URI[sha256sum] = "725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968" |
| 13 | |
| 14 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/docbook/files/docbook-xsl/" |
| 15 | # Reject versions ending in .0 as those are release candidates |
| 16 | UPSTREAM_CHECK_REGEX = "/docbook-xsl/(?P<pver>(\d+[\.\-_]*)+(?!\.0)\.\d+)/" |
| 17 | |
| 18 | S = "${WORKDIR}/docbook-xsl-${PV}" |
| 19 | |
| 20 | inherit allarch |
| 21 | BBCLASSEXTEND = "native" |
| 22 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 23 | do_configure (){ |
| 24 | : |
| 25 | } |
| 26 | |
| 27 | do_compile (){ |
| 28 | : |
| 29 | } |
| 30 | |
| 31 | do_install () { |
| 32 | # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-xsl.html |
| 33 | # for details. |
| 34 | install -v -m755 -d ${D}${datadir}/xml/docbook/xsl-stylesheets-${PV} |
| 35 | ln -s xsl-stylesheets-${PV} ${D}${datadir}/xml/docbook/xsl-stylesheets |
| 36 | |
| 37 | cp -v -R VERSION assembly common eclipse epub epub3 fo \ |
| 38 | highlighting html htmlhelp images javahelp lib manpages \ |
| 39 | params profiling roundtrip slides template webhelp website \ |
| 40 | xhtml xhtml-1_1 xhtml5 catalog.xml \ |
| 41 | ${D}${datadir}/xml/docbook/xsl-stylesheets-${PV} |
| 42 | |
| 43 | ln -s VERSION ${D}/${datadir}/xml/docbook/xsl-stylesheets-${PV}/VERSION.xsl |
| 44 | |
| 45 | install -v -m644 -D README \ |
| 46 | ${D}${datadir}/doc/docbook-xsl-${PV}/README.txt |
| 47 | install -v -m644 RELEASE-NOTES* NEWS* \ |
| 48 | ${D}${datadir}/doc/docbook-xsl-${PV} |
| 49 | |
| 50 | install -d ${D}${sysconfdir}/xml/ |
| 51 | install -m 755 ${WORKDIR}/docbook-xsl.xml ${D}${sysconfdir}/xml/docbook-xsl.xml |
| 52 | |
| 53 | } |
| 54 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 55 | do_install_append_class-native () { |
| 56 | # Ensure that the catalog file sgml-docbook.cat is properly |
| 57 | # updated when the package is installed from sstate cache. |
| 58 | sed -i -e "s|file://.*/usr/share/xml|file://${datadir}/xml|g" ${D}${sysconfdir}/xml/docbook-xsl.xml |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | RDEPENDS_${PN} += "perl" |
| 62 | FILES_${PN} = "${datadir}/xml/* ${sysconfdir}/xml/docbook-xsl.xml" |
| 63 | FILES_${PN}-doc = "${datadir}/doc/*" |