summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregorio Guidi <greg_g@gentoo.org>2005-06-12 15:51:24 +0000
committerGregorio Guidi <greg_g@gentoo.org>2005-06-12 15:51:24 +0000
commit5415b309286356c67fae1e18c85af1c9545e992b (patch)
tree9d8f5ae9518de4685ee2621a5040641736087879 /app-doc
parentStable on alpha. (diff)
downloadhistorical-5415b309286356c67fae1e18c85af1c9545e992b.tar.gz
historical-5415b309286356c67fae1e18c85af1c9545e992b.tar.bz2
historical-5415b309286356c67fae1e18c85af1c9545e992b.zip
Fix bug #95728 keeping the dependency on kdelibs optional.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/kchmviewer/Manifest16
-rw-r--r--app-doc/kchmviewer/kchmviewer-0.9.ebuild39
2 files changed, 28 insertions, 27 deletions
diff --git a/app-doc/kchmviewer/Manifest b/app-doc/kchmviewer/Manifest
index 157fb3262385..29fcc6e223e7 100644
--- a/app-doc/kchmviewer/Manifest
+++ b/app-doc/kchmviewer/Manifest
@@ -1,17 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 bc5757868e9f06d6048259da3a5918aa metadata.xml 157
-MD5 9ceb5dfc5ca9ef57f93b890473a2c44a kchmviewer-0.3.ebuild 838
MD5 78c1db7b80656ef168b6d4daf148494b ChangeLog 651
-MD5 0cd536d3084ae04a626035196f555a74 kchmviewer-0.9.ebuild 952
+MD5 9ceb5dfc5ca9ef57f93b890473a2c44a kchmviewer-0.3.ebuild 838
+MD5 e31759b492e186004c6078a60ee8d88a kchmviewer-0.9.ebuild 1372
+MD5 5f6b3a72c66b4a0a4be5b051c914c60f files/kchmviewer-0.9-pic.patch 2456
MD5 0f0684bc9db01b960a34231eeca812d0 files/digest-kchmviewer-0.3 66
MD5 c6c46ad868e18a50c2388d0085e9ec04 files/digest-kchmviewer-0.9 66
-MD5 5f6b3a72c66b4a0a4be5b051c914c60f files/kchmviewer-0.9-pic.patch 2456
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFCqugj7IRIh26aCTkRAiSCAKCC1QkTwhNyWW9rz1DMKKEXzOeEfQCbBKPI
-hA1DLN1IwFoZa7MBxaTd2Uo=
-=Zhc/
------END PGP SIGNATURE-----
diff --git a/app-doc/kchmviewer/kchmviewer-0.9.ebuild b/app-doc/kchmviewer/kchmviewer-0.9.ebuild
index 39f7378a4afc..36fc43777586 100644
--- a/app-doc/kchmviewer/kchmviewer-0.9.ebuild
+++ b/app-doc/kchmviewer/kchmviewer-0.9.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-doc/kchmviewer/kchmviewer-0.9.ebuild,v 1.2 2005/06/11 13:32:45 centic Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-doc/kchmviewer/kchmviewer-0.9.ebuild,v 1.3 2005/06/12 15:51:24 greg_g Exp $
-inherit kde eutils
+inherit kde-functions eutils
DESCRIPTION="Qt-based feature rich CHM file viewer."
HOMEPAGE="http://kchmviewer.sourceforge.net/"
@@ -11,7 +11,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
-IUSE="kde"
+IUSE="arts kde"
RDEPEND="kde? ( kde-base/kdelibs )"
@@ -21,6 +21,17 @@ DEPEND="${RDEPEND}
need-kde 3.3
+pkg_setup() {
+ if use kde && use arts && ! built_with_use kdelibs arts ; then
+ eerror "You are trying to compile ${CATEGORY}/${P} with the \"arts\" USE flag enabled."
+ eerror "However, $(best_version kdelibs) was compiled with this flag disabled."
+ eerror
+ eerror "You must either disable this use flag, or recompile"
+ eerror "$(best_version kdelibs) with this use flag enabled."
+ die
+ fi
+}
+
src_unpack() {
unpack ${A}
cd ${S}
@@ -34,14 +45,14 @@ src_unpack() {
perl am_edit || die
}
-#src_compile() {
-# set-kdedir 3
-#
-# econf $(use_with kde) || die
-# emake || die
-#}
-
-#src_install() {
-# make DESTDIR="${D}" install || die
-# dodoc ChangeLog
-#}
+src_compile() {
+ set-kdedir 3
+
+ econf $(use_with kde) $(use_with arts) || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc ChangeLog
+}