Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/ncbi-tools++/
Date: Mon, 01 Feb 2021 04:33:10
Message-Id: 1612153978.e8d4a8bc048182c0db34a3b995ac6a5c24fcdbb8.andrewammerlaan@gentoo
1 commit: e8d4a8bc048182c0db34a3b995ac6a5c24fcdbb8
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Mon Feb 1 04:32:58 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Mon Feb 1 04:32:58 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e8d4a8bc
7
8 sci-biology/ncbi-tools++: drop py2 only version
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
12
13 .../ncbi-tools++/ncbi-tools++-12.0.0.ebuild | 369 ---------------------
14 .../ncbi-tools++/ncbi-tools++-18.0.0.ebuild | 2 +-
15 2 files changed, 1 insertion(+), 370 deletions(-)
16
17 diff --git a/sci-biology/ncbi-tools++/ncbi-tools++-12.0.0.ebuild b/sci-biology/ncbi-tools++/ncbi-tools++-12.0.0.ebuild
18 deleted file mode 100644
19 index ed50801fc..000000000
20 --- a/sci-biology/ncbi-tools++/ncbi-tools++-12.0.0.ebuild
21 +++ /dev/null
22 @@ -1,369 +0,0 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -PYTHON_COMPAT=( python2_7 )
29 -
30 -inherit eutils flag-o-matic multilib python-single-r1 toolchain-funcs
31 -
32 -MY_TAG="Jun_15_2010"
33 -MY_Y="${MY_TAG/*_/}"
34 -MY_PV="12_0_0"
35 -MY_P="ncbi_cxx--${MY_PV}"
36 -#ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools++/ARCHIVE/9_0_0/ncbi_cxx--9_0_0.tar.gz
37 -
38 -# for example sci-biology/ncbi-tools++-12.0.0 contains blastn-2.2.28+
39 -DESCRIPTION="NCBI C++ Toolkit, including NCBI BLAST+"
40 -HOMEPAGE="https://ncbi.github.io/cxx-toolkit/"
41 -SRC_URI="
42 - ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools++/ARCHIVE/${MY_PV}/ncbi_cxx--${MY_PV}.tar.gz"
43 -# http://dev.gentoo.org/~jlec/distfiles/${PN}-${PV#0.}-asneeded.patch.xz"
44 -
45 -# should also install ftp://ftp.ncbi.nlm.nih.gov/blast/db/taxdb.tar.gz
46 -# see http://www.biostars.org/p/76551/ and http://blastedbio.blogspot.cz/2012/05/blast-tabular-missing-descriptions.html
47 -LICENSE="public-domain"
48 -SLOT="0"
49 -IUSE="
50 - debug static-libs static threads pch
51 - test wxwidgets odbc
52 - berkdb boost bzip2 cppunit curl expat fastcgi fltk freetype gif
53 - glut gnutls hdf5 icu jpeg lzo mesa mysql muparser opengl pcre png python
54 - sablotron sqlite tiff xerces xalan xml xpm xslt X"
55 -#KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
56 -KEYWORDS="~amd64"
57 -RESTRICT="!test? ( test )"
58 -
59 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
60 -
61 -# sys-libs/db should be compiled with USE=cxx
62 -# dev-libs/boost must have Boost.Test suite, probably dev-libs/boost[test] then?
63 -DEPEND="
64 - <sys-devel/gcc-10:=
65 - !sci-biology/sra_sdk
66 - app-arch/cpio
67 - berkdb? ( sys-libs/db:4.3[cxx] )
68 - boost? ( dev-libs/boost[tools] )
69 - curl? ( net-misc/curl )
70 - sqlite? ( dev-db/sqlite:3 )
71 - mysql? ( virtual/mysql )
72 - fltk? ( x11-libs/fltk )
73 - opengl? ( virtual/opengl media-libs/glew:0= )
74 - mesa? ( media-libs/mesa[osmesa] )
75 - glut? ( media-libs/freeglut )
76 - freetype? ( media-libs/freetype )
77 - gnutls? ( net-libs/gnutls )
78 - python? ( ${PYTHON_DEPS} )
79 - cppunit? ( dev-util/cppunit )
80 - icu? ( dev-libs/icu )
81 - expat? ( dev-libs/expat )
82 - sablotron? ( app-text/sablotron )
83 - xml? ( dev-libs/libxml2 )
84 - xslt? ( dev-libs/libxslt )
85 - xerces? ( dev-libs/xerces-c )
86 - xalan? ( dev-libs/xalan-c )
87 - muparser? ( dev-cpp/muParser )
88 - hdf5? ( sci-libs/hdf5[cxx] )
89 - gif? ( media-libs/giflib )
90 - jpeg? ( virtual/jpeg:0= )
91 - png? ( media-libs/libpng:0= )
92 - tiff? ( media-libs/tiff:0= )
93 - xpm? ( x11-libs/libXpm )
94 - dev-libs/lzo
95 - app-arch/bzip2
96 - dev-libs/libpcre"
97 -# USE flags which should be added somehow: wxWindows wxWidgets SP ORBacus ODBC OEChem sge
98 -# Intentionally omitted USE flags:
99 -# ftds? ( dev-db/freetds ) # support for outside FreeTDS installations is currently broken.
100 -# The default (heavily patched) embedded copy should work, or you can
101 -# leave it off altogether -- the only public apps that make use of it are
102 -# samples and tests, since NCBI's database servers are of course firewalled.
103 -
104 -# seems muParser is required, also glew is required. configure exits otherwise if these are explicitly passed to it (due to USE flag enabled)
105 -
106 -RDEPEND="${DEPEND}"
107 -
108 -S="${WORKDIR}/${MY_P}"
109 -
110 -PATCHES=(
111 - "${FILESDIR}"/${P}-conf-opts.patch
112 - "${FILESDIR}"/${P}-fix-svn-URL-upstream.patch
113 - "${FILESDIR}"/${P}-linkage-tuneups.patch
114 - "${FILESDIR}"/${P}-more-patches.patch
115 - "${FILESDIR}"/${P}-linkage-tuneups-addons.patch
116 - "${FILESDIR}"/${P}-configure.patch
117 - "${FILESDIR}"/${P}-drop-STATIC-from-LIB.patch
118 - "${FILESDIR}"/${P}-fix-install.patch
119 - "${FILESDIR}"/${P}-bdb6.patch
120 - "${FILESDIR}"/${P}-never_build_test_boost.patch # bug #579248
121 - )
122 -
123 -src_prepare() {
124 - default
125 -# filter-ldflags -Wl,--as-needed
126 -# append-ldflags -Wl,--no-undefined
127 -# sed -i -e 's/-print-file-name=libstdc++.a//' \
128 -# -e '/sed/ s/\([gO]\[0-9\]\)\*/\1\\+/' \
129 -# src/build-system/configure || die
130 -# epatch \
131 -# "${FILESDIR}"/${PN}-${PV#0.}-fix-order-of-libs.patch \
132 -# "${FILESDIR}"/curl-types.patch \
133 -# "${FILESDIR}"/malloc_initialize_upstream_fix.patch \
134 -# "${FILESDIR}"/respect_CXXFLAGS_configure.ac.patch \
135 -# "${FILESDIR}"/respect_CXXFLAGS_configure.patch \
136 -# "${FILESDIR}"/report_project_settings_configure.ac.patch \
137 -# "${FILESDIR}"/report_project_settings_configure.patch \
138 -# "${FILESDIR}"/make_install.patch
139 -
140 -# "${FILESDIR}"/${PN}-${PV#0.}-disable_test_compress.patch
141 -
142 -# "${FILESDIR}"/${PN}-${PV#0.}-gcc46.patch \
143 -# "${FILESDIR}"/${PN}-${PV#0.}-gcc47.patch \
144 -# "${WORKDIR}"/${PN}-${PV#0.}-asneeded.patch \
145 -# "${FILESDIR}"/${PN}-${PV#0.}-libpng15.patch \
146 -# "${FILESDIR}"/${PN}-${PV#0.}-glibc-214.patch
147 -
148 -# use prefix && append-ldflags -Wl,-rpath,"${EPREFIX}/usr/$(get_libdir)/${PN}"
149 -
150 -# The conf-opts.patch and as-needed.patch need to be adjusted for 12.0.0 line numbers
151 -# "${FILESDIR}"/${P}-as-needed.patch
152 -# "${FILESDIR}"/${P}-fix-creaders-linking.patch
153 -# "${FILESDIR}"/${P}-fix-FreeTDS-upstream.patch
154 -# )
155 - # "${FILESDIR}"/${P}-support-autoconf-2.60.patch
156 - # make sure this one is the last one and contains the actual patches applied unless we can have autoconf-2.59 or 2.60
157 - # https://bugs.gentoo.org/show_bug.cgi?id=514706
158 -
159 - tc-export CXX CC
160 -
161 - cd src/build-system || die
162 -# eautoreconf
163 -
164 - # Temporarily disabling eautoconf because we patch configure via ${P}-support-autoconf-2.60.patch
165 - # eautoconf # keep it disabled until we can ensure 2.59 is installed
166 - # beware 12.0.0. and previous required autoconf-2.59, a patch for 12.0.0 brings autoconf-2.60 support
167 -}
168 -
169 -# possibly place modified contents of ${W}/src/build-system/config.site.ncbi and {W}/src/build-system/config.site.ex into ${W}/src/build-system/config.site
170 -src_configure() {
171 - local myconf=()
172 - #--without-optimization turn off optimization flags in non-debug mode
173 - #--with-profiling build profiled versions of libs and apps
174 - #--with-tcheck(=DIR) build for Intel Thread Checker (in DIR)
175 - #--with-plugin-auto-load always enable the plugin manager by default
176 - #--with-bundles build bundles in addition to dylibs on Mac OS X
177 - #--with-bin-release build executables suitable for public release
178 - # no dll and such
179 - #--with-64 compile to 64-bit code
180 - #--with-universal build universal binaries on Mac OS X
181 - #--with-universal=CPUs build universal binaries targeting the given CPUs
182 - #--without-exe do not build executables
183 - #--with-relative-runpath=P specify an executable-relative DLL search path
184 - #--with-hard-runpath hard-code runtime path, ignoring LD_LIBRARY_PATH
185 - #--with-limited-linker don't attempt to build especially large projects
186 - #--with-extra-action= script to call after the configuration is complete
187 - #--with-autodep automatic generation of dependencies (GNU make)
188 - #--with-fake-root=DIR appear to have been built under DIR
189 - #--with-build-root-sfx=X add a user-specified suffix to the build dir name
190 - #--without-execopy do not copy built executables to the BIN area
191 - #--with-lib-rebuilds ensure that apps use up-to-date libraries
192 - #--with-lib-rebuilds=ask ask whether to update each app's libraries
193 - #--without-deactivation keep old copies of libraries that no longer build
194 - #--without-makefile-auto-update do not auto-update generated makefiles
195 - #--with-projects=FILE build projects listed in FILE by default
196 - #--without-flat-makefile do not generate an all-encompassing flat makefile
197 - #--with-configure-dialog allow interactive flat makefile project selection
198 - #--with-saved-settings=F load configuration settings from the file F
199 - #--with-check-tools=... use the specified tools for testing
200 - #--with-ncbi-public ensure compatibility for all in-house platforms
201 - #--with-sybase-local=DIR use local SYBASE install (DIR is optional)
202 - #--with-sybase-new use newer SYBASE install (12.5 rather than 12.0)
203 - #--without-sp do not use SP libraries
204 - #--without-orbacus do not use ORBacus CORBA libraries
205 - #--with-orbacus=DIR use ORBacus installation in DIR
206 - #--with-jni(=JDK-DIR) build Java bindings (against the JDK in JDK-DIR)
207 - #--with-sablot=DIR use Sablotron installation in DIR
208 - #--without-sablot, do not use Sablotron
209 - #--with-oechem=DIR use OpenEye OEChem installation in DIR
210 - #--without-oechem do not use OEChem
211 - #--with-sge=DIR use Sun Grid Engine installation in DIR
212 - #--without-sge do not use Sun Grid Engine
213 - #--with-magic=DIR use libmagic installation in DIR
214 - #--without-magic do not use libmagic
215 - #--without-local-lbsm turn off support for IPC with locally running LBSMD
216 - #--without-ncbi-crypt use a dummy stubbed-out version of ncbi_crypt
217 - #--without-connext do not build non-public CONNECT library extensions
218 - #--without-serial do not build the serialization library and tools
219 - #--without-objects do not generate/build serializeable objects from ASNs
220 - #--without-dbapi do not build database connectivity libraries
221 - #--without-app do not build standalone applications like ID1_FETCH
222 - #--without-gui do not build most graphical projects
223 - #--without-algo do not build CPU-intensive algorithms
224 - #--without-internal do not build internal projects
225 - #--with-gbench ensure that Genome Workbench can be built
226 - #--without-gbench do not build Genome Workbench
227 - myconf+=(
228 - --with-dll
229 - --with-lfs
230 - --with-build-root="${S}"_build
231 - --without-suffix
232 - --without-hostspec
233 - --without-version
234 - --with-bincopy
235 - --without-strip
236 - --without-ccache
237 - --without-distcc
238 -# --with-ncbi-c
239 - --without-ctools
240 -# --with-sss
241 -# --with-sssutils
242 -# --with-sssdb
243 -# --with-included-sss
244 - --with-z="${EPREFIX}/usr"
245 - --with-bz2="${EPREFIX}/usr"
246 - --without-sybase
247 - --with-autodep
248 -# --with-3psw=std:netopt favor standard (system) builds of the above pkgs
249 - # --without-downloaded-vdb is not available in 12.0.0 release yet
250 - # preventing executing git to checkout during configure phase ncbi-vdb sources
251 - # resulting in 'checking for ncbi-vdb... no' and
252 - # '^PACKAGES:'
253 - # '^ disabled: ... VDB'
254 - # --without-downloaded-vdb
255 - $(use_with debug)
256 - $(use_with debug max-debug)
257 - $(use_with debug symbols)
258 - $(use_with static-libs static)
259 - $(use_with static static-exe)
260 - $(use_with threads mt)
261 - $(use_with prefix runpath "${EPREFIX}/usr/$(get_libdir)/${PN}")
262 - $(use_with test check)
263 - $(use_with pch)
264 - $(use_with lzo lzo "${EPREFIX}/usr")
265 - $(use_with pcre pcre "${EPREFIX}/usr")
266 - $(use_with gnutls gnutls "${EPREFIX}/usr")
267 - $(use_with mysql mysql "${EPREFIX}/usr")
268 - $(use_with muparser muparser "${EPREFIX}/usr")
269 - $(usex fltk --with-fltk="${EPREFIX}/usr" "")
270 - $(use_with opengl opengl "${EPREFIX}/usr")
271 - $(use_with mesa mesa "${EPREFIX}/usr")
272 - $(use_with opengl glut "${EPREFIX}/usr")
273 - $(use_with opengl glew "${EPREFIX}/usr")
274 - $(use_with opengl glew-mx)
275 - $(use_with wxwidgets wxwidgets "${EPREFIX}/usr")
276 - $(use_with wxwidgets wxwidgets-ucs)
277 - $(use_with freetype freetype "${EPREFIX}/usr")
278 - $(use_with fastcgi fastcgi "${EPREFIX}/usr")
279 - $(use_with berkdb bdb "${EPREFIX}/usr")
280 - $(usex odbc --with-odbc="${EPREFIX}/usr" "")
281 - $(use_with python python "${EPREFIX}/usr")
282 - $(use_with boost boost "${EPREFIX}/usr")
283 - $(use_with sqlite sqlite3 "${EPREFIX}/usr")
284 - $(use_with icu icu "${EPREFIX}/usr")
285 - $(use_with expat expat "${EPREFIX}/usr")
286 - $(use_with xml libxml "${EPREFIX}/usr")
287 - $(use_with xml libxslt "${EPREFIX}/usr")
288 - $(use_with xerces xerces "${EPREFIX}/usr")
289 - $(use_with hdf5 hdf5 "${EPREFIX}/usr")
290 - $(use_with xalan xalan "${EPREFIX}/usr")
291 -# $(use_with gif gif "${EPREFIX}/usr") # prevent compilation failure in "ncbi-tools++-12.0.0/src/util/image/image_io_gif.cpp:351: error: 'QuantizeBuffer' was not declared in this scope"
292 - --without-gif
293 - $(use_with jpeg jpeg "${EPREFIX}/usr")
294 - $(use_with tiff tiff "${EPREFIX}/usr")
295 - $(use_with png png "${EPREFIX}/usr")
296 - $(use_with xpm xpm "${EPREFIX}/usr")
297 - $(use_with curl curl "${EPREFIX}/usr")
298 -# $(use_with X x "${EPREFIX}/usr")
299 -# $(use_with X x) # there is no --with-x option
300 - )
301 -
302 - # http://www.ncbi.nlm.nih.gov/books/NBK7167/
303 - use test || myconf+=( --with-projects="${FILESDIR}"/disable-testsuite-compilation.txt )
304 -
305 - # TODO
306 - # copy optimization -O options from CXXFLAGS to DEF_FAST_FLAGS and pass that also to configure
307 - # otherwise your -O2 will be dropped in some subdirectories and replaced by e.g. -O9
308 -
309 - einfo "bash ./src/build-system/configure --srcdir="${S}" --prefix="${EPREFIX}/usr" --libdir=/usr/lib64 ${myconf[@]}"
310 -
311 -# ECONF_SOURCE="src/build-system" \
312 -# econf \
313 - bash \
314 - ./src/build-system/configure \
315 - --srcdir="${S}" \
316 - --prefix="${EPREFIX}/usr" \
317 - --libdir=/usr/lib64 \
318 - --with-flat-makefile \
319 - ${myconf[@]} || die
320 -#--without-debug \
321 -# --with-bin-release \
322 -# --with-bincopy \
323 -# --without-static \
324 -# --with-dll \
325 -# --with-mt \
326 -# --with-openmp \
327 -# --with-lfs \
328 -# --prefix="${ED}"/usr \
329 -# --libdir="${ED}"/usr/$(get_libdir)/"${PN}" \
330 -# ${myconf} LDFLAGS="-Wl,--no-as-needed" \
331 -# || die
332 -# econf ${myconf[@]}
333 -}
334 -
335 -src_compile() {
336 - ## all_r would ignore the --with-projects contents and build more
337 - ## emake all_r -C GCC*-Release*/build || die
338 - ## all_p with compile only selected/required components
339 - ##cd "${S}"_build &&\
340 - ##emake all_p -C GCC*-Release*/build || die "gcc-4.5.3 crashes at src/objects/valerr/ValidError.cpp:226:1: internal compiler error: Segmentation fault, right?"
341 - #emake all_p -C "${S}"_build/build
342 -
343 - #
344 - # Re: /usr/lib64/ncbi-tools++/libdbapi_driver.so: undefined reference to `ncbi::NcbiGetlineEOL(std::istream&, std::string&)'
345 - #
346 - # The next release should automatically address such underlinking, albeit
347 - # only in --with-flat-makefile configurations. For now (12.0.0), you'll need to
348 - # add or extend more DLL_LIB settings, to which end you may find the
349 - # resources at http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/depgraphs/
350 - # helpful. For instance,
351 - #
352 - # http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/depgraphs/dbapi_driver.html
353 - #
354 - # indicates that src/dbapi/driver/Makefile.dbapi_driver.lib should set
355 - #
356 - # DLL_LIB = xncbi
357 - #
358 - # (You can find the path to that makefile by examining
359 - # .../status/.dbapi_driver.dep or .../build/Makefile.flat.)
360 - #
361 - # To take full advantage of --with-flat-makefile, you'll need the following (instead of 'emake all_p -C "${S}"_build/build') and call configure --with-flat-makefile:
362 - emake -C "${S}"_build/build -f Makefile.flat
363 - #
364 - # >=gcc-5.3.0 is not supported, see also bug #579248#c8
365 - # configure: error: Do not know how to build MT-safe with compiler /usr/bin/x86_64-pc-linux-gnu-g++ 5.3.0
366 -}
367 -
368 -src_install() {
369 - rm -rvf "${S}"_build/lib/ncbi || die
370 - emake install prefix="${ED}/usr" libdir="${ED}/usr/$(get_libdir)/${PN}"
371 -
372 -# dobin "${S}"_build/bin/*
373 -# dolib.so "${S}"_build/lib/*so*
374 -# dolib.a "${S}"_build/lib/*.a
375 -# doheader "${S}"_build/inc/*
376 -
377 - # File collisions with sci-biology/ncbi-tools
378 - mv "${ED}"/usr/bin/asn2asn "${ED}"/usr/bin/asn2asn+
379 - mv "${ED}"/usr/bin/rpsblast "${ED}"/usr/bin/rpsblast+
380 - mv -f "${ED}"/usr/bin/test_regexp "${ED}"/usr/bin/test_regexp+ # drop the eventually mistakenly compiled binaries
381 - mv "${ED}"/usr/bin/vecscreen "${ED}"/usr/bin/vecscreen+
382 - mv "${ED}"/usr/bin/seedtop "${ED}"/usr/bin/seedtop+
383 -
384 - echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}" > ${S}/99${PN}
385 - doenvd "${S}/99${PN}"
386 -}
387 -
388 -pkg_postinst() {
389 - einfo 'Please run "source /etc/profile" before using this package in the current shell.'
390 - einfo 'Documentation is at http://www.ncbi.nlm.nih.gov/books/NBK7167/'
391 -}
392
393 diff --git a/sci-biology/ncbi-tools++/ncbi-tools++-18.0.0.ebuild b/sci-biology/ncbi-tools++/ncbi-tools++-18.0.0.ebuild
394 index 0aacd0511..5c0b619df 100644
395 --- a/sci-biology/ncbi-tools++/ncbi-tools++-18.0.0.ebuild
396 +++ b/sci-biology/ncbi-tools++/ncbi-tools++-18.0.0.ebuild
397 @@ -3,7 +3,7 @@
398
399 EAPI=7
400
401 -PYTHON_COMPAT=( python2_7 )
402 +PYTHON_COMPAT=( python3_{7,8,9} )
403
404 inherit eutils flag-o-matic multilib python-single-r1 toolchain-funcs