summaryrefslogtreecommitdiff
blob: 73aa1d8ec64f72c4aa8184c8e5dd008cdf8bef21 (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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/lopster/lopster-1.2.0.ebuild,v 1.11 2005/02/25 03:09:46 squinky86 Exp $

IUSE="nls"

inherit eutils

DESCRIPTION="A Napster Client using GTK"
HOMEPAGE="http://lopster.sourceforge.net"
SRC_URI="http://lopster.sourceforge.net/download/${P}.tar.gz
	http://lopster.sourceforge.net/download/${P}-1.patch.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc ~sparc ~alpha ~hppa amd64"

DEPEND="=x11-libs/gtk+-1.2*"
RDEPEND="nls? ( sys-devel/gettext )"

EPATCH_SINGLE_MSG="patching transfer.c (fixes crash when being direct browsed)"

src_compile() {
	local myconf
	epatch ${DISTDIR}/lopster-1.2.0-1.patch.gz
	aclocal -I m4
	cp po/Makevars.template po/Makevars
	autoconf
	automake
	use nls || myconf="${myconf} --disable-nls"

	econf \
		--with-pthread \
		--with-zlib \
		${myconf} || die "econf failed"

	emake || die
}

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