# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python2_7 ) inherit eutils flag-o-matic multilib python-single-r1 toolchain-funcs MY_TAG="Jun_15_2010" MY_Y="${MY_TAG/*_/}" MY_PV="12_0_0" MY_P="ncbi_cxx--${MY_PV}" #ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools++/ARCHIVE/9_0_0/ncbi_cxx--9_0_0.tar.gz # for example sci-biology/ncbi-tools++-12.0.0 contains blastn-2.2.28+ DESCRIPTION="NCBI C++ Toolkit, including NCBI BLAST+" HOMEPAGE="http://www.ncbi.nlm.nih.gov/books/bv.fcgi?rid=toolkit" SRC_URI=" ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools++/ARCHIVE/${MY_PV}/ncbi_cxx--${MY_PV}.tar.gz" # http://dev.gentoo.org/~jlec/distfiles/${PN}-${PV#0.}-asneeded.patch.xz" # should also install ftp://ftp.ncbi.nlm.nih.gov/blast/db/taxdb.tar.gz # see http://www.biostars.org/p/76551/ and http://blastedbio.blogspot.cz/2012/05/blast-tabular-missing-descriptions.html LICENSE="public-domain" SLOT="0" IUSE=" debug static-libs static threads pch test wxwidgets odbc berkdb boost bzip2 cppunit curl expat fastcgi fltk freetype gif glut gnutls hdf5 icu jpeg lzo mesa mysql muparser opengl pcre png python sablotron sqlite tiff xerces xalan xml xpm xslt X" #KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" KEYWORDS="~amd64" REQUIRED_USE="${PYTHON_REQUIRED_USE}" # sys-libs/db should be compiled with USE=cxx # dev-libs/boost must have Boost.Test suite, probably dev-libs/boost[test] then? DEPEND=" =gcc-5.3.0 is not supported, see also bug #579248#c8 # configure: error: Do not know how to build MT-safe with compiler /usr/bin/x86_64-pc-linux-gnu-g++ 5.3.0 } src_install() { rm -rvf "${S}"_build/lib/ncbi || die emake install prefix="${ED}/usr" libdir="${ED}/usr/$(get_libdir)/${PN}" # dobin "${S}"_build/bin/* # dolib.so "${S}"_build/lib/*so* # dolib.a "${S}"_build/lib/*.a # doheader "${S}"_build/inc/* # File collisions with sci-biology/ncbi-tools mv "${ED}"/usr/bin/asn2asn "${ED}"/usr/bin/asn2asn+ mv "${ED}"/usr/bin/rpsblast "${ED}"/usr/bin/rpsblast+ mv -f "${ED}"/usr/bin/test_regexp "${ED}"/usr/bin/test_regexp+ # drop the eventually mistakenly compiled binaries mv "${ED}"/usr/bin/vecscreen "${ED}"/usr/bin/vecscreen+ mv "${ED}"/usr/bin/seedtop "${ED}"/usr/bin/seedtop+ echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}" > ${S}/99${PN} doenvd "${S}/99${PN}" } pkg_postinst() { einfo 'Please run "source /etc/profile" before using this package in the current shell.' einfo 'Documentation is at http://www.ncbi.nlm.nih.gov/books/NBK7167/' }