From b8bb770e96d4c3296f8b2da497675b067145ddf6 Mon Sep 17 00:00:00 2001 From: Scott Garman Date: Mon, 24 Jan 2011 18:50:09 -0800 Subject: sgml-common: new recipe v0.6.3 Recipe derived from OpenEmbedded. Signed-off-by: Scott Garman --- .../sgml-common/sgml-common_0.6.3.bb | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb (limited to 'meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb') diff --git a/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb b/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb new file mode 100644 index 0000000000..92014a80ee --- /dev/null +++ b/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb @@ -0,0 +1,52 @@ +SUMMARY = "Base utilities for working with SGML and XML" +DESCRIPTION = "The sgml-common package gathers very basic \ +stuff necessary to work with SGML and XML, such as xml.dcl, \ +a SGML declaration of XML; iso-entities, a list of the basic \ +SGML ISO entities; and install-catalog, a script used to \ +add entries to (or remove entries from) centralized catalogs \ +whose entries are pointers to SGML open catalogs, \ +as defined by OASIS." +HOMEPAGE = "http://sources.redhat.com/docbook-tools/" +LICENSE = "GPLv2+" +# See the comments in license.patch when upgrading this recipe. +# This is inteded to be a temporary workaround. +LIC_FILES_CHKSUM = "file://LICENSE-GPLv2;md5=ab8a50abe86dfc859e148baae043c89b" +SECTION = "base" + +PR = "r0" + +SRC_URI = "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/sgml-common-${PV}.tgz \ + file://autohell.patch \ + file://license.patch" + +SRC_URI[md5sum] = "103c9828f24820df86e55e7862e28974" +SRC_URI[sha256sum] = "7dc418c1d361123ffc5e45d61f1b97257940a8eb35d0bfbbc493381cc5b1f959" + +inherit autotools + +do_compile_append() { + # install-catalog script contains hardcoded references to /etc/sgml + sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" bin/install-catalog +} + +FILES_sgml-common_append = " ${datadir}/sgml" + +pkg_postinst() { + install-catalog \ + --add ${sysconfdir}/sgml/sgml-ent.cat \ + ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog + + install-catalog \ + --add ${sysconfdir}/sgml/sgml-docbook.cat \ + ${sysconfdir}/sgml/sgml-ent.cat +} + +pkg_postrm() { + install-catalog \ + --remove ${sysconfdir}/sgml/sgml-ent.cat \ + ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog + + install-catalog \ + --remove ${sysconfdir}/sgml/sgml-docbook.cat \ + ${sysconfdir}/sgml/sgml-ent.cat +} -- cgit 1.2.3-korg