From 34dea8e38f88007799629d0a56b12dec480b1d21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Jun 2021 14:45:01 +0100 Subject: gentoo resync : 20.06.2021 --- sci-biology/ncbi-tools/Manifest | 2 +- sci-biology/ncbi-tools/ncbi-tools-2.2.26-r2.ebuild | 167 -------------------- sci-biology/ncbi-tools/ncbi-tools-2.2.26-r3.ebuild | 169 +++++++++++++++++++++ 3 files changed, 170 insertions(+), 168 deletions(-) delete mode 100644 sci-biology/ncbi-tools/ncbi-tools-2.2.26-r2.ebuild create mode 100644 sci-biology/ncbi-tools/ncbi-tools-2.2.26-r3.ebuild (limited to 'sci-biology/ncbi-tools') diff --git a/sci-biology/ncbi-tools/Manifest b/sci-biology/ncbi-tools/Manifest index 7bbabc7adc05..c32f0222f1b9 100644 --- a/sci-biology/ncbi-tools/Manifest +++ b/sci-biology/ncbi-tools/Manifest @@ -6,5 +6,5 @@ AUX ncbi-tools-extra_vib.patch 1393 BLAKE2B 3c9e0ffa614e7baccf87beea601561a8f6e1 AUX ncbi-tools-lop.patch 701 BLAKE2B 9df2fd3ba86bc9a4f52d3c1809b4d795392666c601aa607d2377129c42562a99087387eaa69d9e9ae07545ea91808902db65718ccf3d671ca88f7255119b1028 SHA512 706dfb29f9b1eff1fcc7dc1df1d533563d9d12ead5b930930121ad92a3e8c159d1d7cf30acd9f4462772e8f27e6dcf45cd6125f2fa077b3902145f6faf1c8352 AUX ncbirc 57 BLAKE2B 140c208cf1c7dbb6a204e58632c576e4edf0cd71d151b69f70839f1b06ae19db0d74d49179d2f0bc1320a40fabad49bed18a98a8bd2a75f6ecf068e647382c60 SHA512 0b9b68116b362ccc625623abf4e959abfb8555c31117216eefe3093fe2dd122c3ce508fe389c07a069d6f4322d889718e455de65dd3ab7d55a16d947ecb07cfd DIST ncbi-tools-2.2.26.tar.gz 68691452 BLAKE2B 21444227c6896c387f46a5490db1e4cf3ac437f94029c68f11ee3c5438bf2c34584d4b1b0ab18d3996f9c4e423a7e17fece510a96a1aa8be5dea6c5a2688f24c SHA512 da167216b56386b8c91a660e8ea0f3ac39b991d4519af9e02fc26aa16ed602eb3d9d874446f69a8f6840ae31a4d5a29da170e04e8a72b56f8c3ca038d1437014 -EBUILD ncbi-tools-2.2.26-r2.ebuild 4631 BLAKE2B 0a31d2096d49f16b8a5c4a2220fe55aa40557cc33b6a7fa5d4136f86fa0008d24e089b725fa6a12609475c3cbd58c7f379c65a77eab6c957fc811110d60f64f5 SHA512 7d9a4e2dfd3edaa28e36f8caf223b794fb37306270177bfa383f952b96799b177fd68f2688cd79fb81d85801d17d5f9e01faf3d7c8978d77372260b81d95d992 +EBUILD ncbi-tools-2.2.26-r3.ebuild 4660 BLAKE2B ef1a3d2e1751792d2726786309eab8b514c72391c2362ce4927659012c96a991531ff558916d69ab89745259bdaceb75a794cff850deec817a90a3c0c5752804 SHA512 7fbb34e5f2ff5f4615b3f41834643acb89e3f47378301f90a449bee6d8629be6c057c4a04c320c10cc2b867ab13b7eae187b73ff987abaf31e03729e2eca11c2 MISC metadata.xml 267 BLAKE2B 7cf386952842945148119de3263231db4d1046d5f54811f7e303ed8ec4d27cbc1960b99c92daf6f32e5b981c2fb9f50ec666be6193865d6e18541b7427a152a9 SHA512 91ab266d9ab24401bc0fec759c5b6cfcf44a3c5669fc31c7301d79770839bb5dfa0e155d949392ef06176b4a0b2c32b91b1b54b0027f972db61f0a5e54644403 diff --git a/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r2.ebuild b/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r2.ebuild deleted file mode 100644 index 2a3668a82a53..000000000000 --- a/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r2.ebuild +++ /dev/null @@ -1,167 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit epatch flag-o-matic prefix toolchain-funcs - -DESCRIPTION="Development toolkit and applications for computational biology, including BLAST" -HOMEPAGE="https://www.ncbi.nlm.nih.gov/" -SRC_URI="ftp://ftp.ncbi.nlm.nih.gov/blast/executables/release/${PV}/ncbi.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="public-domain" -KEYWORDS="~alpha amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="doc static-libs X" - -RDEPEND=" - app-shells/tcsh - dev-lang/perl - media-libs/libpng:0= - X? ( - media-libs/fontconfig - x11-libs/motif:0= - x11-libs/libICE - x11-libs/libX11 - x11-libs/libXft - x11-libs/libXmu - x11-libs/libXt - )" -DEPEND=" - ${RDEPEND} - virtual/pkgconfig -" - -S="${WORKDIR}/ncbi" - -EXTRA_VIB="asn2all asn2asn" - -pkg_setup() { - echo - ewarn 'Please note that the NCBI toolkit (and especially the X' - ewarn 'applications) are known to have compilation and run-time' - ewarn 'problems when compiled with agressive compilation flags. The' - ewarn '"-O3" flag is filtered by the ebuild on the x86 architecture if' - ewarn 'X support is enabled.' - echo -} - -src_prepare() { - epatch \ - "${FILESDIR}"/${PN}-extra_vib.patch \ - "${FILESDIR}"/${P}-bfr-overflow.patch \ - "${FILESDIR}"/${P}-format-security.patch \ - "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch - - if use ppc || use ppc64; then - epatch "${FILESDIR}"/${PN}-lop.patch - fi - - if ! use X; then - sed \ - -e "s:\#set HAVE_OGL=0:set HAVE_OGL=0:" \ - -e "s:\#set HAVE_MOTIF=0:set HAVE_MOTIF=0:" \ - -i "${S}"/make/makedis.csh || die - else - # X applications segfault on startup on x86 with -O3. - use x86 || replace-flags '-O3' '-O2' - fi - - # Apply user C flags... - cd "${S}"/platform - sed \ - -e "s:-O[s0-9]\?::g" \ - -e 's:-m\(cpu\|arch\)=[a-zA-Z0-9]*::g' \ - -e 's:-x[A-Z]*::g' \ - -e 's:-pipe::g' \ - -e "/NCBI_MAKE_SHELL *=/s:=.*:= \"${EPREFIX}/bin/sh\":g" \ - -e "/NCBI_AR *=/s:ar:$(tc-getAR):g" \ - -e "/NCBI_RANLIB *=/s:ranlib:$(tc-getRANLIB):g" \ - -e "/NCBI_CC *=/s:= [a-zA-Z0-9]* := $(tc-getCC) :g" \ - -e "/NCBI_OPTFLAG *=/s:$: ${CFLAGS}:g" \ - -e "/NCBI_LDFLAGS1 *=/s:$: ${CFLAGS} ${LDFLAGS}:g" \ - -e "/NCBI_OGLLIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --cflags gl glu 2>/dev/null):g" \ - -e "/OPENGL_LIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --libs gl glu 2>/dev/null):g" \ - -e "/NCBI_OGLLIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --libs gl glu 2>/dev/null):g" \ - -i * || die - - # We use dynamic libraries - sed -i -e "s/-Wl,-Bstatic//" *linux*.ncbi.mk || die - - sed \ - -re "s:/usr(/bin/.*sh):\1:g" \ - -e "s:(/bin/.*sh):${EPREFIX}\1:g" \ - -i $(find "${S}" -type f) || die -} - -src_compile() { - export EXTRA_VIB - cd "${WORKDIR}" - csh ncbi/make/makedis.csh || die - mkdir "${S}"/cgi "${S}"/real || die - mv "${S}"/bin/*.cgi "${S}"/cgi || die - mv "${S}"/bin/*.REAL "${S}"/real || die - cd "${S}"/demo - emake \ - -f ../make/makenet.unx \ - CC="$(tc-getCC) ${CFLAGS} -I../include -L../lib" \ - LDFLAGS="${LDFLAGS}" \ - spidey - cp spidey ../bin/ || die -} - -src_install() { - #sci-geosciences/cdat-lite - mv "${S}"/bin/cdscan "${S}"/bin/cdscan-ncbi || die - - dobin "${S}"/bin/* - - for i in ${EXTRA_VIB}; do - dobin "${S}"/build/${i} - done - use static-libs && dolib.a "${S}"/lib/*.a - mkdir -p "${ED}"/usr/include/ncbi - cp -RL "${S}"/include/* "${ED}"/usr/include/ncbi || \ - die "Failed to install headers." - - # TODO: wwwblast with webapps - #insinto /usr/share/ncbi/lib/cgi - #doins ${S}/cgi/* - #insinto /usr/share/ncbi/lib/real - #doins ${S}/real/* - - # Basic documentation - dodoc "${S}"/{README,VERSION,doc/{*.txt,README.*}} - newdoc "${S}"/doc/fa2htgs/README README.fa2htgs - newdoc "${S}"/config/README README.config - newdoc "${S}"/network/encrypt/README README.encrypt - newdoc "${S}"/network/nsclilib/readme README.nsclilib - newdoc "${S}"/sequin/README README.sequin - mv "${S}"/doc/man/fmerge{,-ncbi}.1 || die - doman "${S}"/doc/man/* - - # Hypertext user documentation - dohtml "${S}"/{README.htm,doc/{*.html,*.htm,*.gif}} - insinto /usr/share/doc/${PF}/html - doins -r "${S}"/doc/blast "${S}"/doc/images "${S}"/doc/seq_install - - # Developer documentation - if use doc; then - # Demo programs - mkdir "${ED}"/usr/share/ncbi - mv "${S}"/demo "${ED}"/usr/share/ncbi/demo || die - fi - - # Shared data (similarity matrices and such) and database directory. - insinto /usr/share/ncbi - doins -r "${S}"/data - dodir /usr/share/ncbi/formatdb - - # Default config file to set the path for shared data. - insinto /etc/ncbi - newins "${FILESDIR}"/ncbirc .ncbirc - eprefixify "${ED}"/etc/ncbi/.ncbirc - - # Env file to set the location of the config file and BLAST databases. - newenvd "${FILESDIR}"/21ncbi-r1 21ncbi -} diff --git a/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r3.ebuild b/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r3.ebuild new file mode 100644 index 000000000000..cec2f688b661 --- /dev/null +++ b/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r3.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit epatch flag-o-matic prefix toolchain-funcs + +DESCRIPTION="Development toolkit and applications for computational biology, including BLAST" +HOMEPAGE="https://www.ncbi.nlm.nih.gov/" +SRC_URI="ftp://ftp.ncbi.nlm.nih.gov/blast/executables/release/${PV}/ncbi.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="public-domain" +KEYWORDS="~alpha amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc static-libs X" + +RDEPEND=" + app-shells/tcsh + dev-lang/perl + media-libs/libpng:0= + virtual/glu + virtual/opengl + X? ( + media-libs/fontconfig + x11-libs/motif:0= + x11-libs/libICE + x11-libs/libX11 + x11-libs/libXft + x11-libs/libXmu + x11-libs/libXt + )" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +S="${WORKDIR}/ncbi" + +EXTRA_VIB="asn2all asn2asn" + +pkg_setup() { + echo + ewarn 'Please note that the NCBI toolkit (and especially the X' + ewarn 'applications) are known to have compilation and run-time' + ewarn 'problems when compiled with agressive compilation flags. The' + ewarn '"-O3" flag is filtered by the ebuild on the x86 architecture if' + ewarn 'X support is enabled.' + echo +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-extra_vib.patch \ + "${FILESDIR}"/${P}-bfr-overflow.patch \ + "${FILESDIR}"/${P}-format-security.patch \ + "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch + + if use ppc || use ppc64; then + epatch "${FILESDIR}"/${PN}-lop.patch + fi + + if ! use X; then + sed \ + -e "s:\#set HAVE_OGL=0:set HAVE_OGL=0:" \ + -e "s:\#set HAVE_MOTIF=0:set HAVE_MOTIF=0:" \ + -i "${S}"/make/makedis.csh || die + else + # X applications segfault on startup on x86 with -O3. + use x86 || replace-flags '-O3' '-O2' + fi + + # Apply user C flags... + cd "${S}"/platform + sed \ + -e "s:-O[s0-9]\?::g" \ + -e 's:-m\(cpu\|arch\)=[a-zA-Z0-9]*::g' \ + -e 's:-x[A-Z]*::g' \ + -e 's:-pipe::g' \ + -e "/NCBI_MAKE_SHELL *=/s:=.*:= \"${EPREFIX}/bin/sh\":g" \ + -e "/NCBI_AR *=/s:ar:$(tc-getAR):g" \ + -e "/NCBI_RANLIB *=/s:ranlib:$(tc-getRANLIB):g" \ + -e "/NCBI_CC *=/s:= [a-zA-Z0-9]* := $(tc-getCC) :g" \ + -e "/NCBI_OPTFLAG *=/s:$: ${CFLAGS}:g" \ + -e "/NCBI_LDFLAGS1 *=/s:$: ${CFLAGS} ${LDFLAGS}:g" \ + -e "/NCBI_OGLLIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --cflags gl glu 2>/dev/null):g" \ + -e "/OPENGL_LIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --libs gl glu 2>/dev/null):g" \ + -e "/NCBI_OGLLIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --libs gl glu 2>/dev/null):g" \ + -i * || die + + # We use dynamic libraries + sed -i -e "s/-Wl,-Bstatic//" *linux*.ncbi.mk || die + + sed \ + -re "s:/usr(/bin/.*sh):\1:g" \ + -e "s:(/bin/.*sh):${EPREFIX}\1:g" \ + -i $(find "${S}" -type f) || die +} + +src_compile() { + export EXTRA_VIB + cd "${WORKDIR}" + csh ncbi/make/makedis.csh || die + mkdir "${S}"/cgi "${S}"/real || die + mv "${S}"/bin/*.cgi "${S}"/cgi || die + mv "${S}"/bin/*.REAL "${S}"/real || die + cd "${S}"/demo + emake \ + -f ../make/makenet.unx \ + CC="$(tc-getCC) ${CFLAGS} -I../include -L../lib" \ + LDFLAGS="${LDFLAGS}" \ + spidey + cp spidey ../bin/ || die +} + +src_install() { + #sci-geosciences/cdat-lite + mv "${S}"/bin/cdscan "${S}"/bin/cdscan-ncbi || die + + dobin "${S}"/bin/* + + for i in ${EXTRA_VIB}; do + dobin "${S}"/build/${i} + done + use static-libs && dolib.a "${S}"/lib/*.a + mkdir -p "${ED}"/usr/include/ncbi + cp -RL "${S}"/include/* "${ED}"/usr/include/ncbi || \ + die "Failed to install headers." + + # TODO: wwwblast with webapps + #insinto /usr/share/ncbi/lib/cgi + #doins ${S}/cgi/* + #insinto /usr/share/ncbi/lib/real + #doins ${S}/real/* + + # Basic documentation + dodoc "${S}"/{README,VERSION,doc/{*.txt,README.*}} + newdoc "${S}"/doc/fa2htgs/README README.fa2htgs + newdoc "${S}"/config/README README.config + newdoc "${S}"/network/encrypt/README README.encrypt + newdoc "${S}"/network/nsclilib/readme README.nsclilib + newdoc "${S}"/sequin/README README.sequin + mv "${S}"/doc/man/fmerge{,-ncbi}.1 || die + doman "${S}"/doc/man/* + + # Hypertext user documentation + dohtml "${S}"/{README.htm,doc/{*.html,*.htm,*.gif}} + insinto /usr/share/doc/${PF}/html + doins -r "${S}"/doc/blast "${S}"/doc/images "${S}"/doc/seq_install + + # Developer documentation + if use doc; then + # Demo programs + mkdir "${ED}"/usr/share/ncbi + mv "${S}"/demo "${ED}"/usr/share/ncbi/demo || die + fi + + # Shared data (similarity matrices and such) and database directory. + insinto /usr/share/ncbi + doins -r "${S}"/data + dodir /usr/share/ncbi/formatdb + + # Default config file to set the path for shared data. + insinto /etc/ncbi + newins "${FILESDIR}"/ncbirc .ncbirc + eprefixify "${ED}"/etc/ncbi/.ncbirc + + # Env file to set the location of the config file and BLAST databases. + newenvd "${FILESDIR}"/21ncbi-r1 21ncbi +} -- cgit v1.2.3