Patchwork [1/2] python-dbus: use PACKAGECONFIG for doc generation

login
register
mail settings
Submitter Christopher Larson
Date Aug. 11, 2014, 4:15 p.m.
Message ID <1407773737-16725-1-git-send-email-kergoth@gmail.com>
Download mbox | patch
Permalink /patch/77899/
State Accepted
Commit 4e3e0df0eb62f73859a7edfbc18e641cbbec036b
Headers show

Comments

Christopher Larson - Aug. 11, 2014, 4:15 p.m.
From: Christopher Larson <chris_larson@mentor.com>

Adds 'docs' (for html doc generation) and 'api-docs' (for API doc generation)
configurations and leaves them both disabled by default. This avoids
autodetected dependency upon docutils.

Fixes [YOCTO #6530]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/recipes-devtools/python/python-dbus_1.2.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/recipes-devtools/python/python-dbus_1.2.0.bb b/meta/recipes-devtools/python/python-dbus_1.2.0.bb
index e64f99f..b314dce 100644
--- a/meta/recipes-devtools/python/python-dbus_1.2.0.bb
+++ b/meta/recipes-devtools/python/python-dbus_1.2.0.bb
@@ -14,6 +14,10 @@  S = "${WORKDIR}/dbus-python-${PV}"
 
 inherit distutils-base autotools pkgconfig
 
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[docs] = "--enable-html-docs,--disable-html-docs,python-docutils-native"
+PACKAGECONFIG[api-docs] = "--enable-api-docs,--disable-api-docs,python-docutils-native python-epydoc-native"
+
 export BUILD_SYS
 export HOST_SYS