dev-libs/vrb: EAPI 6 bump.
authorPatrice Clement <monsieurp@gentoo.org>
Sat, 10 Sep 2016 15:27:58 +0000 (17:27 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Sat, 10 Sep 2016 15:29:40 +0000 (17:29 +0200)
Package-Manager: portage-2.2.28

dev-libs/vrb/vrb-0.5.1-r1.ebuild [new file with mode: 0644]

diff --git a/dev-libs/vrb/vrb-0.5.1-r1.ebuild b/dev-libs/vrb/vrb-0.5.1-r1.ebuild
new file mode 100644 (file)
index 0000000..86693d9
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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="~amd64 ~sparc ~x86"
+IUSE="static"
+RESTRICT="strip"
+
+DEPEND=""
+RDEPEND="
+       ${DEPEND}
+       sys-libs/glibc"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-configure.patch
+)
+
+DOCS=( README )
+
+src_configure() {
+       CC="$(tc-getCC)" ./configure --prefix=/usr || die "Configure failed!"
+}
+
+src_install() {
+       insinto /usr/include
+       doins build/include/vrb.h
+
+       mkdir "${D}"usr/lib || die
+
+       if use static; then
+               cp build/lib/libvrb.a* "${D}"usr/lib/ || die
+       fi
+
+       cp build/lib/libvrb.so* "${D}"usr/lib/ || die
+
+       dobin build/bin/vbuf
+       doman vrb/man/man3/*.3
+}