]> code.ossystems Code Review - openembedded-core.git/commitdiff
manpages.bbclass: add a class
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Thu, 29 Sep 2016 13:20:33 +0000 (16:20 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Oct 2016 10:27:33 +0000 (11:27 +0100)
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@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/manpages.bbclass [new file with mode: 0644]

diff --git a/meta/classes/manpages.bbclass b/meta/classes/manpages.bbclass
new file mode 100644 (file)
index 0000000..d16237b
--- /dev/null
@@ -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)}"