blob: 6216d7782be03d9dea010836fcdb61df62e6be8e [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001SUMMARY = "A shell-script tool for converting XML files to various formats"
Brad Bishop37a0e4d2017-12-04 01:01:44 -05002HOMEPAGE = "https://releases.pagure.org/xmlto/"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05003SECTION = "docs/xmlto"
4LICENSE = "GPLv2"
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
7
Brad Bishop37a0e4d2017-12-04 01:01:44 -05008SRC_URI = "https://releases.pagure.org/xmlto/xmlto-${PV}.tar.gz \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05009 file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \
10 file://catalog.xml \
11"
12SRC_URI[md5sum] = "a1fefad9d83499a15576768f60f847c6"
13SRC_URI[sha256sum] = "2f986b7c9a0e9ac6728147668e776d405465284e13c74d4146c9cbc51fd8aad3"
14
15inherit autotools
Patrick Williamsc0f7c042017-02-23 20:41:17 -060016RDEPENDS_class-native = "libxslt-native"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017
Patrick Williamsc0f7c042017-02-23 20:41:17 -060018# xmlto needs getopt/xmllint/xsltproc/bash/tail at runtime
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019RDEPENDS_${PN} = "docbook-xml-dtd4 \
20 docbook-xsl-stylesheets \
21 util-linux \
22 libxml2 \
23 bash \
24"
25RDEPENDS_${PN}_append_class-target = " \
26 libxslt-bin \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060027 coreutils \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050028"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050029CACHED_CONFIGUREVARS += "ac_cv_path_TAIL=tail"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050030
31BBCLASSEXTEND = "native"
32
33EXTRA_OECONF_append = " BASH=/bin/bash GCP=/bin/cp XMLLINT=xmllint XSLTPROC=xsltproc"
34
35do_install_append() {
36 install -d ${D}${sysconfdir}/xml/
37 install -m 755 ${WORKDIR}/catalog.xml ${D}${sysconfdir}/xml/catalog.xml
38 create_wrapper ${D}/${bindir}/xmlto XML_CATALOG_FILES=${sysconfdir}/xml/catalog.xml
39}
40
41do_populate_sysroot[rdeptask] = "do_populate_sysroot"