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

DESCRIPTION="Simple GTK+ Based CD Ripper"
HOMEPAGE="http://ripoffc.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}c/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="flac mp3 vorbis"

RDEPEND="dev-libs/libcdio
	media-libs/libcddb
	>=x11-libs/gtk+-2.6
	flac? ( media-libs/flac )
	mp3? ( media-sound/lame )
	vorbis? ( media-libs/libvorbis )"
DEPEND="${RDEPEND}"

src_compile() {
	econf \
		$(use_enable flac) \
		$(use_enable mp3) \
		$(use_enable vorbis) \
		|| die "econf failed"

	emake || die "emake failed"
}

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