blob: 5e3fac7a60cd7d9f5f683f859fb7267ac2210256 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001SUMMARY = "A shell-script tool for converting XML files to various formats"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002HOMEPAGE = "https://pagure.io/xmlto"
3DESCRIPTION = "Utility xmlto is a simple shell-script tool for converting XML files to various formats. It serves as easy to use command line frontend to make fine output without remembering many long options and searching for the syntax of the backends."
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05004SECTION = "docs/xmlto"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005LICENSE = "GPL-2.0-only"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006
7LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
8
Patrick Williams92b42cb2022-09-03 06:53:57 -05009SRCREV = "6fa6a0e07644f20abf2596f78a60112713e11cbe"
10UPSTREAM_CHECK_COMMITS = "1"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050011SRC_URI = "git://pagure.io/xmlto.git;protocol=https;branch=master"
Patrick Williams92b42cb2022-09-03 06:53:57 -050012S = "${WORKDIR}/git"
13
14PV .= "+0.0.29+git${SRCPV}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015
16inherit autotools
17
Andrew Geissler82c905d2020-04-13 13:39:40 -050018CLEANBROKEN = "1"
19
Patrick Williams92b42cb2022-09-03 06:53:57 -050020DEPENDS = "libxml2-native libxslt-native flex-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
Brad Bishop19323692019-04-05 15:28:33 -040021
Patrick Williams213cb262021-08-07 19:21:33 -050022RDEPENDS:${PN} = "docbook-xml-dtd4 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023 docbook-xsl-stylesheets \
24 util-linux \
25 libxml2 \
Brad Bishop19323692019-04-05 15:28:33 -040026 libxslt \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027 bash \
28"
Patrick Williams213cb262021-08-07 19:21:33 -050029RDEPENDS:${PN}:append:class-target = " \
Brad Bishop19323692019-04-05 15:28:33 -040030 libxml2-utils \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031 libxslt-bin \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060032 coreutils \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050033"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050034CACHED_CONFIGUREVARS += "ac_cv_path_TAIL=tail ac_cv_path_GREP=grep ac_cv_path_XMLLINT=xmllint ac_cv_path_XSLTPROC=xsltproc"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035
36BBCLASSEXTEND = "native"
37
Andrew Geissler87f5cff2022-09-30 13:13:31 -050038EXTRA_OECONF:append = " BASH=/bin/bash GCP=/bin/cp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039
Patrick Williams92b42cb2022-09-03 06:53:57 -050040do_configure:prepend() {
41 (cd ${S} && flex -o xmlif/xmlif.c xmlif/xmlif.l)
42}
43
Patrick Williams213cb262021-08-07 19:21:33 -050044do_install:append:class-native() {
Brad Bishop19323692019-04-05 15:28:33 -040045 create_wrapper ${D}${bindir}/xmlto XML_CATALOG_FILES=${sysconfdir}/xml/catalog
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050046}
47
48do_populate_sysroot[rdeptask] = "do_populate_sysroot"