Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Document type definitions for verification of XML data files" |
| 2 | DESCRIPTION = "Document type definitions for verification of XML data \ |
| 3 | files against the DocBook rule set, it ships with the latest DocBook 4.5 \ |
| 4 | XML DTD, as well as a selected set of legacy DTDs for use with older \ |
| 5 | documents, including 4.0, 4.1.2, 4.2, 4.3 and 4.4" |
| 6 | HOMEPAGE = "http://www.docbook.org/xml/" |
| 7 | |
| 8 | LICENSE = "OASIS" |
| 9 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-OASIS;md5=c608985dd5f7f215e669e7639a0b1d2e" |
| 10 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 11 | DEPENDS = "libxml2-native" |
| 12 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | # Note: the upstream sources are not distributed with a license file. |
| 14 | # LICENSE-OASIS is included as a "patch" to workaround this. When |
| 15 | # upgrading this recipe, please verify whether this is still needed. |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 16 | SRC_URI = "http://snapshot.debian.org/archive/debian/20160728T043443Z/pool/main/d/docbook-xml/docbook-xml_${PV}.orig.tar.gz \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | file://LICENSE-OASIS \ |
| 18 | file://docbook-xml-update-catalog.xml.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | " |
| 20 | |
| 21 | SRC_URI[md5sum] = "487b4d44e15cffb1f4048af23f98208e" |
| 22 | SRC_URI[sha256sum] = "b0f8edcf697f5318e63dd98c9a931f3fee167af0805ba441db372e0f17b2a44f" |
| 23 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 24 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/docbook-xml/" |
| 25 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 26 | S = "${WORKDIR}/docbook-xml-4.5.c31424" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
| 28 | inherit allarch |
| 29 | BBCLASSEXTEND = "native" |
| 30 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 31 | do_configure (){ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | : |
| 33 | } |
| 34 | |
| 35 | do_compile (){ |
| 36 | : |
| 37 | } |
| 38 | |
| 39 | do_install () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | install -d ${D}${sysconfdir}/xml/ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 41 | xmlcatalog --create --noout ${D}${sysconfdir}/xml/docbook-xml.xml |
| 42 | |
| 43 | for DTDVERSION in 4.0 4.1.2 4.2 4.3 4.4 4.5; do |
| 44 | DEST=${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 |
| 48 | done |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 49 | } |
| 50 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 51 | XMLCATALOGS = "${sysconfdir}/xml/docbook-xml.xml" |
| 52 | inherit xmlcatalog |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | |
| 54 | FILES_${PN} = "${datadir}/* ${sysconfdir}/xml/docbook-xml.xml" |