summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2014-07-09 18:16:55 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-16 10:20:50 +0100
commit38d438c4af91f67886e711a290e8adba822692c3 (patch)
tree094ff21965896674a393f8e7bd9b8b01a7e0953d /meta
parentd2c59d31d78c94d432d65d6deca028093c5fa369 (diff)
downloadpoky-38d438c4af91f67886e711a290e8adba822692c3.tar.gz
docbook-xml: add docbook-xsl-stylesheets 1.78.1
About the config files (docbook-xsl.xml), we refered what Ubuntu 13.04 did, so the xmlto could correctly search the xsl stylesheets. [YOCTO #2416] (From OE-Core rev: f5554492c80c69ba9b34dbf206a7c748ab8f1fb6) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/conf/licenses.conf2
-rw-r--r--meta/files/common-licenses/XSL48
-rw-r--r--meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml6
-rw-r--r--meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb67
4 files changed, 122 insertions, 1 deletions
diff --git a/meta/conf/licenses.conf b/meta/conf/licenses.conf
index c378a415d3..b1d5480b58 100644
--- a/meta/conf/licenses.conf
+++ b/meta/conf/licenses.conf
@@ -36,7 +36,7 @@ SRC_DISTRIBUTE_LICENSES += "OSL-3.0 PD PHP-3.0 PostgreSQL Proprietary"
36SRC_DISTRIBUTE_LICENSES += "Python-2.0 QPL-1.0 RHeCos-1 RHeCos-1.1 RPL-1.5" 36SRC_DISTRIBUTE_LICENSES += "Python-2.0 QPL-1.0 RHeCos-1 RHeCos-1.1 RPL-1.5"
37SRC_DISTRIBUTE_LICENSES += "RPSL-1.0 RSCPL Ruby SAX-PD SGI-1 Simple-2.0 Sleepycat" 37SRC_DISTRIBUTE_LICENSES += "RPSL-1.0 RSCPL Ruby SAX-PD SGI-1 Simple-2.0 Sleepycat"
38SRC_DISTRIBUTE_LICENSES += "SPL-1.0 SugarCRM-1 SugarCRM-1.1.3 UCB VSL-1.0 W3C" 38SRC_DISTRIBUTE_LICENSES += "SPL-1.0 SugarCRM-1 SugarCRM-1.1.3 UCB VSL-1.0 W3C"
39SRC_DISTRIBUTE_LICENSES += "Watcom-1.0 WXwindows XFree86-1.1 Xnet YPL-1.1" 39SRC_DISTRIBUTE_LICENSES += "Watcom-1.0 WXwindows XFree86-1.1 Xnet XSL YPL-1.1"
40SRC_DISTRIBUTE_LICENSES += "Zimbra-1.3 Zlib ZPL-1.1 ZPL-2.0 ZPL-2.1" 40SRC_DISTRIBUTE_LICENSES += "Zimbra-1.3 Zlib ZPL-1.1 ZPL-2.0 ZPL-2.1"
41 41
42# Standards are great! Everyone has their own. In an effort to standardize licensing 42# Standards are great! Everyone has their own. In an effort to standardize licensing
diff --git a/meta/files/common-licenses/XSL b/meta/files/common-licenses/XSL
new file mode 100644
index 0000000000..0a82d60c1c
--- /dev/null
+++ b/meta/files/common-licenses/XSL
@@ -0,0 +1,48 @@
1Copyright
2---------
3Copyright (C) 1999-2007 Norman Walsh
4Copyright (C) 2003 Jiří Kosek
5Copyright (C) 2004-2007 Steve Ball
6Copyright (C) 2005-2008 The DocBook Project
7Copyright (C) 2011-2012 O'Reilly Media
8
9Permission is hereby granted, free of charge, to any person
10obtaining a copy of this software and associated documentation
11files (the ``Software''), to deal in the Software without
12restriction, including without limitation the rights to use,
13copy, modify, merge, publish, distribute, sublicense, and/or
14sell copies of the Software, and to permit persons to whom the
15Software is furnished to do so, subject to the following
16conditions:
17
18The above copyright notice and this permission notice shall be
19included in all copies or substantial portions of the Software.
20
21Except as contained in this notice, the names of individuals
22credited with contribution to this software shall not be used in
23advertising or otherwise to promote the sale, use or other
24dealings in this Software without prior written authorization
25from the individuals in question.
26
27Any stylesheet derived from this Software that is publically
28distributed will be identified with a different name and the
29version strings in any derived Software will be changed so that
30no possibility of confusion between the derived package and this
31Software will exist.
32
33Warranty
34--------
35THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER
39CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42OTHER DEALINGS IN THE SOFTWARE.
43
44Contacting the Author
45---------------------
46The DocBook XSL stylesheets are maintained by Norman Walsh,
47<ndw@nwalsh.com>, and members of the DocBook Project,
48<docbook-developers@sf.net>
diff --git a/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml b/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml
new file mode 100644
index 0000000000..a1a576a2ec
--- /dev/null
+++ b/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml
@@ -0,0 +1,6 @@
1<?xml version="1.0"?>
2<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
3<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
4<delegateURI uriStartString="http://docbook.sourceforge.net/release/xsl/" catalog="file:///usr/share/xml/docbook/xsl-stylesheets-1.78.1/catalog.xml"/>
5<delegateSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/" catalog="file:///usr/share/xml/docbook/xsl-stylesheets-1.78.1/catalog.xml"/>
6</catalog>
diff --git a/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb b/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb
new file mode 100644
index 0000000000..39528c89c4
--- /dev/null
+++ b/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb
@@ -0,0 +1,67 @@
1SUMMARY = "XSL stylesheets for processing DocBook XML to various output formats"
2HOMEPAGE = "http://docbook.sourceforge.net"
3LICENSE = "XSL"
4LIC_FILES_CHKSUM = "file://COPYING;md5=a6eeeed43d498c22a835382533356462"
5
6SRC_URI = "${SOURCEFORGE_MIRROR}/docbook/docbook-xsl-${PV}.tar.bz2 \
7 file://docbook-xsl.xml \
8"
9
10SRC_URI[md5sum] = "6dd0f89131cc35bf4f2ed105a1c17771"
11SRC_URI[sha256sum] = "c98f7296ab5c8ccd2e0bc07634976a37f50847df2d8a59bdb1e157664700b467"
12
13S = "${WORKDIR}/docbook-xsl-${PV}"
14
15inherit allarch
16BBCLASSEXTEND = "native"
17
18SSTATEPOSTINSTFUNCS_append_class-native = " docbook_xsl_stylesheets_sstate_postinst"
19SYSROOT_PREPROCESS_FUNCS_append_class-native = " docbook_xsl_stylesheets_sysroot_preprocess"
20
21do_configre (){
22 :
23}
24
25do_compile (){
26 :
27}
28
29do_install () {
30 # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-xsl.html
31 # for details.
32 install -v -m755 -d ${D}${datadir}/xml/docbook/xsl-stylesheets-1.78.1
33
34 cp -v -R VERSION common eclipse epub extensions fo highlighting html \
35 htmlhelp images javahelp lib manpages params profiling \
36 roundtrip slides template tests tools webhelp website \
37 xhtml xhtml-1_1 catalog.xml \
38 ${D}${datadir}/xml/docbook/xsl-stylesheets-1.78.1
39
40 ln -s VERSION ${D}/${datadir}/xml/docbook/xsl-stylesheets-1.78.1/VERSION.xsl
41
42 install -v -m644 -D README \
43 ${D}${datadir}/doc/docbook-xsl-1.78.1/README.txt
44 install -v -m644 RELEASE-NOTES* NEWS* \
45 ${D}${datadir}/doc/docbook-xsl-1.78.1
46
47 install -d ${D}${sysconfdir}/xml/
48 install -m 755 ${WORKDIR}/docbook-xsl.xml ${D}${sysconfdir}/xml/docbook-xsl.xml
49
50}
51
52docbook_xsl_stylesheets_sstate_postinst () {
53 if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
54 then
55 # Ensure that the catalog file sgml-docbook.cat is properly
56 # updated when the package is installed from sstate cache.
57 sed -i -e "s|file://.*/usr/share/xml|file://${datadir}/xml|g" ${SYSROOT_DESTDIR}${sysconfdir}/xml/docbook-xsl.xml
58 fi
59}
60
61docbook_xsl_stylesheets_sysroot_preprocess () {
62 # Update the hardcode dir in docbook-xml.xml
63 sed -i -e "s|file:///usr/share/xml|file://${datadir}/xml|g" ${SYSROOT_DESTDIR}${sysconfdir}/xml/docbook-xsl.xml
64}
65
66FILES_${PN} = "${datadir}/xml/* ${sysconfdir}/xml/docbook-xsl.xml"
67FILES_${PN}-doc = "${datadir}/doc/*"