blob: 958750690a46c97df65bf2a0b1d2a2defd7691d6 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "A collection of documentation utilities for the Gnome project"
2DESCRIPTION = "The GNOME Documentation Build Utilities (gnome-doc- \
3utils) were created to make it easier for application developers to \
4include and create documentation in their releases. They include the \
5xml2po tool which makes it easier to translate and keep up to date \
6translations of documentation."
7LICENSE = "GPLv2 & LGPLv2.1"
8DEPENDS = "libxml2 libxslt libxslt-native gnome-doc-utils-native glib-2.0"
9DEPENDS_class-native = "libxml2-native libxslt-native intltool-native glib-2.0-native"
10
11inherit gnomebase gettext python-dir pythonnative autotools-brokensep
12
13CLEANBROKEN = "1"
14
15EXTRA_OECONF += "--disable-scrollkeeper"
16
17do_install_append() {
18 mkdir -p ${D}${datadir}/xml/gnome/xslt/
19 cp -pPr ${S}/xslt/* ${D}${datadir}/xml/gnome/xslt/
20
21 chown -R root:root ${D}
22}
23
24do_install_append_class-native () {
25 sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' ${D}${bindir}/xml2po
26}
27
28FILES_${PN} += "${datadir}/xml* ${PYTHON_SITEPACKAGES_DIR}/*"
29
30RDEPENDS_${PN} = "bash"
31RDEPENDS_${PN}_class-native = ""
32
33BBCLASSEXTEND = "native"