From: Diego Elio Pettenò Date: Thu, 8 Jun 2006 10:39:53 +0000 (+0000) Subject: Don't add arts dependency for arts itself. Thanks to Ciaran McCreesh in bug #136022... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f40b42ac16da1a6587f33872fb4f3372e165f182;p=gentoo.git Don't add arts dependency for arts itself. Thanks to Ciaran McCreesh in bug #136022 for reporting. --- diff --git a/eclass/kde.eclass b/eclass/kde.eclass index 1a13e1a8c43d..ed66b5b9fc86 100644 --- a/eclass/kde.eclass +++ b/eclass/kde.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.162 2006/05/31 15:58:29 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.163 2006/06/08 10:39:53 flameeyes Exp $ # # Author Dan Armak # @@ -12,7 +12,7 @@ DESCRIPTION="Based on the $ECLASS eclass" HOMEPAGE="http://www.kde.org/" IUSE="debug xinerama" -if [[ ${ARTS_REQUIRED} != "yes" && ${ARTS_REQUIRED} != "never" ]]; then +if [[ ${ARTS_REQUIRED} != "yes" && ${ARTS_REQUIRED} != "never" && ${PN} != "arts" ]]; then IUSE="${IUSE} arts" fi @@ -45,7 +45,7 @@ RDEPEND="~kde-base/kde-env-3 if [[ ${ARTS_REQUIRED} == "yes" ]]; then DEPEND="${DEPEND} kde-base/arts" RDEPEND="${RDEPEND} kde-base/arts" -elif [[ ${ARTS_REQUIRED} != "never" ]]; then +elif [[ ${ARTS_REQUIRED} != "never" && ${PN} != "arts" ]]; then DEPEND="${DEPEND} arts? ( kde-base/arts )" RDEPEND="${RDEPEND} arts? ( kde-base/arts )" fi @@ -183,7 +183,7 @@ kde_src_compile() { fi if [[ ${ARTS_REQUIRED} == "never" ]]; then myconf="$myconf --without-arts" - elif [[ ${ARTS_REQUIRED} != 'yes' ]]; then + elif [[ ${ARTS_REQUIRED} != 'yes' && ${PN} != "arts" ]]; then # This might break some external package until # ARTS_REQUIRED="yes" is set on them, KDE 3.2 is no more # supported anyway.