You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/vrb/vrb-0.5.1.ebuild

44 lines
823 B

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit eutils toolchain-funcs
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=""
RDEPEND="${DEPEND}"
src_compile() {
epatch "${FILESDIR}"/${P}-configure.patch
CC="$(tc-getCC)" ./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
}