1 |
commit: 778b9cad7be047675ab8b1c8b0d54e5f4f2c7f4c |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Thu Mar 31 23:10:46 2016 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Thu Mar 31 23:10:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=778b9cad |
7 |
|
8 |
sci-biology/bamtools: version bump; still suffers gentoo bug #550144 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
sci-biology/bamtools/bamtools-2.4.0.ebuild | 31 ++++++++++++++++++++++ |
13 |
.../bamtools/files/bamtools-2.4.0-unbundle.patch | 23 ++++++++++++++++ |
14 |
2 files changed, 54 insertions(+) |
15 |
|
16 |
diff --git a/sci-biology/bamtools/bamtools-2.4.0.ebuild b/sci-biology/bamtools/bamtools-2.4.0.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..b2d7d62 |
19 |
--- /dev/null |
20 |
+++ b/sci-biology/bamtools/bamtools-2.4.0.ebuild |
21 |
@@ -0,0 +1,31 @@ |
22 |
+# Copyright 1999-2015 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+inherit cmake-utils |
29 |
+ |
30 |
+DESCRIPTION="A programmer's API and an end-user's toolkit for handling BAM files" |
31 |
+HOMEPAGE="https://github.com/pezmaster31/bamtools" |
32 |
+SRC_URI="https://github.com/pezmaster31/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="MIT" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="static-libs" |
38 |
+ |
39 |
+DEPEND=" |
40 |
+ >=dev-libs/jsoncpp-0.5.0-r1 |
41 |
+ <dev-libs/jsoncpp-1 |
42 |
+ sys-libs/zlib" |
43 |
+RDEPEND="${DEPEND}" |
44 |
+ |
45 |
+PATCHES=( "${FILESDIR}"/${P}-unbundle.patch ) |
46 |
+ |
47 |
+src_install() { |
48 |
+ cmake-utils_src_install |
49 |
+ if ! use static-libs; then |
50 |
+ rm "${ED}"/usr/$(get_libdir)/*.a || die |
51 |
+ fi |
52 |
+} |
53 |
|
54 |
diff --git a/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch b/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch |
55 |
new file mode 100644 |
56 |
index 0000000..c07c59d |
57 |
--- /dev/null |
58 |
+++ b/sci-biology/bamtools/files/bamtools-2.4.0-unbundle.patch |
59 |
@@ -0,0 +1,23 @@ |
60 |
+--- bamtools-2.3.0/src/api/CMakeLists.txt.ori 2013-08-27 18:00:43.000000000 +0200 |
61 |
++++ bamtools-2.3.0/src/api/CMakeLists.txt 2013-08-27 18:00:47.000000000 +0200 |
62 |
+@@ -54,8 +54,8 @@ |
63 |
+ target_link_libraries( BamTools-static ${APILibs} ) |
64 |
+ |
65 |
+ # set library install destinations |
66 |
+-install( TARGETS BamTools LIBRARY DESTINATION "lib/bamtools" RUNTIME DESTINATION "bin") |
67 |
+-install( TARGETS BamTools-static ARCHIVE DESTINATION "lib/bamtools") |
68 |
++install( TARGETS BamTools LIBRARY DESTINATION "lib${LIB_SUFFIX}" RUNTIME DESTINATION "bin") |
69 |
++install( TARGETS BamTools-static ARCHIVE DESTINATION "lib${LIB_SUFFIX}") |
70 |
+ |
71 |
+ # export API headers |
72 |
+ include(../ExportHeader.cmake) |
73 |
+--- bamtools-2.3.0/src/CMakeLists.txt.ori 2013-08-27 18:03:10.000000000 +0200 |
74 |
++++ bamtools-2.3.0/src/CMakeLists.txt 2013-08-27 18:03:23.000000000 +0200 |
75 |
+@@ -6,7 +6,6 @@ |
76 |
+ # ========================== |
77 |
+ |
78 |
+ add_subdirectory( api ) |
79 |
+-add_subdirectory( third_party ) |
80 |
+ add_subdirectory( toolkit ) |
81 |
+ add_subdirectory( utils ) |
82 |
+ |