mirror of
https://git.yoctoproject.org/poky
synced 2026-02-28 12:29:40 +01:00
xmlto looks for a cp binary, and on e.g. Fedora 23 will find it at /usr/bin/cp but most other distros have it at /bin/cp. This causing problems with sharing sstate between distributions, but as /bin is a symlink on F23 we can safely force the path to /bin/cp. (From OE-Core rev: 46baed0fc22ab33c6481ec1cb1697f85593b4794) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
39 lines
1.2 KiB
BlitzBasic
39 lines
1.2 KiB
BlitzBasic
SUMMARY = "A shell-script tool for converting XML files to various formats"
|
|
HOMEPAGE = "https://fedorahosted.org/xmlto/"
|
|
SECTION = "docs/xmlto"
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
|
|
|
|
SRC_URI = "https://fedorahosted.org/releases/x/m/xmlto/xmlto-${PV}.tar.gz \
|
|
file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \
|
|
file://catalog.xml \
|
|
"
|
|
SRC_URI[md5sum] = "a1fefad9d83499a15576768f60f847c6"
|
|
SRC_URI[sha256sum] = "2f986b7c9a0e9ac6728147668e776d405465284e13c74d4146c9cbc51fd8aad3"
|
|
|
|
inherit autotools
|
|
|
|
# xmlto needs getopt/xmllint/xsltproc/bash at runtime
|
|
RDEPENDS_${PN} = "docbook-xml-dtd4 \
|
|
docbook-xsl-stylesheets \
|
|
util-linux \
|
|
libxml2 \
|
|
bash \
|
|
"
|
|
RDEPENDS_${PN}_append_class-target = " \
|
|
libxslt-bin \
|
|
"
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
EXTRA_OECONF_append = " BASH=/bin/bash GCP=/bin/cp XMLLINT=xmllint XSLTPROC=xsltproc"
|
|
|
|
do_install_append() {
|
|
install -d ${D}${sysconfdir}/xml/
|
|
install -m 755 ${WORKDIR}/catalog.xml ${D}${sysconfdir}/xml/catalog.xml
|
|
create_wrapper ${D}/${bindir}/xmlto XML_CATALOG_FILES=${sysconfdir}/xml/catalog.xml
|
|
}
|
|
|
|
do_populate_sysroot[rdeptask] = "do_populate_sysroot"
|