blob: a10c94f41475d01ecef27ba942aea38d826e7432 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# 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.2.ebuild,v 1.6 2009/05/21 17:10:26 ssuominen Exp $
EAPI=2
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="1"
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 )
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"
PATCHES=("${FILESDIR}/${PV}-fix_gettext.patch")
if [ -z "$LINGUAS" ]; then
LINGUAS="${KDE_LINGUAS}"
fi
src_configure() {
use mmx && append-flags "-mmmx"
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
}
|