1 |
commit: d7637214cd6c37456262bc62ff07eab1b1dae6b3 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Wed Dec 30 18:39:36 2020 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Wed Dec 30 19:02:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d7637214 |
7 |
|
8 |
sci-biology/khmer: version bump 2.1.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
Closes: https://github.com/gentoo/sci/pull/1009 |
13 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
14 |
|
15 |
sci-biology/khmer/khmer-0.8.ebuild | 39 ----------------------- |
16 |
sci-biology/khmer/khmer-1.0.1.ebuild | 62 ------------------------------------ |
17 |
sci-biology/khmer/khmer-2.1.1.ebuild | 34 ++++++++++++++++++++ |
18 |
sci-biology/khmer/khmer-9999.ebuild | 42 ------------------------ |
19 |
4 files changed, 34 insertions(+), 143 deletions(-) |
20 |
|
21 |
diff --git a/sci-biology/khmer/khmer-0.8.ebuild b/sci-biology/khmer/khmer-0.8.ebuild |
22 |
deleted file mode 100644 |
23 |
index e19d27e9b..000000000 |
24 |
--- a/sci-biology/khmer/khmer-0.8.ebuild |
25 |
+++ /dev/null |
26 |
@@ -1,39 +0,0 @@ |
27 |
-# Copyright 1999-2014 Gentoo Foundation |
28 |
-# Distributed under the terms of the GNU General Public License v2 |
29 |
- |
30 |
-EAPI=5 |
31 |
- |
32 |
-PYTHON_COMPAT=( python2_7 ) |
33 |
- |
34 |
-inherit distutils-r1 |
35 |
- |
36 |
-DESCRIPTION="In-memory K-mer counting in DNA/RNA/protein sequences" |
37 |
-HOMEPAGE="https://github.com/ged-lab/khmer" |
38 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
39 |
- |
40 |
-LICENSE="BSD" |
41 |
-SLOT="0" |
42 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
43 |
-IUSE="" |
44 |
- |
45 |
-DEPEND="" |
46 |
-RDEPEND="sci-biology/screed" |
47 |
- |
48 |
-python_prepare_all(){ |
49 |
- rm -rf lib/{bzip2,zlib} || die |
50 |
- |
51 |
- sed \ |
52 |
- -e 's:zlib/zlib.h:zlib.h:g' \ |
53 |
- -e 's:bzip2/bzlib.h:bzlib.h:g' \ |
54 |
- -i lib/read_parsers.hh lib/counting.cc || die |
55 |
- |
56 |
- sed \ |
57 |
- -e "/extra_objects/d" \ |
58 |
- -e "s:'nose >= 1.0', ::g" \ |
59 |
- -e "s:'sphinx',::g" \ |
60 |
- -e '/libraries/s:, ]:, "z", "bz2", ]:g' \ |
61 |
- -e "s:'-O3',::g" \ |
62 |
- -i setup.py || die |
63 |
- |
64 |
- distutils-r1_python_prepare_all |
65 |
-} |
66 |
|
67 |
diff --git a/sci-biology/khmer/khmer-1.0.1.ebuild b/sci-biology/khmer/khmer-1.0.1.ebuild |
68 |
deleted file mode 100644 |
69 |
index 7ace41d54..000000000 |
70 |
--- a/sci-biology/khmer/khmer-1.0.1.ebuild |
71 |
+++ /dev/null |
72 |
@@ -1,62 +0,0 @@ |
73 |
-# Copyright 1999-2014 Gentoo Foundation |
74 |
-# Distributed under the terms of the GNU General Public License v2 |
75 |
- |
76 |
-EAPI=5 |
77 |
- |
78 |
-PYTHON_COMPAT=( python2_7 ) |
79 |
- |
80 |
-inherit distutils-r1 |
81 |
- |
82 |
-DESCRIPTION="In-memory K-mer counting in DNA/RNA/protein sequences" |
83 |
-HOMEPAGE="https://github.com/ged-lab/khmer" |
84 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
85 |
- |
86 |
-LICENSE="BSD" |
87 |
-SLOT="0" |
88 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
89 |
-IUSE="" |
90 |
- |
91 |
-DEPEND="" |
92 |
-RDEPEND="sci-biology/screed" |
93 |
- |
94 |
-python_prepare_all(){ |
95 |
- rm -rf lib/{bzip2,zlib} || die |
96 |
- |
97 |
- sed \ |
98 |
- -e 's:zlib/zlib.h:zlib.h:g' \ |
99 |
- -e 's:bzip2/bzlib.h:bzlib.h:g' \ |
100 |
- -i lib/read_parsers.hh lib/counting.cc || die |
101 |
- |
102 |
- sed \ |
103 |
- -e "/^EXTRA_COMPILE_ARGS/s:=.*:=[]:g" \ |
104 |
- -i setup.py || die |
105 |
- |
106 |
- cat > setup.cfg <<- EOF |
107 |
- [nosetests] |
108 |
- verbosity = 2 |
109 |
- stop = TRUE |
110 |
- attr = !known_failing |
111 |
- |
112 |
- [build_ext] |
113 |
- undef = NO_UNIQUE_RC |
114 |
- libraries = z,bz2 |
115 |
- ## if using system libraries |
116 |
- include-dirs = lib:lib/zlib:lib/bzip2 |
117 |
- # include-dirs = lib |
118 |
- ## if using system libraries (broken) |
119 |
- |
120 |
- define = NDEBUG |
121 |
- # is not needed for most Linux installs |
122 |
- # see the OPT line in /usr/lib/python2.7/config/Makefile which gets included |
123 |
- # in distutils version of CFLAGS |
124 |
- |
125 |
- [easy_install] |
126 |
- |
127 |
- EOF |
128 |
- |
129 |
- distutils-r1_python_prepare_all |
130 |
-} |
131 |
- |
132 |
-python_test() { |
133 |
- esetup.py nosetests || die |
134 |
-} |
135 |
|
136 |
diff --git a/sci-biology/khmer/khmer-2.1.1.ebuild b/sci-biology/khmer/khmer-2.1.1.ebuild |
137 |
new file mode 100644 |
138 |
index 000000000..11c4231e8 |
139 |
--- /dev/null |
140 |
+++ b/sci-biology/khmer/khmer-2.1.1.ebuild |
141 |
@@ -0,0 +1,34 @@ |
142 |
+# Copyright 1999-2020 Gentoo Authors |
143 |
+# Distributed under the terms of the GNU General Public License v2 |
144 |
+ |
145 |
+EAPI=7 |
146 |
+ |
147 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
148 |
+ |
149 |
+inherit distutils-r1 |
150 |
+ |
151 |
+DESCRIPTION="In-memory K-mer counting in DNA/RNA/protein sequences" |
152 |
+HOMEPAGE="https://github.com/dib-lab/khmer" |
153 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
154 |
+ |
155 |
+LICENSE="BSD" |
156 |
+SLOT="0" |
157 |
+KEYWORDS="~amd64 ~x86" |
158 |
+ |
159 |
+# ToDo: Fix this: |
160 |
+# ModuleNotFoundError: No module named 'khmer._khmer' |
161 |
+# even happens with --install option for enable_tests |
162 |
+RESTRICT="test" |
163 |
+ |
164 |
+RDEPEND=" |
165 |
+ sci-biology/screed[${PYTHON_USEDEP}] |
166 |
+ dev-python/bz2file[${PYTHON_USEDEP}] |
167 |
+" |
168 |
+ |
169 |
+distutils_enable_tests pytest |
170 |
+ |
171 |
+python_prepare_all() { |
172 |
+ # do not depend on pytest-runner |
173 |
+ sed -i "/pytest-runner/d" setup.py || die |
174 |
+ distutils-r1_python_prepare_all |
175 |
+} |
176 |
|
177 |
diff --git a/sci-biology/khmer/khmer-9999.ebuild b/sci-biology/khmer/khmer-9999.ebuild |
178 |
deleted file mode 100644 |
179 |
index 7855665e1..000000000 |
180 |
--- a/sci-biology/khmer/khmer-9999.ebuild |
181 |
+++ /dev/null |
182 |
@@ -1,42 +0,0 @@ |
183 |
-# Copyright 1999-2018 Gentoo Foundation |
184 |
-# Distributed under the terms of the GNU General Public License v2 |
185 |
- |
186 |
-EAPI=5 |
187 |
- |
188 |
-PYTHON_COMPAT=( python2_7 ) |
189 |
- |
190 |
-inherit distutils-r1 git-r3 |
191 |
- |
192 |
-DESCRIPTION="In-memory K-mer counting in DNA/RNA/protein sequences" |
193 |
-HOMEPAGE="https://github.com/ged-lab/khmer" |
194 |
-#SRC_URI="" |
195 |
-EGIT_REPO_URI="https://github.com/ged-lab/khmer" |
196 |
- |
197 |
-LICENSE="BSD" |
198 |
-SLOT="0" |
199 |
-KEYWORDS="" |
200 |
-IUSE="" |
201 |
- |
202 |
-DEPEND="" |
203 |
-RDEPEND="sci-biology/screed" |
204 |
- |
205 |
-#python_prepare_all(){ |
206 |
-# rm -rf lib/{bzip2,zlib} || die |
207 |
-# |
208 |
-# sed \ |
209 |
-# -e 's:zlib/zlib.h:zlib.h:g' \ |
210 |
-# -e 's:bzip2/bzlib.h:bzlib.h:g' \ |
211 |
-# -i lib/read_parsers.hh lib/counting.cc || die |
212 |
-# |
213 |
-# sed \ |
214 |
-# -e "/extra_objects/d" \ |
215 |
-# -e "s:'nose >= 1.0', ::g" \ |
216 |
-# -e "s:'sphinx',::g" \ |
217 |
-# -e '/libraries/s:, ]:, "z", "bz2", ]:g' \ |
218 |
-# -e "s:'-O3',::g" \ |
219 |
-# -i setup.py || die |
220 |
-# |
221 |
-# distutils-r1_python_prepare_all |
222 |
-#} |
223 |
- |
224 |
-# setup.py --libraries z,bz2 || die |