summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-12-13 10:19:12 +0100
committerJustin Lecher <jlec@gentoo.org>2015-12-13 10:19:12 +0100
commit8deb276adb49578cf19bce5ef8fe9394aa90db6f (patch)
tree2d1ea3e9f8685cc825048464ba227db08297bc60 /sci-biology
parentsys-auth/otpcalc: Fix out-of-bounds read and other changes. (diff)
downloadgentoo-8deb276adb49578cf19bce5ef8fe9394aa90db6f.tar.gz
gentoo-8deb276adb49578cf19bce5ef8fe9394aa90db6f.tar.bz2
gentoo-8deb276adb49578cf19bce5ef8fe9394aa90db6f.zip
sci-biology/bamtools: Unbundle dev-libs/jsoncpp
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=568090 Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/bamtools/bamtools-1.0.2-r1.ebuild (renamed from sci-biology/bamtools/bamtools-1.0.2.ebuild)33
1 files changed, 24 insertions, 9 deletions
diff --git a/sci-biology/bamtools/bamtools-1.0.2.ebuild b/sci-biology/bamtools/bamtools-1.0.2-r1.ebuild
index 08c40d0705d..dc1b60ba432 100644
--- a/sci-biology/bamtools/bamtools-1.0.2.ebuild
+++ b/sci-biology/bamtools/bamtools-1.0.2-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=4
+EAPI=5
inherit cmake-utils
@@ -15,19 +15,34 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-DEPEND="sys-libs/zlib"
-RDEPEND="${DEPEND}"
+RDEPEND="
+ dev-libs/jsoncpp
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed \
+ -e '/third_party/d' \
+ -i src/CMakeLists.txt || die
+ rm -r src/third_party || die
+
+ sed \
+ -e 's:json.h:json/json.h:g' \
+ -i src/toolkit/bamtools_filter.cpp || die
+
+ cmake-utils_src_prepare
+}
src_install() {
+ local i
for i in bin/bamtools-${PV} lib/libbamtools.so.${PV} lib/libbamtools-utils.so.${PV}; do
TMPDIR="$(pwd)" scanelf -Xr $i || die
done
dobin bin/bamtools
- dolib lib/*
- insinto /usr/include/bamtools/api
- doins include/api/*
- insinto /usr/include/bamtools/shared
- doins include/shared/*
+ dolib.so lib/*so*
+ use static-libs && dolib.a lib/*a
+ insinto /usr/include/bamtools
+ doins include/api include/shared
dodoc README
}