From eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 Mon Sep 17 00:00:00 2001 From: Dave Cobbley Date: Tue, 14 Aug 2018 10:05:37 -0700 Subject: [Subtree] Removing import-layers directory As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley Signed-off-by: Brad Bishop --- poky/meta/recipes-devtools/xmlto/files/catalog.xml | 19 ++++++++++ ....in-drop-the-test-of-xmllint-and-xsltproc.patch | 30 ++++++++++++++++ poky/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb | 41 ++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 poky/meta/recipes-devtools/xmlto/files/catalog.xml create mode 100644 poky/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch create mode 100644 poky/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb (limited to 'poky/meta/recipes-devtools/xmlto') diff --git a/poky/meta/recipes-devtools/xmlto/files/catalog.xml b/poky/meta/recipes-devtools/xmlto/files/catalog.xml new file mode 100644 index 000000000..6b8833d87 --- /dev/null +++ b/poky/meta/recipes-devtools/xmlto/files/catalog.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/poky/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch b/poky/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch new file mode 100644 index 000000000..6d547a6c9 --- /dev/null +++ b/poky/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch @@ -0,0 +1,30 @@ +configure.in: drop the test of xmllint and xsltproc + +The test is unnecessary, the xmllint and xsltproc were explicitly +added to RDEPENDS. + +Upstream-Status: Inappropriate +Signed-off-by: Hongxu Jia +--- + configure.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.in b/configure.in +--- a/configure.in ++++ b/configure.in +@@ -42,10 +42,10 @@ AC_ARG_VAR([LOCALE], [Name and path of the `locale' program.]) + AC_PATH_PROG([LOCALE], [locale], [locale]) + + AC_ARG_VAR([XMLLINT], [Name and path of the `xmllint' program.]) +-AC_PATH_PROG([XMLLINT], [xmllint], [xmllint]) ++dnl AC_PATH_PROG([XMLLINT], [xmllint], [xmllint]) + + AC_ARG_VAR([XSLTPROC], [Name and path of the `xsltproc' program.]) +-AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc]) ++dnl AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc]) + + dnl + dnl toolchains +-- +1.8.1.2 + diff --git a/poky/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb b/poky/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb new file mode 100644 index 000000000..6216d7782 --- /dev/null +++ b/poky/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb @@ -0,0 +1,41 @@ +SUMMARY = "A shell-script tool for converting XML files to various formats" +HOMEPAGE = "https://releases.pagure.org/xmlto/" +SECTION = "docs/xmlto" +LICENSE = "GPLv2" + +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" + +SRC_URI = "https://releases.pagure.org/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 +RDEPENDS_class-native = "libxslt-native" + +# xmlto needs getopt/xmllint/xsltproc/bash/tail at runtime +RDEPENDS_${PN} = "docbook-xml-dtd4 \ + docbook-xsl-stylesheets \ + util-linux \ + libxml2 \ + bash \ +" +RDEPENDS_${PN}_append_class-target = " \ + libxslt-bin \ + coreutils \ +" +CACHED_CONFIGUREVARS += "ac_cv_path_TAIL=tail" + +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" -- cgit v1.2.3