summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb')
-rw-r--r--meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb25
1 files changed, 12 insertions, 13 deletions
diff --git a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
index da62b77a60..4b6a28e34c 100644
--- a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
+++ b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
@@ -8,13 +8,14 @@ HOMEPAGE = "http://www.docbook.org/xml/"
8LICENSE = "OASIS" 8LICENSE = "OASIS"
9LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-OASIS;md5=c608985dd5f7f215e669e7639a0b1d2e" 9LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-OASIS;md5=c608985dd5f7f215e669e7639a0b1d2e"
10 10
11DEPENDS = "libxml2-native"
12
11# Note: the upstream sources are not distributed with a license file. 13# Note: the upstream sources are not distributed with a license file.
12# LICENSE-OASIS is included as a "patch" to workaround this. When 14# LICENSE-OASIS is included as a "patch" to workaround this. When
13# upgrading this recipe, please verify whether this is still needed. 15# upgrading this recipe, please verify whether this is still needed.
14SRC_URI = "http://snapshot.debian.org/archive/debian/20160728T043443Z/pool/main/d/docbook-xml/docbook-xml_${PV}.orig.tar.gz \ 16SRC_URI = "http://snapshot.debian.org/archive/debian/20160728T043443Z/pool/main/d/docbook-xml/docbook-xml_${PV}.orig.tar.gz \
15 file://LICENSE-OASIS \ 17 file://LICENSE-OASIS \
16 file://docbook-xml-update-catalog.xml.patch \ 18 file://docbook-xml-update-catalog.xml.patch \
17 file://docbook-xml.xml \
18" 19"
19 20
20SRC_URI[md5sum] = "487b4d44e15cffb1f4048af23f98208e" 21SRC_URI[md5sum] = "487b4d44e15cffb1f4048af23f98208e"
@@ -22,7 +23,7 @@ SRC_URI[sha256sum] = "b0f8edcf697f5318e63dd98c9a931f3fee167af0805ba441db372e0f17
22 23
23UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/docbook-xml/" 24UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/docbook-xml/"
24 25
25S="${WORKDIR}/docbook-xml-4.5.c31424" 26S = "${WORKDIR}/docbook-xml-4.5.c31424"
26 27
27inherit allarch 28inherit allarch
28BBCLASSEXTEND = "native" 29BBCLASSEXTEND = "native"
@@ -36,20 +37,18 @@ do_compile (){
36} 37}
37 38
38do_install () { 39do_install () {
39 # Refer debian https://packages.debian.org/sid/all/docbook-xml/filelist 40 install -d ${D}${sysconfdir}/xml/
41 xmlcatalog --create --noout ${D}${sysconfdir}/xml/docbook-xml.xml
42
40 for DTDVERSION in 4.0 4.1.2 4.2 4.3 4.4 4.5; do 43 for DTDVERSION in 4.0 4.1.2 4.2 4.3 4.4 4.5; do
41 install -d -m 755 ${D}${datadir}/xml/docbook/schema/dtd/${DTDVERSION} 44 DEST=${datadir}/xml/docbook/schema/dtd/$DTDVERSION
42 cp -v -R docbook-${DTDVERSION}/* ${D}${datadir}/xml/docbook/schema/dtd/${DTDVERSION} 45 install -d -m 755 ${D}$DEST
46 cp -v -R docbook-$DTDVERSION/* ${D}$DEST
47 xmlcatalog --verbose --noout --add nextCatalog unused file://$DEST/catalog.xml ${D}${sysconfdir}/xml/docbook-xml.xml
43 done 48 done
44
45 install -d ${D}${sysconfdir}/xml/
46 install -m 755 ${WORKDIR}/docbook-xml.xml ${D}${sysconfdir}/xml/docbook-xml.xml
47} 49}
48 50
49do_install_append_class-native () { 51XMLCATALOGS = "${sysconfdir}/xml/docbook-xml.xml"
50 # Ensure that the catalog file sgml-docbook.cat is properly 52inherit xmlcatalog
51 # updated when the package is installed from sstate cache.
52 sed -i -e "s|file://.*/usr/share/xml|file://${datadir}/xml|g" ${D}${sysconfdir}/xml/docbook-xml.xml
53}
54 53
55FILES_${PN} = "${datadir}/* ${sysconfdir}/xml/docbook-xml.xml" 54FILES_${PN} = "${datadir}/* ${sysconfdir}/xml/docbook-xml.xml"