summaryrefslogtreecommitdiff
blob: 9dd85c8e514319d7c0a330a4f892598de1385ecf (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="K3b Monkey's Audio Encoder and Decoder plugin"
HOMEPAGE="http://www.k3b.org"
SRC_URI="mirror://sourceforge/k3b/${P}.tar.bz2"

LICENSE="GPL-2 MonkeyAudio"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="arts"
RESTRICT="fetch"

DEPEND="app-cdr/k3b
	arts? ( kde-base/arts )"
RDEPEND="${DEPEND}"

pkg_nofetch() {
	einfo "The license for the bundled MonkeyAudio codec sucks."
	einfo "You must download the tarball manually."
	einfo
	einfo "Please download ${P}.tar.bz2"
	einfo "from ${HOMEPAGE} and place it to ${DISTDIR}."
}

pkg_setup() {
	if use arts && ! built_with_use app-cdr/k3b arts; then
		die "Re-emerge app-cdr/k3b with USE=\"arts\"."
	fi
}

src_compile() {
	econf $(use_with arts)
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS ChangeLog README TODO
}