Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/amos/, sci-biology/amos/files/
Date: Mon, 03 Feb 2020 04:02:55
Message-Id: 1580702554.435cdfbb48bf8efd38cb3198230758bd599aeac3.heroxbd@gentoo
1 commit: 435cdfbb48bf8efd38cb3198230758bd599aeac3
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 3 03:22:24 2020 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 3 04:02:34 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=435cdfbb
7
8 sci-biology/amos: remove from tree.
9
10 1. No upstream development since 2011.
11 2. Does not support Python 3.
12
13 Bug: https://bugs.gentoo.org/707558
14 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
15
16 sci-biology/amos/amos-3.1.0-r2.ebuild | 76 ----------------------
17 sci-biology/amos/amos-9999.ebuild | 76 ----------------------
18 sci-biology/amos/files/amos-3.1.0-gcc-4.7.patch | 15 -----
19 ...mos-3.1.0-goBambus2.py-indent-and-cleanup.patch | 25 -------
20 .../files/amos-3.1.0-rename_to_jellyfish1.patch | 43 ------------
21 .../amos/files/amos-9999-fix-include-paths.patch | 13 ----
22 sci-biology/amos/metadata.xml | 21 ------
23 7 files changed, 269 deletions(-)
24
25 diff --git a/sci-biology/amos/amos-3.1.0-r2.ebuild b/sci-biology/amos/amos-3.1.0-r2.ebuild
26 deleted file mode 100644
27 index 951f12c1b..000000000
28 --- a/sci-biology/amos/amos-3.1.0-r2.ebuild
29 +++ /dev/null
30 @@ -1,76 +0,0 @@
31 -# Copyright 1999-2018 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=5
35 -
36 -PYTHON_COMPAT=( python2_7 )
37 -inherit eutils python-r1
38 -
39 -PERL_EXPORT_PHASE_FUNCTIONS=no
40 -inherit perl-module eutils toolchain-funcs
41 -
42 -DESCRIPTION="Whole genome assembler, Hawkeye and AMOScmp to compare multiple assemblies"
43 -HOMEPAGE="http://amos.sourceforge.net/"
44 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
45 -
46 -LICENSE="Artistic"
47 -SLOT="0"
48 -KEYWORDS="~amd64 ~x86"
49 -IUSE="mpi qt5"
50 -
51 -DEPEND="
52 - mpi? ( virtual/mpi )
53 - dev-libs/boost
54 - qt5? ( dev-qt/qtcore:5 )
55 - sci-biology/blat
56 - sci-biology/jellyfish:1"
57 -RDEPEND="${DEPEND}
58 - dev-lang/perl
59 - dev-perl/DBI
60 - dev-perl/Statistics-Descriptive
61 - sci-biology/mummer"
62 -
63 -MAKEOPTS+=" -j1"
64 -
65 -src_prepare() {
66 - epatch \
67 - "${FILESDIR}"/${P}-gcc-4.7.patch \
68 - "${FILESDIR}"/${P}-goBambus2.py-indent-and-cleanup.patch \
69 - "${FILESDIR}"/${P}-rename_to_jellyfish1.patch
70 - # $ gap-links
71 - # ERROR: Could not open file LIBGUESTFS_PATH=/usr/share/guestfs/appliance/
72 - # $
73 - sh ./bootstrap || die
74 - default
75 - eautoreconf
76 - # prevent GCC 6 log pollution due to hash_map deprecation in C++11
77 - # shutdown gcc-8.2.0 messages too
78 - append-cxxflags -Wno-cpp -Wno-narrowing
79 -}
80 -
81 -src_configure() {
82 - local myconf
83 - use X && myconf+=( --with-x )
84 - econf ${myconf[@]} --with-jellyfish="${EPREFIX}"/usr/include --with-Boost-dir="${EPREFIX}"/usr/include --with-qmake-qt4=qmake --enable-all
85 -}
86 -
87 -src_install() {
88 - default
89 - python_replicate_script "${ED}"/usr/bin/goBambus2
90 - # bambus needs TIGR::FASTAreader.pm and others
91 - # configure --libdir sadly copies both *.a files and *.pm into /usr/lib64/AMOS/ and /usr/lib64/TIGR/, work around it
92 - perl_set_version
93 - insinto ${VENDOR_LIB}/AMOS
94 - doins "${D}"/usr/lib64/AMOS/*.pm
95 - insinto ${VENDOR_LIB}/TIGR
96 - doins "${D}"/usr/lib64/TIGR/*.pm
97 - # move also /usr/lib64/AMOS/AMOS.py to /usr/bin
98 - mv "${D}"/usr/lib64/AMOS/*.py "${D}"/usr/bin || die
99 - # zap the mis-placed files ('make install' is at fault)
100 - rm -f "${D}"/usr/lib64/AMOS/*.pm
101 - rm -rf "${D}"/usr/lib64/TIGR
102 - echo AMOSCONF="${EPREFIX}"/etc/amos.acf > "${S}"/99amos || die
103 - mkdir -p "${ED}"/etc || die
104 - touch "${ED}"/etc/amos.acf || die
105 - doenvd "${S}/99amos"
106 -}
107
108 diff --git a/sci-biology/amos/amos-9999.ebuild b/sci-biology/amos/amos-9999.ebuild
109 deleted file mode 100644
110 index 923ac5978..000000000
111 --- a/sci-biology/amos/amos-9999.ebuild
112 +++ /dev/null
113 @@ -1,76 +0,0 @@
114 -# Copyright 1999-2018 Gentoo Foundation
115 -# Distributed under the terms of the GNU General Public License v2
116 -
117 -EAPI=5
118 -
119 -PYTHON_COMPAT=( python2_7 )
120 -
121 -PERL_EXPORT_PHASE_FUNCTIONS=no
122 -inherit perl-module eutils toolchain-funcs autotools flag-o-matic python-single-r1 qmake-utils
123 -
124 -AUTOTOOLS_AUTORECONF=true
125 -inherit autotools-utils git-r3
126 -
127 -DESCRIPTION="Whole genome assembler, Hawkeye and AMOScmp to compare multiple assemblies"
128 -HOMEPAGE="http://sourceforge.net/projects/amos"
129 -SRC_URI=""
130 -EGIT_REPO_URI="git://amos.git.sourceforge.net/gitroot/amos/amos"
131 -
132 -LICENSE="Artistic"
133 -SLOT="0"
134 -KEYWORDS=""
135 -IUSE="mpi qt5 X"
136 -
137 -DEPEND="
138 - mpi? ( virtual/mpi )
139 - dev-libs/boost
140 - qt5? ( dev-qt/qtcore:5 )
141 - sci-biology/blat
142 - sci-biology/jellyfish:1"
143 -RDEPEND="${DEPEND}
144 - dev-perl/DBI
145 - dev-perl/Statistics-Descriptive
146 - sci-biology/mummer"
147 -
148 -# $ gap-links
149 -# ERROR: Could not open file LIBGUESTFS_PATH=/usr/share/guestfs/appliance/
150 -# $
151 -
152 -src_prepare() {
153 - epatch "${FILESDIR}"/"${P}"-fix-include-paths.patch
154 - epatch "${FILESDIR}"/amos-3.1.0-rename_to_jellyfish1.patch
155 - sh ./bootstrap || die
156 - default
157 - eautoreconf
158 -
159 - # prevent GCC 6 log pollution due to hash_map deprecation in C++11
160 - # shutdown gcc-8.2.0 messages too
161 - append-cxxflags -Wno-cpp -Wno-narrowing
162 -}
163 -
164 -src_configure() {
165 - local myconf
166 - use X && myconf+=( --with-x )
167 - econf ${myconf[@]} --with-jellyfish="${EPREFIX}"/usr/include --with-Boost-dir="${EPREFIX}"/usr/include --with-qmake-qt4=qmake --enable-all
168 -}
169 -
170 -src_install() {
171 - default
172 - python_replicate_script "${ED}"/usr/bin/goBambus2
173 - # bambus needs TIGR::FASTAreader.pm and others
174 - # configure --libdir sadly copies both *.a files and *.pm into /usr/lib64/AMOS/ and /usr/lib64/TIGR/, work around it
175 - perl_set_version
176 - insinto ${VENDOR_LIB}/AMOS
177 - doins "${D}"/usr/lib64/AMOS/*.pm
178 - insinto ${VENDOR_LIB}/TIGR
179 - doins "${D}"/usr/lib64/TIGR/*.pm
180 - # move also /usr/lib64/AMOS/AMOS.py to /usr/bin
181 - mv "${D}"/usr/lib64/AMOS/*.py "${D}"/usr/bin || die
182 - # zap the mis-placed files ('make install' is at fault)
183 - rm -f "${D}"/usr/lib64/AMOS/*.pm
184 - rm -rf "${D}"/usr/lib64/TIGR
185 - echo AMOSCONF="${EPREFIX}"/etc/amos.acf > "${S}"/99amos || die
186 - mkdir -p "${ED}"/etc || die
187 - touch "${ED}"/etc/amos.acf || die
188 - doenvd "${S}/99amos"
189 -}
190
191 diff --git a/sci-biology/amos/files/amos-3.1.0-gcc-4.7.patch b/sci-biology/amos/files/amos-3.1.0-gcc-4.7.patch
192 deleted file mode 100644
193 index de2a41184..000000000
194 --- a/sci-biology/amos/files/amos-3.1.0-gcc-4.7.patch
195 +++ /dev/null
196 @@ -1,15 +0,0 @@
197 - src/Align/find-tandem.cc | 1 +
198 - 1 files changed, 1 insertions(+), 0 deletions(-)
199 -
200 -diff --git a/src/Align/find-tandem.cc b/src/Align/find-tandem.cc
201 -index ddf1cab..a29e21e 100644
202 ---- a/src/Align/find-tandem.cc
203 -+++ b/src/Align/find-tandem.cc
204 -@@ -7,6 +7,7 @@
205 - #include <vector>
206 - #include <ctime>
207 - #include <sys/time.h>
208 -+#include <unistd.h>
209 - using namespace std;
210 -
211 - const int OFFSET_TABLE_SIZE = 100;
212
213 diff --git a/sci-biology/amos/files/amos-3.1.0-goBambus2.py-indent-and-cleanup.patch b/sci-biology/amos/files/amos-3.1.0-goBambus2.py-indent-and-cleanup.patch
214 deleted file mode 100644
215 index 97a8f59d0..000000000
216 --- a/sci-biology/amos/files/amos-3.1.0-goBambus2.py-indent-and-cleanup.patch
217 +++ /dev/null
218 @@ -1,25 +0,0 @@
219 ---- amos-3.1.0/src/Pipeline/goBambus2.py.orig 2013-09-11 01:05:29.850090457 +0200
220 -+++ amos-3.1.0/src/Pipeline/goBambus2.py 2013-09-11 01:07:03.250090701 +0200
221 -@@ -1,7 +1,7 @@
222 - #pipeline script for assembly + Bambus 2
223 - #contributed by Todd J Treangen
224 -
225 --import string, sys, os, subprocess#, spincursor
226 -+import sys, os, subprocess#, spincursor
227 -
228 - RED = "\033[0;31m"
229 - GREEN = "\033[0;32m"
230 -@@ -360,7 +360,7 @@
231 - print "\t\t%s...failed%s"%(RED,NONE)
232 - sys.exit(1)
233 -
234 -- p = subprocess.Popen(AMOSDIR+"OutputResults -b %s -prefix %s %s"%(amosbank, prefix+".scaff.linear"), shell=True, stdin=subprocess.PIPE, stdout=vtext, stderr=logfile)
235 -+ p = subprocess.Popen(AMOSDIR+"OutputResults -b %s -prefix %s %s"%(amosbank, prefix+".scaff.linear"), shell=True, stdin=subprocess.PIPE, stdout=vtext, stderr=logfile)
236 -
237 - if xopt_dict["verbose"] == 1:
238 - print "10) running OutputResults"
239 -@@ -388,4 +388,3 @@
240 - else:
241 - print "\t\t%s...failed%s"%(RED,NONE)
242 - sys.exit(1)
243 --)
244
245 diff --git a/sci-biology/amos/files/amos-3.1.0-rename_to_jellyfish1.patch b/sci-biology/amos/files/amos-3.1.0-rename_to_jellyfish1.patch
246 deleted file mode 100644
247 index 4b52c5640..000000000
248 --- a/sci-biology/amos/files/amos-3.1.0-rename_to_jellyfish1.patch
249 +++ /dev/null
250 @@ -1,43 +0,0 @@
251 ---- config/amos.m4 2018-09-11 13:23:14.478444129 +0200
252 -+++ config/amos.m4 2018-09-11 13:36:36.697612245 +0200
253 -@@ -695,15 +695,15 @@
254 - else
255 - jellyfish_unspecified=no
256 - fi
257 --if ! test -f "$jellyfish_dir/jellyfish/mer_counting.hpp"; then
258 -+if ! test -f "$jellyfish_dir/jellyfish1/mer_counting.hpp"; then
259 - if test $jellyfish_unspecified = no; then
260 -- AC_MSG_ERROR([Could not find the file "$jellyfish_dir/jellyfish/compacted_hash.hpp"])
261 -+ AC_MSG_ERROR([Could not find the file "$jellyfish_dir/jellyfish1/compacted_hash.hpp"])
262 - fi
263 - JELLYFISH_LDADD=
264 - JELLYFISH_CPPFLAGS=
265 - AC_MSG_RESULT([not found])
266 - else
267 -- JELLYFISH_LDADD="-ljellyfish -lpthread"
268 -+ JELLYFISH_LDADD="-ljellyfish-1.1 -lpthread"
269 - JELLYFISH_CPPFLAGS="-I $jellyfish_dir"
270 - AC_DEFINE([WITH_JELLYFISH], [1], [Define to 1 if using Jellyfish])
271 - cppflags_save="$CPPFLAGS"
272 -@@ -715,7 +715,7 @@
273 - AC_LANG_PUSH([C++])
274 - AC_LINK_IFELSE([
275 - AC_LANG_PROGRAM([
276 --#include <jellyfish/mer_counting.hpp>
277 -+#include <jellyfish1/mer_counting.hpp>
278 - #include <string>
279 - ], [
280 - std::string s;
281 ---- src/Align/kmer-cov-plot.cc 2018-09-11 13:23:15.079443556 +0200
282 -+++ src/Align/kmer-cov-plot.cc 2018-09-11 13:36:36.831612096 +0200
283 -@@ -388,8 +388,8 @@
284 -
285 - #ifdef WITH_JELLYFISH
286 -
287 --#include <jellyfish/compacted_hash.hpp>
288 --#include <jellyfish/mer_counting.hpp>
289 -+#include <jellyfish1/compacted_hash.hpp>
290 -+#include <jellyfish1/mer_counting.hpp>
291 -
292 - // Assert that jellyfish is using the expected kmer representation
293 - static void jellyfish_check()
294
295 diff --git a/sci-biology/amos/files/amos-9999-fix-include-paths.patch b/sci-biology/amos/files/amos-9999-fix-include-paths.patch
296 deleted file mode 100644
297 index a6e8dc9f0..000000000
298 --- a/sci-biology/amos/files/amos-9999-fix-include-paths.patch
299 +++ /dev/null
300 @@ -1,13 +0,0 @@
301 ---- src/Bambus/Bundler/Makefile.am.old 2018-07-03 12:52:17.306095693 +0200
302 -+++ src/Bambus/Bundler/Makefile.am 2018-07-03 12:52:19.506101530 +0200
303 -@@ -78,8 +78,8 @@
304 - ##-- libBundler.a
305 - libBundler_a_CPPFLAGS = \
306 - $(BOOST_CXXFLAGS) \
307 -- -I$(top_builddir)/src/GNU \
308 -- -I$(top_builddir)/src/AMOS
309 -+ -I$(top_srcdir)/src/GNU \
310 -+ -I$(top_srcdir)/src/AMOS
311 - ## because some system headers will be built if necessary
312 - libBundler_a_LIBADD = \
313 - $(LIBOBJS:%=$(top_builddir)/src/GNU/%) \
314
315 diff --git a/sci-biology/amos/metadata.xml b/sci-biology/amos/metadata.xml
316 deleted file mode 100644
317 index ddba4784f..000000000
318 --- a/sci-biology/amos/metadata.xml
319 +++ /dev/null
320 @@ -1,21 +0,0 @@
321 -<?xml version="1.0" encoding="UTF-8"?>
322 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
323 -<pkgmetadata>
324 - <maintainer type="person">
325 - <email>mmokrejs@×××××××××××××××.cz</email>
326 - <name>Martin Mokrejs</name>
327 - </maintainer>
328 - <maintainer type="project">
329 - <email>sci-biology@g.o</email>
330 - <name>Gentoo Biology Project</name>
331 - </maintainer>
332 - <longdescription>
333 -AMOS is collection of tools and class interfaces for the assembly of DNA
334 -sequencing reads. The package includes a robust infrastructure, modular assembly
335 -pipelines, and tools for overlapping, consensus generation, contigging, and
336 -assembly manipulation
337 -</longdescription>
338 - <upstream>
339 - <remote-id type="sourceforge">amos</remote-id>
340 - </upstream>
341 -</pkgmetadata>