summaryrefslogtreecommitdiff
blob: ec7f3cdddbdc7ccba897418210546704bdccc9f4 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libclastfm/libclastfm-0.4.ebuild,v 1.3 2012/02/10 12:14:37 ssuominen Exp $

EAPI=4

DESCRIPTION="An unofficial C-API to the last.fm web service"
HOMEPAGE="http://liblastfm.sourceforge.net/"
SRC_URI="mirror://sourceforge/liblastfm/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="static-libs"

RDEPEND="net-misc/curl"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

DOCS=( AUTHORS README )

src_prepare() {
	# Fix compability with recent curl
	sed -i -e '/<curl\/types.h>/d' src/{lastfm-priv.h,lfm_helper.{c,h}} || die
}

src_configure() {
	econf $(use_enable static-libs static)
}

src_install() {
	default
	rm -f "${ED}"usr/lib*/${PN}.la
}