summaryrefslogtreecommitdiff
blob: 2103c3a1d8ff020d12558b5430c4e52c07f58cf4 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/longplayer/longplayer-0.99.2.ebuild,v 1.5 2005/09/04 10:42:31 flameeyes Exp $

inherit eutils kde

IUSE="berkdb"
MY_P=${P/longplayer/lplayer}
S="${WORKDIR}/${MY_P}"

DESCRIPTION="A MP3 jukebox especially for large collections, with rating support for single songs"
HOMEPAGE="http://lplayer.sourceforge.net"
SRC_URI="mirror://sourceforge/lplayer/${MY_P}_src.tgz"
RESTRICT="nomirror"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"

RDEPEND="x11-libs/qt
	media-sound/xmms
	berkdb? ( =sys-libs/db-4.1* )"

DEPEND="${RDEPEND}
	>=sys-devel/automake-1.7.8
	>=sys-devel/autoconf-2.58"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/${P}-gentoo.patch

	cd ${S}
	export WANT_AUTOCONF=2.5
	export WANT_AUTOMAKE=1.7
	sh admin/cvs.sh configure.in || die
	aclocal || die
	autoconf || die
}

src_compile() {
	addwrite "${QTDIR}/etc/settings"

	econf `use_enable berkdb berkeleydb` || die "econf failed"
	emake || die "emake failed"
}

src_install () {
	einstall || die "einstall failed"
	dodoc AUTHORS BUGS FAQ ChangeLog NEWS README TODO
}