1 |
commit: adb3bc8e64f8afe51ae31d8070b98f2a88a243ee |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 2 10:44:42 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 2 11:04:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adb3bc8e |
7 |
|
8 |
sci-biology/pysam: Bump to 0.12 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
sci-biology/pysam/Manifest | 1 + |
13 |
sci-biology/pysam/pysam-0.12.ebuild | 43 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/sci-biology/pysam/Manifest b/sci-biology/pysam/Manifest |
17 |
index 24afdea8b62..b2e7af85717 100644 |
18 |
--- a/sci-biology/pysam/Manifest |
19 |
+++ b/sci-biology/pysam/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST pysam-0.12.tar.gz 2537142 SHA256 33922cb3277ed9a63457c1b6a9dcad2774a217ababcc97a854435be87ba80488 SHA512 095a47cd7258ef093a172445c425f382996da886e44e1beb81ecdec2325024e099d14bee6fcd928c4449099f51ad92b6d7ceb464815c463ab4478f162a40f21e WHIRLPOOL 2331e24d817cd3e7372df8e115498456e685ac426796b29c6d5a28edbaab2321f7efc9db0f14a000750fcd9e30391c02b81e439a07596813bdf7fc6c6e1a3ae3 |
22 |
DIST pysam-0.9.0.tar.gz 2701721 SHA256 dd4946c8efa6786a754e2b50c6027dd03aa82c8ee6c2be3b4e51384da80b4c7c SHA512 9189ef2b56df0f5e2c84586c0c2b2cd46a77dbedd3aa6fd25ddcc4a93320038bead073206fff528ae9775f153c875838726dd0af8e4c7bf4e0c6063145e2bc06 WHIRLPOOL 6c7d459057fed3961e983b3e8563e10a47cb87f5da2fb99ca893eff9e19a8b9e4c27b5d82a978a611d615eba8052fbe3e36498ea461e03521a075d9aee8da463 |
23 |
|
24 |
diff --git a/sci-biology/pysam/pysam-0.12.ebuild b/sci-biology/pysam/pysam-0.12.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..e181e06ac9b |
27 |
--- /dev/null |
28 |
+++ b/sci-biology/pysam/pysam-0.12.ebuild |
29 |
@@ -0,0 +1,43 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Python interface for the SAM/BAM sequence alignment and mapping format" |
40 |
+HOMEPAGE=" |
41 |
+ https://github.com/pysam-developers/pysam |
42 |
+ https://pypi.python.org/pypi/pysam" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+ |
49 |
+RDEPEND="=sci-libs/htslib-1.5*:=" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ dev-python/cython[${PYTHON_USEDEP}] |
52 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
53 |
+ |
54 |
+python_prepare_all() { |
55 |
+ export HTSLIB_INCLUDE_DIR="${EPREFIX}"/usr/include |
56 |
+ export HTSLIB_LIBRARY_DIR="${EPREFIX}"/usr/$(get_libdir) |
57 |
+ export HTSLIB_CONFIGURE_OPTIONS="--disable-libcurl" |
58 |
+ |
59 |
+ # prevent setup.py from adding RPATHs |
60 |
+ sed -e "/ext\.extra_link_args += \['-Wl,-rpath,\$ORIGIN'\]/d" \ |
61 |
+ -i cy_build.py || die |
62 |
+ sed -e '/runtime_library_dirs=htslib_library_dirs/d' \ |
63 |
+ -i setup.py || die |
64 |
+ |
65 |
+ distutils-r1_python_prepare_all |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ # TODO |
70 |
+ # empty compile, as the build system runs the whole build again in install |
71 |
+ : |
72 |
+} |