summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/man
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2014-09-25 14:31:59 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-29 12:12:34 +0100
commit610220a95f9ef78590acb1b8f18abc984464da96 (patch)
treea8a21341bdb6739dffc23f59ca7db16528808401 /meta/recipes-extended/man
parentc550cafa29b8621ef20481c873c5658f9ff6a602 (diff)
downloadopenembedded-core-610220a95f9ef78590acb1b8f18abc984464da96.tar.gz
openembedded-core-610220a95f9ef78590acb1b8f18abc984464da96.tar.bz2
openembedded-core-610220a95f9ef78590acb1b8f18abc984464da96.zip
man/texinfo: conditionally add gzip/bzip2/xz to RDEPENDS
Conditionally add 'xz/bz2/gzip' to info/man's RDEPENDS according to DOC_COMPRESS. [YOCTO #6750] [YOCTO #6751] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-extended/man')
-rw-r--r--meta/recipes-extended/man/man_1.6g.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-extended/man/man_1.6g.bb b/meta/recipes-extended/man/man_1.6g.bb
index a66e01cb9a..03fffd6015 100644
--- a/meta/recipes-extended/man/man_1.6g.bb
+++ b/meta/recipes-extended/man/man_1.6g.bb
@@ -9,6 +9,19 @@ PR = "r1"
DEPENDS = "groff less"
+def compress_pkg(d):
+ if "compress_doc" in (d.getVar("INHERIT", True) or "").split():
+ compress = d.getVar("DOC_COMPRESS", True)
+ if compress == "gz":
+ return "gzip"
+ elif compress == "bz2":
+ return "bzip2"
+ elif compress == "xz":
+ return "xz"
+ return ""
+
+RDEPENDS_${PN} += "${@compress_pkg(d)}"
+
SRC_URI = "http://primates.ximian.com/~flucifredi/${BPN}/${BPN}-${PV}.tar.gz \
file://man-1.5k-confpath.patch;striplevel=0 \
file://man-1.5h1-make.patch \