# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia-arts/kdemultimedia-arts-3.5.7.ebuild,v 1.8 2007/08/11 16:42:40 armin76 Exp $ ARTS_REQUIRED="yes" KMNAME=kdemultimedia KMMODULE=arts MAXKDEVER=$PV KM_DEPRANGE="$PV $MAXKDEVER" inherit kde-meta eutils DESCRIPTION="aRts pipeline builder and other tools" KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd" IUSE="alsa" KMEXTRACTONLY="mpeglib_artsplug/configure.in.in" # needed because the artsc-config call is here KMEXTRA="doc/artsbuilder" RDEPEND="alsa? ( media-libs/alsa-lib )" pkg_setup() { kde_pkg_setup if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then eerror "The alsa USE flag in this package enables ALSA support" eerror "for libkmid, KDE midi library." eerror "For this reason, you have to merge media-libs/alsa-lib" eerror "with the midi USE flag enabled, or disable alsa USE flag" eerror "for this package." die "Missing midi USE flag on media-libs/alsa-lib" fi } src_compile() { local myconf="$(use_with alsa)" kde-meta_src_compile }