summaryrefslogtreecommitdiff
blob: 086446a8737f4e8d172306ae31c948defe9af278 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cuecue/cuecue-0.2.2.ebuild,v 1.2 2006/06/24 10:10:11 sbriesen Exp $

inherit eutils

DESCRIPTION="Cuecue is a suite to convert .cue + [.ogg|.flac|.wav|.mp3] to .cue + .bin."
HOMEPAGE="http://cuecue.berlios.de/"
SRC_URI="http://download.berlios.de/cuecue/${P}.tar.gz"

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

DEPEND="mp3? ( media-libs/libmad )
	flac? ( media-libs/flac )
	vorbis? ( media-libs/libogg media-libs/libvorbis )"

src_unpack() {
	unpack ${A}
	cd "${S}"
	# remove obsolete CFLAGS
	sed -i -e "s:-g -Os::g" configure*
}

src_compile() {
	local myconf=""
	myconf="${myconf} $(use_enable mp3)"
	myconf="${myconf} $(use_enable flac)"
	myconf="${myconf} $(use_enable vorbis ogg)"
	econf ${myconf} || die "econf failed"
	emake || die "emake failed"
}

src_install () {
	make DESTDIR="${D}" install || die "make install failed"
	insinto /usr/include
	doins src/libcuecue/cuecue.h
	dodoc CHANGES README TODO
}