summaryrefslogtreecommitdiff
blob: 10a43071654748ad0f5d3ea0eb3d9d3af757b455 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/vrb/vrb-0.5.1.ebuild,v 1.3 2008/08/27 19:05:54 armin76 Exp $

inherit eutils

DESCRIPTION="Library for a virtual ring buffer"
HOMEPAGE="http://vrb.slashusr.org/"
SRC_URI="http://vrb.slashusr.org/download/${P}.tar.bz2"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~sparc ~x86"
IUSE="static"
RESTRICT="strip"

DEPEND="virtual/libc"

src_compile() {
	epatch ${FILESDIR}/${P}-configure.patch

	./configure --prefix=/usr || die "Configure failed!"
	make || die "Make failed!"
}

src_install() {
	insinto /usr/include
	doins build/include/vrb.h

	mkdir ${D}usr/lib

	if use static ; then
		cp build/lib/libvrb.a* ${D}usr/lib/
	fi

	cp build/lib/libvrb.so* ${D}usr/lib/

	dobin build/bin/vbuf

	dodoc README
	doman vrb/man/man3/*.3
}