blob: 0cc24d5f4b5d31ed109be1f18d7d49b125990754 (
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
|
# 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
}
|