summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/sgml-common
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-devtools/sgml-common
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/sgml-common')
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common-0.6.3/autohell.patch61
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common-0.6.3/license.patch29
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb71
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb68
4 files changed, 229 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..1f39b03300
--- /dev/null
+++ b/meta/recipes-devtools/sgml-common/sgml-common-0.6.3/autohell.patch
@@ -0,0 +1,61 @@
1Patch obtained from OpenEmbedded.
2
3Upstream-Status: Pending
4
5Signed-off-by: Scott Garman <scott.a.garman@intel.com>
6
7--- sgml-common-0.6.3/bin/Makefile.am~autohell.patch 2001-01-30 15:42:21.000000000 +0100
8+++ sgml-common-0.6.3/bin/Makefile.am 2004-06-17 11:51:11.000000000 +0200
9@@ -1,6 +1,5 @@
10 primitive_scripts = sgmlwhich
11
12-bindir = $(prefix)/bin
13 bin_SCRIPTS = install-catalog $(primitive_scripts)
14
15 EXTRA_DIST = install-catalog.in $(primitive_scripts)
16--- /dev/null 2003-09-23 19:59:22.000000000 +0200
17+++ sgml-common-0.6.3/bin/sgmlwhich.in 2004-06-17 11:51:11.000000000 +0200
18@@ -0,0 +1,7 @@
19+#!/bin/sh
20+# Location of the main configuration file for consistency with non-LSB platforms
21+# Send any comments to Eric Bischoff <eric@caldera.de>
22+# This program is under GPL license. See LICENSE file for details.
23+
24+echo "@sysconfdir@/sgml/sgml.conf"
25+# Simple, isn't it? ;-)
26--- /dev/null 2003-09-23 19:59:22.000000000 +0200
27+++ sgml-common-0.6.3/config/sgml.conf.in 2004-06-17 11:51:11.000000000 +0200
28@@ -0,0 +1,2 @@
29+SGML_BASE_DIR=@datadir@/sgml
30+SGML_CATALOGS_DIR=@sysconfdir@/sgml
31--- sgml-common-0.6.3/configure.in~autohell.patch 2001-05-25 18:40:54.000000000 +0200
32+++ sgml-common-0.6.3/configure.in 2004-06-17 11:53:22.000000000 +0200
33@@ -3,11 +3,6 @@
34
35 AM_INIT_AUTOMAKE(sgml-common, 0.6.3)
36
37-docdir='$(prefix)/doc'
38-AC_SUBST(docdir)
39-
40-dnl Checks for programs.
41-
42 dnl Checks for libraries.
43
44 dnl Checks for header files.
45@@ -18,6 +13,5 @@
46
47 AC_OUTPUT(Makefile \
48 bin/Makefile bin/install-catalog \
49- config/Makefile \
50- doc/Makefile doc/HTML/Makefile doc/man/Makefile doc/refentry/Makefile \
51+ config/Makefile config/sgml.conf bin/sgmlwhich \
52 sgml-iso-entities/Makefile xml-iso-entities/Makefile)
53
54--- sgml-common-0.6.3/Makefile.am~no-docs 2001-05-25 18:22:01.000000000 +0200
55+++ sgml-common-0.6.3/Makefile.am 2004-06-17 11:49:09.000000000 +0200
56@@ -1,4 +1,4 @@
57-SUBDIRS = bin config doc sgml-iso-entities xml-iso-entities
58+SUBDIRS = bin config sgml-iso-entities xml-iso-entities
59
60 sgmlcodir = $(prefix)/share/sgml
61 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..54b3f54494
--- /dev/null
+++ b/meta/recipes-devtools/sgml-common/sgml-common-0.6.3/license.patch
@@ -0,0 +1,29 @@
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
10Upstream-Status: Pending
11
12Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13
14diff -urN sgml-common-0.6.3.orig/LICENSE-GPLv2 sgml-common-0.6.3/LICENSE-GPLv2
15--- sgml-common-0.6.3.orig/LICENSE-GPLv2 1969-12-31 16:00:00.000000000 -0800
16+++ sgml-common-0.6.3/LICENSE-GPLv2 2011-01-28 17:05:17.299528001 -0800
17@@ -0,0 +1,12 @@
18+Copyright (C) 1997 Christian Schwarz <schwarz@debian.org>.
19+Copyright (C) 2001-2004 Ardo van Rangelrooij <ardo@debian.org>
20+
21+This is free software; you may redistribute it and/or modify it under
22+the terms of the GNU General Public License as published by the Free
23+Software Foundation; either version 2, or (at your option) any later
24+version.
25+
26+This is distributed in the hope that it will be useful, but without
27+any warranty; without even the implied warranty of merchantability or
28+fitness for a particular purpose. See the GNU General Public License
29+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..597536570d
--- /dev/null
+++ b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb
@@ -0,0 +1,71 @@
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 = "r1"
17
18require sgml-common_${PV}.bb
19inherit native
20
21S = "${WORKDIR}/sgml-common-${PV}"
22
23SYSROOT_PREPROCESS_FUNCS += "sgml_common_native_mangle"
24SSTATEPOSTINSTFUNCS += "sgml_common_sstate_postinst"
25CLEANFUNCS += "sgml_common_sstate_clean"
26
27
28do_install_append() {
29 # install-catalog script contains hard-coded references to
30 # {sysconfdir}. Change it to ${D}${sysconfdir}.
31 sed -i -e "s|${sysconfdir}/sgml|${D}${sysconfdir}/sgml|g" ${D}${bindir}/install-catalog
32
33 ${D}${bindir}/install-catalog \
34 --add ${D}${sysconfdir}/sgml/sgml-ent.cat \
35 ${D}${datadir}/sgml/sgml-iso-entities-8879.1986/catalog
36
37 # The sgml-docbook.cat will be regenerated by sstate_postinst
38 rm -f ${D}${sysconfdir}/sgml/sgml-docbook.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 # Remove ${D} path from catalog file created by install-catalog script
47 sed -i -e "s|${D}||g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/catalog
48}
49
50sgml_common_sstate_postinst() {
51 if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
52 then
53 ${bindir}/install-catalog --add ${sysconfdir}/sgml/sgml-docbook.cat ${sysconfdir}/sgml/sgml-ent.cat
54 if [ -e ${sysconfdir}/sgml/sgml-docbook.bak ]; then
55 for catalog in `awk '{print $2}' ${sysconfdir}/sgml/sgml-docbook.bak`; do
56 if [ ! `grep $catalog ${sysconfdir}/sgml/sgml-docbook.cat 1> /dev/null 2>&1` ]; then
57 ${bindir}/install-catalog \
58 --add ${sysconfdir}/sgml/sgml-docbook.cat $catalog
59 fi
60 done
61 fi
62 fi
63}
64
65sgml_common_sstate_clean () {
66 # Ensure that the catalog file sgml-docbook.cat is properly
67 # updated when the package is removed from sstate cache.
68 if [ -f ${sysconfdir}/sgml/sgml-docbook.cat ]; then
69 sed -i '/\/sgml\/sgml-ent.cat/d' ${sysconfdir}/sgml/sgml-docbook.cat
70 fi
71}
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..6098673a35
--- /dev/null
+++ b/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb
@@ -0,0 +1,68 @@
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 = "r1"
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|\1${sysconfdir}/sgml|g' bin/install-catalog
30}
31
32FILES_${PN} += "${datadir}/sgml"
33
34pkg_postinst_${PN}() {
35 if [ "x$D" = "x" ]; then
36 install-catalog \
37 --add ${sysconfdir}/sgml/sgml-ent.cat \
38 ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog
39
40 install-catalog \
41 --add ${sysconfdir}/sgml/sgml-docbook.cat \
42 ${sysconfdir}/sgml/sgml-ent.cat
43 else
44 if ! grep -q ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog $D${sysconfdir}/sgml/sgml-ent.cat; then
45 echo "CATALOG ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog" >> $D${sysconfdir}/sgml/sgml-ent.cat
46 fi
47 if ! grep -q ${sysconfdir}/sgml/sgml-ent.cat $D${sysconfdir}/sgml/catalog; then
48 echo "CATALOG ${sysconfdir}/sgml/sgml-ent.cat" >> $D${sysconfdir}/sgml/catalog
49 fi
50
51 if ! grep -q ${sysconfdir}/sgml/sgml-ent.cat $D${sysconfdir}/sgml/sgml-docbook.cat; then
52 echo "CATALOG ${sysconfdir}/sgml/sgml-ent.cat" >> $D${sysconfdir}/sgml/sgml-docbook.cat
53 fi
54 if ! grep -q ${sysconfdir}/sgml/sgml-docbook.cat $D${sysconfdir}/sgml/catalog; then
55 echo "CATALOG ${sysconfdir}/sgml/sgml-docbook.cat" >> $D${sysconfdir}/sgml/catalog
56 fi
57 fi
58}
59
60pkg_postrm_${PN}() {
61 install-catalog \
62 --remove ${sysconfdir}/sgml/sgml-ent.cat \
63 ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog
64
65 install-catalog \
66 --remove ${sysconfdir}/sgml/sgml-docbook.cat \
67 ${sysconfdir}/sgml/sgml-ent.cat
68}