aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mokrejš <mmokrejs@fold.natur.cuni.cz>2016-04-01 01:10:46 +0200
committerMartin Mokrejš <mmokrejs@fold.natur.cuni.cz>2016-04-01 01:10:46 +0200
commit778b9cad7be047675ab8b1c8b0d54e5f4f2c7f4c (patch)
treebb2b333177532b94b518f4274995e59dfac9def7
parentsci-biology/reapr: quick and dirty Debian patches do not help me with sci-bio... (diff)
downloadsci-778b9cad7be047675ab8b1c8b0d54e5f4f2c7f4c.tar.gz
sci-778b9cad7be047675ab8b1c8b0d54e5f4f2c7f4c.tar.bz2
sci-778b9cad7be047675ab8b1c8b0d54e5f4f2c7f4c.zip
sci-biology/bamtools: version bump; still suffers gentoo bug #550144
Package-Manager: portage-2.2.28
-rw-r--r--sci-biology/bamtools/Manifest1
-rw-r--r--sci-biology/bamtools/bamtools-2.4.0.ebuild31
-rw-r--r--sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch23
3 files changed, 55 insertions, 0 deletions
diff --git a/sci-biology/bamtools/Manifest b/sci-biology/bamtools/Manifest
new file mode 100644
index 000000000..67377b14c
--- /dev/null
+++ b/sci-biology/bamtools/Manifest
@@ -0,0 +1 @@
+DIST bamtools-2.4.0.tar.gz 539779 SHA256 f1fe82b8871719e0fb9ed7be73885f5d0815dd5c7277ee33bd8f67ace961e13e SHA512 33332f290e72ed3943c9df6022a44cfcd358ae1c1d41b1b494c7087a66e865529721ee6230212313d482cb66764573e300f362fee9ccbf3c0da18544bf2e9425 WHIRLPOOL 93097730c225f64c923dcf755df1990d3ba150aef29d227b88f25c9d97bc08745640dfffb05f7b789ff1aa4ef40ae982780be1165dac81717ce27b9664cfebf2
diff --git a/sci-biology/bamtools/bamtools-2.4.0.ebuild b/sci-biology/bamtools/bamtools-2.4.0.ebuild
new file mode 100644
index 000000000..b2d7d623f
--- /dev/null
+++ b/sci-biology/bamtools/bamtools-2.4.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A programmer's API and an end-user's toolkit for handling BAM files"
+HOMEPAGE="https://github.com/pezmaster31/bamtools"
+SRC_URI="https://github.com/pezmaster31/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+DEPEND="
+ >=dev-libs/jsoncpp-0.5.0-r1
+ <dev-libs/jsoncpp-1
+ sys-libs/zlib"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-unbundle.patch )
+
+src_install() {
+ cmake-utils_src_install
+ if ! use static-libs; then
+ rm "${ED}"/usr/$(get_libdir)/*.a || die
+ fi
+}
diff --git a/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch b/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch
new file mode 100644
index 000000000..c07c59d2c
--- /dev/null
+++ b/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch
@@ -0,0 +1,23 @@
+--- bamtools-2.3.0/src/api/CMakeLists.txt.ori 2013-08-27 18:00:43.000000000 +0200
++++ bamtools-2.3.0/src/api/CMakeLists.txt 2013-08-27 18:00:47.000000000 +0200
+@@ -54,8 +54,8 @@
+ target_link_libraries( BamTools-static ${APILibs} )
+
+ # set library install destinations
+-install( TARGETS BamTools LIBRARY DESTINATION "lib/bamtools" RUNTIME DESTINATION "bin")
+-install( TARGETS BamTools-static ARCHIVE DESTINATION "lib/bamtools")
++install( TARGETS BamTools LIBRARY DESTINATION "lib${LIB_SUFFIX}" RUNTIME DESTINATION "bin")
++install( TARGETS BamTools-static ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
+
+ # export API headers
+ include(../ExportHeader.cmake)
+--- bamtools-2.3.0/src/CMakeLists.txt.ori 2013-08-27 18:03:10.000000000 +0200
++++ bamtools-2.3.0/src/CMakeLists.txt 2013-08-27 18:03:23.000000000 +0200
+@@ -6,7 +6,6 @@
+ # ==========================
+
+ add_subdirectory( api )
+-add_subdirectory( third_party )
+ add_subdirectory( toolkit )
+ add_subdirectory( utils )
+