summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-11-25 04:44:48 +1100
committerMichael Palimaka <kensington@gentoo.org>2014-11-25 04:44:48 +1100
commitbabd414bce884006cf9cae917085ca2328979a11 (patch)
treeb40023f4117d887c3d493c1f8a649973c87b8d16
parente520cd37107e92f6ca3bb3d072d97998041aa857 (diff)
downloadkde-babd414bce884006cf9cae917085ca2328979a11.tar.gz
kde-babd414bce884006cf9cae917085ca2328979a11.tar.bz2
kde-babd414bce884006cf9cae917085ca2328979a11.zip
[kde-apps/libkcddb] Introduce handbook USE flag wrt bug #486670.
Package-Manager: portage-2.2.14
-rw-r--r--kde-apps/libkcddb/libkcddb-14.11.95.ebuild11
-rw-r--r--kde-apps/libkcddb/libkcddb-9999.ebuild11
2 files changed, 22 insertions, 0 deletions
diff --git a/kde-apps/libkcddb/libkcddb-14.11.95.ebuild b/kde-apps/libkcddb/libkcddb-14.11.95.ebuild
index 5a81777e28a..1f1ee6e5429 100644
--- a/kde-apps/libkcddb/libkcddb-14.11.95.ebuild
+++ b/kde-apps/libkcddb/libkcddb-14.11.95.ebuild
@@ -4,6 +4,7 @@
EAPI=5
+KDE_HANDBOOK="optional"
inherit kde4-base
DESCRIPTION="KDE library for CDDB"
@@ -21,6 +22,16 @@ RDEPEND="${DEPEND}"
KMSAVELIBS="true"
+src_prepare() {
+ kde4-base_src_prepare
+
+ if ! use handbook ; then
+ pushd kcmcddb > /dev/null
+ comment_add_subdirectory doc
+ popd > /dev/null
+ fi
+}
+
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_with musicbrainz MusicBrainz5)
diff --git a/kde-apps/libkcddb/libkcddb-9999.ebuild b/kde-apps/libkcddb/libkcddb-9999.ebuild
index 5a81777e28a..1f1ee6e5429 100644
--- a/kde-apps/libkcddb/libkcddb-9999.ebuild
+++ b/kde-apps/libkcddb/libkcddb-9999.ebuild
@@ -4,6 +4,7 @@
EAPI=5
+KDE_HANDBOOK="optional"
inherit kde4-base
DESCRIPTION="KDE library for CDDB"
@@ -21,6 +22,16 @@ RDEPEND="${DEPEND}"
KMSAVELIBS="true"
+src_prepare() {
+ kde4-base_src_prepare
+
+ if ! use handbook ; then
+ pushd kcmcddb > /dev/null
+ comment_add_subdirectory doc
+ popd > /dev/null
+ fi
+}
+
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_with musicbrainz MusicBrainz5)