commit: 7ef044d60423e71ab2954b7adfc56758cf705e65
Author: Uwe L. Korn <uwelk <AT> xhochy <DOT> com>
AuthorDate: Fri Apr 18 09:14:39 2014 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Apr 18 12:48:16 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=7ef044d6
[dev-libs/extra-cmake-modules] Add doc USE
Package-Manager: portage-2.2.10
---
.../extra-cmake-modules-9999.ebuild | 27 +++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/dev-libs/extra-cmake-modules/extra-cmake-modules-9999.ebuild
b/dev-libs/extra-cmake-modules/extra-cmake-modules-9999.ebuild
index 4bae641..e226980 100644
--- a/dev-libs/extra-cmake-modules/extra-cmake-modules-9999.ebuild
+++ b/dev-libs/extra-cmake-modules/extra-cmake-modules-9999.ebuild
@@ -4,7 +4,9 @@
EAPI=5
-inherit cmake-utils git-r3
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
+
+inherit cmake-utils git-r3 python-any-r1
DESCRIPTION="Extra modules and scripts for CMake"
HOMEPAGE="https://projects.kde.org/projects/kdesupport/extra-cmake-modules"
@@ -13,7 +15,30 @@ EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
LICENSE="BSD"
SLOT=0
KEYWORDS=""
+IUSE="doc"
DEPEND="
>=dev-util/cmake-2.8.12
+ doc? (
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')
+ )
"
+
+python_check_deps() {
+ has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use doc && python-any-r1_pkg_setup
+}
+
+src_configure() {
+ # demos not working
+ local mycmakeargs=(
+ $(cmake-utils_use_build doc HTML_DOCS)
+ $(cmake-utils_use_build doc MAN_DOCS)
+ )
+
+ cmake-utils_src_configure
+}