1 |
commit: b1ad15e7a10105fb9f0905ea5aac0835a62b46f3 |
2 |
Author: Martin Mokrejs <mmokrejs <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jan 10 16:32:20 2020 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Fri Jan 10 16:52:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b1ad15e7 |
7 |
|
8 |
sci-biology/pysamstats: version bump |
9 |
sci-biology/pysam: version bump |
10 |
|
11 |
I am not sure if the path pysam-0.12-fix-buildsystem.patch is still |
12 |
needed or not. Nevertheless, the modules do not import properly into |
13 |
python so the ebuild needs more work. |
14 |
|
15 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
16 |
Signed-off-by: Martin Mokrejs <mmokrejs <AT> gmail.com> |
17 |
|
18 |
sci-biology/pysam/metadata.xml | 12 ++++++ |
19 |
sci-biology/pysam/pysam-0.15.3.ebuild | 46 ++++++++++++++++++++++ |
20 |
...stats-0.24.2.ebuild => pysamstats-1.1.2.ebuild} | 9 +++-- |
21 |
3 files changed, 64 insertions(+), 3 deletions(-) |
22 |
|
23 |
diff --git a/sci-biology/pysam/metadata.xml b/sci-biology/pysam/metadata.xml |
24 |
new file mode 100644 |
25 |
index 000000000..6182254bd |
26 |
--- /dev/null |
27 |
+++ b/sci-biology/pysam/metadata.xml |
28 |
@@ -0,0 +1,12 @@ |
29 |
+<?xml version='1.0' encoding='UTF-8'?> |
30 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
31 |
+<pkgmetadata> |
32 |
+ <maintainer type="project"> |
33 |
+ <email>sci-biology@g.o</email> |
34 |
+ <name>Gentoo Biology Project</name> |
35 |
+ </maintainer> |
36 |
+ <upstream> |
37 |
+ <remote-id type="google-code">pysam</remote-id> |
38 |
+ <remote-id type="github">pysam-developers/pysam</remote-id> |
39 |
+ </upstream> |
40 |
+</pkgmetadata> |
41 |
|
42 |
diff --git a/sci-biology/pysam/pysam-0.15.3.ebuild b/sci-biology/pysam/pysam-0.15.3.ebuild |
43 |
new file mode 100644 |
44 |
index 000000000..4224df0be |
45 |
--- /dev/null |
46 |
+++ b/sci-biology/pysam/pysam-0.15.3.ebuild |
47 |
@@ -0,0 +1,46 @@ |
48 |
+# Copyright 1999-2020 Gentoo Authors |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=6 |
52 |
+ |
53 |
+PYTHON_COMPAT=( python2_7 python3_6 ) |
54 |
+ |
55 |
+inherit distutils-r1 |
56 |
+ |
57 |
+DESCRIPTION="Python interface for the SAM/BAM sequence alignment and mapping format" |
58 |
+HOMEPAGE=" |
59 |
+ https://github.com/pysam-developers/pysam |
60 |
+ https://pypi.org/project/pysam/" |
61 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="MIT" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="" |
66 |
+ |
67 |
+# current code wraps 3rd-party code from htslib-1.9, samtools-1.9 and bcftools-1.9 |
68 |
+RDEPEND="=sci-libs/htslib-1.9*:=" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ dev-python/cython[${PYTHON_USEDEP}] |
71 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
72 |
+ |
73 |
+python_prepare_all() { |
74 |
+ # unbundle htslib |
75 |
+ export HTSLIB_MODE="external" |
76 |
+ export HTSLIB_INCLUDE_DIR="${EPREFIX}"/usr/include |
77 |
+ export HTSLIB_LIBRARY_DIR="${EPREFIX}"/usr/$(get_libdir) |
78 |
+ rm -r htslib || die |
79 |
+ |
80 |
+ # prevent setup.py from adding RPATHs |
81 |
+ sed -e "/ext\.extra_link_args += \['-Wl,-rpath,\$ORIGIN'\]/d" \ |
82 |
+ -i cy_build.py || die |
83 |
+ sed -e '/runtime_library_dirs=htslib_library_dirs/d' \ |
84 |
+ -i setup.py || die |
85 |
+ |
86 |
+ distutils-r1_python_prepare_all |
87 |
+} |
88 |
+ |
89 |
+src_compile() { |
90 |
+ # TODO |
91 |
+ # empty compile, as the build system runs the whole build again in install |
92 |
+ : |
93 |
+} |
94 |
|
95 |
diff --git a/sci-biology/pysamstats/pysamstats-0.24.2.ebuild b/sci-biology/pysamstats/pysamstats-1.1.2.ebuild |
96 |
similarity index 77% |
97 |
rename from sci-biology/pysamstats/pysamstats-0.24.2.ebuild |
98 |
rename to sci-biology/pysamstats/pysamstats-1.1.2.ebuild |
99 |
index d6e1350a4..06bb7c69b 100644 |
100 |
--- a/sci-biology/pysamstats/pysamstats-0.24.2.ebuild |
101 |
+++ b/sci-biology/pysamstats/pysamstats-1.1.2.ebuild |
102 |
@@ -1,4 +1,4 @@ |
103 |
-# Copyright 1999-2018 Gentoo Foundation |
104 |
+# Copyright 1999-2020 Gentoo Authors |
105 |
# Distributed under the terms of the GNU General Public License v2 |
106 |
|
107 |
EAPI=6 |
108 |
@@ -17,6 +17,9 @@ SLOT="0" |
109 |
KEYWORDS="" # needs working pysam, see bug #645060 |
110 |
IUSE="" |
111 |
|
112 |
-DEPEND="dev-python/cython |
113 |
- >=sci-biology/pysam-0.8.4" |
114 |
+DEPEND=" |
115 |
+ dev-python/cython |
116 |
+ dev-python/numpy |
117 |
+ dev-python/pytables |
118 |
+ >=sci-biology/pysam-0.15.1" |
119 |
RDEPEND="${DEPEND}" |