summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <zlin@gentoo.org>2008-02-20 00:35:11 +0000
committerBo Ørsted Andresen <zlin@gentoo.org>2008-02-20 00:35:11 +0000
commit9ecc84a7aa332261d8b897283de16f913d4295d7 (patch)
treed38cefa2c8966d91b669cd6c2ecd10d232b9b15c /eclass/cmake-utils.eclass
parentAdd new revision that uses pambase framework. (diff)
downloadgentoo-2-9ecc84a7aa332261d8b897283de16f913d4295d7.tar.gz
gentoo-2-9ecc84a7aa332261d8b897283de16f913d4295d7.tar.bz2
gentoo-2-9ecc84a7aa332261d8b897283de16f913d4295d7.zip
Apply DOCS support to cmake-utils.eclass. Patch from Peter Volkov.
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 8031f217bd3f..d424554e4f08 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.4 2007/12/13 16:23:59 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.5 2008/02/20 00:35:11 zlin Exp $
# @ECLASS: cmake-utils.eclass
# @MAINTAINER:
@@ -30,6 +30,11 @@ _use_me_now() {
echo "-D$1_${3:-$2}=$(use $2 && echo ON || echo OFF)"
}
+# @VARIABLE: DOCS
+# @USAGE: DOCS="README ChangeLog"
+# @DESCRIPTION:
+# Documents to dodoc
+
# @FUNCTION: cmake-utils_use_with
# @USAGE: <USE flag> [flag name]
# @DESCRIPTION:
@@ -165,6 +170,9 @@ cmake-utils_src_install() {
if [[ -d ${WORKDIR}/${PN}_build ]]; then
popd > /dev/null
fi
+
+ # Manual document installation
+ [[ -n "${DOCS}" ]] && dodoc ${DOCS}
}
# @FUNCTION: cmake-utils_src_test