diff options
author | Gregorio Guidi <greg_g@gentoo.org> | 2005-06-12 15:51:24 +0000 |
---|---|---|
committer | Gregorio Guidi <greg_g@gentoo.org> | 2005-06-12 15:51:24 +0000 |
commit | 8ffdb417ad8da5513b556a3525dfea5cfe62ca48 (patch) | |
tree | 7f33295eea2a0911e18b3029a5b55f2ce545239b /app-doc/kchmviewer | |
parent | Stable on alpha. (diff) | |
download | gentoo-2-8ffdb417ad8da5513b556a3525dfea5cfe62ca48.tar.gz gentoo-2-8ffdb417ad8da5513b556a3525dfea5cfe62ca48.tar.bz2 gentoo-2-8ffdb417ad8da5513b556a3525dfea5cfe62ca48.zip |
Fix bug #95728 keeping the dependency on kdelibs optional.
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-doc/kchmviewer')
-rw-r--r-- | app-doc/kchmviewer/kchmviewer-0.9.ebuild | 39 |
1 files changed, 25 insertions, 14 deletions
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 +} |