summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2011-01-24 18:50:09 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-01 23:59:35 +0000
commitb8bb770e96d4c3296f8b2da497675b067145ddf6 (patch)
treeaa0584b485826145b890a9581b9a934bc28f2d32 /meta
parent05954ef4d7d882f34e2bb1f3bc44ad6f80c11d4c (diff)
downloadpoky-b8bb770e96d4c3296f8b2da497675b067145ddf6.tar.gz
sgml-common: new recipe v0.6.3
Recipe derived from OpenEmbedded. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common-0.6.3/autohell.patch58
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common-0.6.3/license.patch26
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb50
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb52
4 files changed, 186 insertions, 0 deletions
diff --git a/meta/recipes-devtools/sgml-common/sgml-common-0.6.3/autohell.patch b/meta/recipes-devtools/sgml-common/sgml-common-0.6.3/autohell.patch
new file mode 100644
index 0000000000..1366adabd8
--- /dev/null
+++ b/meta/recipes-devtools/sgml-common/sgml-common-0.6.3/autohell.patch
@@ -0,0 +1,58 @@
1Patch obtained from OpenEmbedded.
2
3Signed-off-by: Scott Garman <scott.a.garman@intel.com>
4--- sgml-common-0.6.3/bin/Makefile.am~autohell.patch 2001-01-30 15:42:21.000000000 +0100
5+++ sgml-common-0.6.3/bin/Makefile.am 2004-06-17 11:51:11.000000000 +0200
6@@ -1,6 +1,5 @@
7 primitive_scripts = sgmlwhich
8
9-bindir = $(prefix)/bin
10 bin_SCRIPTS = install-catalog $(primitive_scripts)
11
12 EXTRA_DIST = install-catalog.in $(primitive_scripts)
13--- /dev/null 2003-09-23 19:59:22.000000000 +0200
14+++ sgml-common-0.6.3/bin/sgmlwhich.in 2004-06-17 11:51:11.000000000 +0200
15@@ -0,0 +1,7 @@
16+#!/bin/sh
17+# Location of the main configuration file for consistency with non-LSB platforms
18+# Send any comments to Eric Bischoff <eric@caldera.de>
19+# This program is under GPL license. See LICENSE file for details.
20+
21+echo "@sysconfdir@/sgml/sgml.conf"
22+# Simple, isn't it? ;-)
23--- /dev/null 2003-09-23 19:59:22.000000000 +0200
24+++ sgml-common-0.6.3/config/sgml.conf.in 2004-06-17 11:51:11.000000000 +0200
25@@ -0,0 +1,2 @@
26+SGML_BASE_DIR=@datadir@/sgml
27+SGML_CATALOGS_DIR=@sysconfdir@/sgml
28--- sgml-common-0.6.3/configure.in~autohell.patch 2001-05-25 18:40:54.000000000 +0200
29+++ sgml-common-0.6.3/configure.in 2004-06-17 11:53:22.000000000 +0200
30@@ -3,11 +3,6 @@
31
32 AM_INIT_AUTOMAKE(sgml-common, 0.6.3)
33
34-docdir='$(prefix)/doc'
35-AC_SUBST(docdir)
36-
37-dnl Checks for programs.
38-
39 dnl Checks for libraries.
40
41 dnl Checks for header files.
42@@ -18,6 +13,5 @@
43
44 AC_OUTPUT(Makefile \
45 bin/Makefile bin/install-catalog \
46- config/Makefile \
47- doc/Makefile doc/HTML/Makefile doc/man/Makefile doc/refentry/Makefile \
48+ config/Makefile config/sgml.conf bin/sgmlwhich \
49 sgml-iso-entities/Makefile xml-iso-entities/Makefile)
50
51--- sgml-common-0.6.3/Makefile.am~no-docs 2001-05-25 18:22:01.000000000 +0200
52+++ sgml-common-0.6.3/Makefile.am 2004-06-17 11:49:09.000000000 +0200
53@@ -1,4 +1,4 @@
54-SUBDIRS = bin config doc sgml-iso-entities xml-iso-entities
55+SUBDIRS = bin config sgml-iso-entities xml-iso-entities
56
57 sgmlcodir = $(prefix)/share/sgml
58 sgmlco_DATA = xml.dcl
diff --git a/meta/recipes-devtools/sgml-common/sgml-common-0.6.3/license.patch b/meta/recipes-devtools/sgml-common/sgml-common-0.6.3/license.patch
new file mode 100644
index 0000000000..ec66aaefa2
--- /dev/null
+++ b/meta/recipes-devtools/sgml-common/sgml-common-0.6.3/license.patch
@@ -0,0 +1,26 @@
1The COPYING file sgml-common ships with is just a symlink to
2/usr/share/automake/COPYING, which means we can't verify it
3using our normal means. We workaround this by using this patch
4to create our own license file.
5
6Upstream was notified about this on 2011-01-24. When upgrading
7this recipe, this should be fixed and you should remove this
8patch.
9
10Signed-off-by: Scott Garman <scott.a.garman@intel.com>
11diff -urN sgml-common-0.6.3.orig/LICENSE-GPLv2 sgml-common-0.6.3/LICENSE-GPLv2
12--- sgml-common-0.6.3.orig/LICENSE-GPLv2 1969-12-31 16:00:00.000000000 -0800
13+++ sgml-common-0.6.3/LICENSE-GPLv2 2011-01-28 17:05:17.299528001 -0800
14@@ -0,0 +1,12 @@
15+Copyright (C) 1997 Christian Schwarz <schwarz@debian.org>.
16+Copyright (C) 2001-2004 Ardo van Rangelrooij <ardo@debian.org>
17+
18+This is free software; you may redistribute it and/or modify it under
19+the terms of the GNU General Public License as published by the Free
20+Software Foundation; either version 2, or (at your option) any later
21+version.
22+
23+This is distributed in the hope that it will be useful, but without
24+any warranty; without even the implied warranty of merchantability or
25+fitness for a particular purpose. See the GNU General Public License
26+for more details.
diff --git a/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb
new file mode 100644
index 0000000000..7e9b923622
--- /dev/null
+++ b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb
@@ -0,0 +1,50 @@
1SUMMARY = "Base utilities for working with SGML and XML"
2DESCRIPTION = "The sgml-common package gathers very basic \
3stuff necessary to work with SGML and XML, such as xml.dcl, \
4a SGML declaration of XML; iso-entities, a list of the basic \
5SGML ISO entities; and install-catalog, a script used to \
6add entries to (or remove entries from) centralized catalogs \
7whose entries are pointers to SGML open catalogs, \
8as defined by OASIS."
9HOMEPAGE = "http://sources.redhat.com/docbook-tools/"
10LICENSE = "GPLv2"
11# The COPYING file sgml-common ships with is just a symlink to
12# /usr/share/automake/COPYING, which means we can't verify it
13# using our normal means. :( Hash the README file instead as
14# LIC_FILES_CHKSUM is still required.
15LIC_FILES_CHKSUM = "file://README;md5=197bd940bf13548ac2198e4f77d3da92"
16SECTION = "base"
17
18PR = "r0"
19
20require sgml-common_${PV}.bb
21inherit native
22
23S = "${WORKDIR}/sgml-common-${PV}"
24
25SYSROOT_PREPROCESS_FUNCS += "sgml_common_native_mangle"
26
27do_install_append() {
28 # install-catalog script contains hard-coded references to
29 # {sysconfdir}. Change it to ${D}${sysconfdir}.
30 sed -i -e "s|${sysconfdir}/sgml|${D}${sysconfdir}/sgml|g" ${D}${bindir}/install-catalog
31
32 ${D}${bindir}/install-catalog \
33 --add ${D}${sysconfdir}/sgml/sgml-ent.cat \
34 ${D}${datadir}/sgml/sgml-iso-entities-8879.1986/catalog
35
36 ${D}${bindir}/install-catalog \
37 --add ${D}${sysconfdir}/sgml/sgml-docbook.cat \
38 ${D}${sysconfdir}/sgml/sgml-ent.cat
39}
40
41sgml_common_native_mangle () {
42 # Revert back to ${sysconfdir} path in install-catalog
43 sed -i -e "s|${D}${sysconfdir}/sgml|${sysconfdir}/sgml|g" ${SYSROOT_DESTDIR}${STAGING_BINDIR}/install-catalog
44 # Change path from ${D}${datadir}/sgml/sgml-iso-entities-8879.1986/catalog to ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog in sgml-ent.cat
45 sed -i -e "s|${D}${datadir}/sgml/sgml-iso-entities-8879.1986/catalog|${datadir}/sgml/sgml-iso-entities-8879.1986/catalog|g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/sgml-ent.cat
46 # Change path from ${D}${sysconfdir}/sgml/sgml-ent.cat|${sysconfdir}/sgml/sgml-ent.cat to ${sysconfdir}/sgml/sgml-ent.cat in sgml-ent.cat
47 sed -i -e "s|${D}${sysconfdir}/sgml/sgml-ent.cat|${sysconfdir}/sgml/sgml-ent.cat|g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/sgml-docbook.cat
48 # Remove ${D} path from catalog file created by install-catalog script
49 sed -i -e "s|${D}||g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/catalog
50}
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 @@
1SUMMARY = "Base utilities for working with SGML and XML"
2DESCRIPTION = "The sgml-common package gathers very basic \
3stuff necessary to work with SGML and XML, such as xml.dcl, \
4a SGML declaration of XML; iso-entities, a list of the basic \
5SGML ISO entities; and install-catalog, a script used to \
6add entries to (or remove entries from) centralized catalogs \
7whose entries are pointers to SGML open catalogs, \
8as defined by OASIS."
9HOMEPAGE = "http://sources.redhat.com/docbook-tools/"
10LICENSE = "GPLv2+"
11# See the comments in license.patch when upgrading this recipe.
12# This is inteded to be a temporary workaround.
13LIC_FILES_CHKSUM = "file://LICENSE-GPLv2;md5=ab8a50abe86dfc859e148baae043c89b"
14SECTION = "base"
15
16PR = "r0"
17
18SRC_URI = "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/sgml-common-${PV}.tgz \
19 file://autohell.patch \
20 file://license.patch"
21
22SRC_URI[md5sum] = "103c9828f24820df86e55e7862e28974"
23SRC_URI[sha256sum] = "7dc418c1d361123ffc5e45d61f1b97257940a8eb35d0bfbbc493381cc5b1f959"
24
25inherit autotools
26
27do_compile_append() {
28 # install-catalog script contains hardcoded references to /etc/sgml
29 sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" bin/install-catalog
30}
31
32FILES_sgml-common_append = " ${datadir}/sgml"
33
34pkg_postinst() {
35 install-catalog \
36 --add ${sysconfdir}/sgml/sgml-ent.cat \
37 ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog
38
39 install-catalog \
40 --add ${sysconfdir}/sgml/sgml-docbook.cat \
41 ${sysconfdir}/sgml/sgml-ent.cat
42}
43
44pkg_postrm() {
45 install-catalog \
46 --remove ${sysconfdir}/sgml/sgml-ent.cat \
47 ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog
48
49 install-catalog \
50 --remove ${sysconfdir}/sgml/sgml-docbook.cat \
51 ${sysconfdir}/sgml/sgml-ent.cat
52}