summaryrefslogtreecommitdiff
blob: f2a0a3478b15f5831dce91c01968d678c22bcc84 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libextractor/libextractor-0.2.2.ebuild,v 1.3 2005/02/28 05:01:33 squinky86 Exp $

inherit libtool eutils

DESCRIPTION="A simple library for keyword extraction"
HOMEPAGE="http://www.ovmj.org/~samanta/libextractor"
SRC_URI="http://www.ovmj.org/~samanta/libextractor/download/${P}.tar.bz2"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 sparc"
IUSE="oggvorbis static"

# does not work with rpm-4.2
DEPEND=">=sys-devel/libtool-1.4.1
	<app-arch/rpm-4.2
	oggvorbis? ( >=media-libs/libvorbis-1.0_beta4 )"

src_unpack() {
	unpack ${A}
	# patch their half baked attempt at supporting ogg vorbis
	epatch ${FILESDIR}/${P}-vorbisfile.patch
}

src_compile() {
	elibtoolize

	export CPPFLAGS="-I/usr/include/rpm"
	econf `use_enable static` || die
	make || die
}

src_install() {
	make DESTDIR=${D} install || die
}