[OE-core] [PATCH 01/23] manpages.bbclass: add a class

Alexander Kanavin alexander.kanavin at linux.intel.com
Mon Oct 17 15:12:41 UTC 2016


This class enables 'manpages' feature in packages if 'api-documentation'
is in distro features. This ensures that manpages are always built
and installed when API documentation feature is enabled.

Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
---
 meta/classes/manpages.bbclass | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 meta/classes/manpages.bbclass

diff --git a/meta/classes/manpages.bbclass b/meta/classes/manpages.bbclass
new file mode 100644
index 0000000..d16237b
--- /dev/null
+++ b/meta/classes/manpages.bbclass
@@ -0,0 +1,5 @@
+# Inherit this class to enable or disable building and installation of manpages
+# depending on whether 'api-documentation' is in DISTRO_FEATURES. Such building
+# tends to pull in the entire XML stack and other tools, so it's not enabled
+# by default.
+PACKAGECONFIG_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}"
-- 
2.9.3




More information about the Openembedded-core mailing list