# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/kwave/kwave-0.8.4.ebuild,v 1.3 2009/10/13 17:29:03 ssuominen Exp $ EAPI=2 # Note that kwave use really bad linguas code so we have to install them all. #KDE_LINGUAS="cs de en fr" inherit gnome2-utils kde4-base DESCRIPTION="Kwave is a sound editor for KDE." HOMEPAGE="http://kwave.sourceforge.net/" SRC_URI="mirror://sourceforge/kwave/${P}-1.tar.bz2" LICENSE="GPL-2" SLOT="4" KEYWORDS="~amd64 ~x86" IUSE="alsa debug doc flac mp3 ogg oss mmx" RDEPEND=" !media-sound/kwave:0 media-libs/audiofile sci-libs/fftw alsa? ( media-libs/alsa-lib ) flac? ( media-libs/flac ) media-libs/libsamplerate mp3? ( media-libs/id3lib media-libs/libmad ) ogg? ( media-libs/libogg media-libs/libvorbis )" DEPEND="${RDEPEND} >=kde-base/kdesdk-misc-${KDE_MINIMAL} media-gfx/imagemagick" src_configure() { use mmx && append-flags -mmmx # This option is available, but the build dies at compile phase. # $(cmake-utils_use_with libsamplerate SAMPLERATE) mycmakeargs="${mycmakeargs} $(cmake-utils_use_with alsa) $(cmake-utils_use_with doc) $(cmake-utils_use_with flac) $(cmake-utils_use_with mp3) $(cmake-utils_use_with ogg) $(cmake-utils_use_with oss) $(cmake-utils_use debug)" kde4-base_src_configure } src_install() { kde4-base_src_install cat "${D}"/usr/share/icons/hicolor/scalable/apps/kwave.svgz | gunzip -d > "${D}"/usr/share/icons/hicolor/scalable/apps/kwave.svg } pkg_preinst() { gnome2_icon_savelist } pkg_postinst() { kde4-base_pkg_postinst gnome2_icon_cache_update } pkg_postrm() { kde4-base_pkg_postrm gnome2_icon_cache_update }