summaryrefslogtreecommitdiff
blob: bf86efefe3a0ba7760c9ba89858f31375dd2dbdb (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
# Copyright 2002 Johannes Findeisen <you@hanez.org>
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-libs/vrb/vrb-0.3.0.ebuild,v 1.1 2002/07/12 20:11:20 agenkin Exp $

DESCRIPTION="The VRB library is a virtual ring buffer"
HOMEPAGE="http://phil.ipal.org/freeware/vrb/"
LICENSE="LGPL-2.1"

DEPEND="virtual/glibc"

SRC_URI="http://phil.ipal.org/freeware/vrb/${P}.tar.gz"
S="${WORKDIR}/${P}"

src_compile() {

	sed -e "s/copts=\"-pipe -O2\"/copts=\"${CFLAGS}\"/g" \
                < Configure > Configure.hacked
	cp Configure.hacked Configure
		
	./Configure 						\
		--prefix=/usr || die "./Configure failed"

	make || die "emake failed"
}

src_install () {

	insinto /usr/include/libvrb/
	doins include/vrb.h

	dolib.so lib/libvrb.so.0.3.0
	dosym /usr/lib/libvrb.so.0.3.0 /usr/lib/libvrb.so.0.3
	dosym /usr/lib/libvrb.so.0.3.0 /usr/lib/libvrb.so.0
	dosym /usr/lib/libvrb.so.0.3.0 /usr/lib/libvrb.so

	dobin bin/iobuffer

	dodoc INSTALL LICENSE README
}