1*4882a593SmuzhiyunSUMMARY = "Document type definitions for verification of XML data files" 2*4882a593SmuzhiyunDESCRIPTION = "Document type definitions for verification of XML data \ 3*4882a593Smuzhiyunfiles against the DocBook rule set, it ships with the latest DocBook 4.5 \ 4*4882a593SmuzhiyunXML DTD, as well as a selected set of legacy DTDs for use with older \ 5*4882a593Smuzhiyundocuments, including 4.0, 4.1.2, 4.2, 4.3 and 4.4" 6*4882a593SmuzhiyunHOMEPAGE = "http://www.docbook.org/xml/" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunLICENSE = "OASIS" 9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-OASIS;md5=c608985dd5f7f215e669e7639a0b1d2e" 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun# Note: the upstream sources are not distributed with a license file. 12*4882a593Smuzhiyun# LICENSE-OASIS is included as a "patch" to workaround this. When 13*4882a593Smuzhiyun# upgrading this recipe, please verify whether this is still needed. 14*4882a593SmuzhiyunSRC_URI = "http://snapshot.debian.org/archive/debian/20160728T043443Z/pool/main/d/docbook-xml/docbook-xml_${PV}.orig.tar.gz \ 15*4882a593Smuzhiyun file://LICENSE-OASIS \ 16*4882a593Smuzhiyun file://docbook-xml-update-catalog.xml.patch \ 17*4882a593Smuzhiyun" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunSRC_URI[md5sum] = "487b4d44e15cffb1f4048af23f98208e" 20*4882a593SmuzhiyunSRC_URI[sha256sum] = "b0f8edcf697f5318e63dd98c9a931f3fee167af0805ba441db372e0f17b2a44f" 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/docbook-xml/" 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunS = "${WORKDIR}/docbook-xml-4.5.c31424" 25*4882a593Smuzhiyun 26*4882a593Smuzhiyuninherit allarch 27*4882a593SmuzhiyunBBCLASSEXTEND = "native" 28*4882a593Smuzhiyun 29*4882a593Smuzhiyundo_configure (){ 30*4882a593Smuzhiyun : 31*4882a593Smuzhiyun} 32*4882a593Smuzhiyun 33*4882a593Smuzhiyundo_compile (){ 34*4882a593Smuzhiyun : 35*4882a593Smuzhiyun} 36*4882a593Smuzhiyun 37*4882a593Smuzhiyundo_install () { 38*4882a593Smuzhiyun install -d ${D}${sysconfdir}/xml/ 39*4882a593Smuzhiyun xmlcatalog --create --noout ${D}${sysconfdir}/xml/docbook-xml.xml 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun for DTDVERSION in 4.0 4.1.2 4.2 4.3 4.4 4.5; do 42*4882a593Smuzhiyun DEST=${datadir}/xml/docbook/schema/dtd/$DTDVERSION 43*4882a593Smuzhiyun install -d -m 755 ${D}$DEST 44*4882a593Smuzhiyun cp -v -R docbook-$DTDVERSION/* ${D}$DEST 45*4882a593Smuzhiyun xmlcatalog --verbose --noout --add nextCatalog unused file://$DEST/catalog.xml ${D}${sysconfdir}/xml/docbook-xml.xml 46*4882a593Smuzhiyun done 47*4882a593Smuzhiyun} 48*4882a593Smuzhiyun 49*4882a593SmuzhiyunXMLCATALOGS = "${sysconfdir}/xml/docbook-xml.xml" 50*4882a593Smuzhiyuninherit xmlcatalog 51*4882a593Smuzhiyun 52*4882a593SmuzhiyunFILES:${PN} = "${datadir}/* ${sysconfdir}/xml/docbook-xml.xml" 53