diff options
-rw-r--r-- | sci-biology/ncbi-tools/ChangeLog | 7 | ||||
-rw-r--r-- | sci-biology/ncbi-tools/Manifest | 14 | ||||
-rw-r--r-- | sci-biology/ncbi-tools/ncbi-tools-20080302.ebuild | 218 |
3 files changed, 227 insertions, 12 deletions
diff --git a/sci-biology/ncbi-tools/ChangeLog b/sci-biology/ncbi-tools/ChangeLog index 8cbe72babd70..d71a45a9227a 100644 --- a/sci-biology/ncbi-tools/ChangeLog +++ b/sci-biology/ncbi-tools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-biology/ncbi-tools # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v 1.60 2008/04/08 21:35:34 dberkholz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v 1.61 2008/04/15 01:21:30 je_fro Exp $ + +*ncbi-tools-20080302 (15 Apr 2008) + + 15 Apr 2008; Jeff Gardner <je_fro@gentoo.org> +ncbi-tools-20080302.ebuild: + Latest release from NCBI. 08 Apr 2008; Donnie Berkholz <dberkholz@gentoo.org>; Manifest: Fix manifest, connection dropped mid-commit. diff --git a/sci-biology/ncbi-tools/Manifest b/sci-biology/ncbi-tools/Manifest index 178517f68c8c..e4e9e624a3fd 100644 --- a/sci-biology/ncbi-tools/Manifest +++ b/sci-biology/ncbi-tools/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 21ncbi-r1 232 RMD160 ba65fe937c9a29f4cc185d99db18522343bbb28b SHA1 5674f379f7a70e71394bca272fedd72a1622a7da SHA256 55d5d53c177200d4a9369102d3e2d8ef232f09dd8559aab6c6e4d2173e8bb411 AUX ncbi-tools-asn2all.patch 1190 RMD160 3aaccc677bd8b9bad6c6424f5080c71cdac553d7 SHA1 ae22c77cfcd7d416a89ea3fe1e0331264473669d SHA256 e2fd71fdaa07b9e1c9cf646b2d3aa02c2ec822d41dcd45cadfced4164f458bed AUX ncbi-tools-extra_vib.patch 1393 RMD160 05e2dcf17b6af9475625eb0aa0be6bc96071a923 SHA1 bb92aeada6786d4573f9ad98e3d50b4a4201ba10 SHA256 b7639937d59c8bd636c6b02a65a4469d188645b9a10fffd0c8680fb861a7a8e1 @@ -11,17 +8,12 @@ DIST ncbi-tools-20050605.tar.gz 14458684 RMD160 82d3c008e9b1741e8ac286d66c1ad686 DIST ncbi-tools-20060507.tar.gz 15396356 RMD160 56114d25ace0338d1ef5c8c2a3cc36ce740a12e3 SHA1 64269236b09fba29d4afe0cd8a3ac6a47fee5218 SHA256 b3cac971d552b2ad86ee7d82e77e6a425b98b33a7b6f1c77062aff133e34d129 DIST ncbi-tools-20061015.tar.gz 15772715 RMD160 034124b92d4320be31b2bacbb0966270cbfa63b3 SHA1 4e7990e9fed1cc507d10a1b5285e51dc183d318a SHA256 0833f4b4f0389f75cdc0754329b3b8c1420c5b9abd7f3d8e352b4c134b3446de DIST ncbi-tools-20070826.tar.gz 17076175 RMD160 00daadd503bf729c15ada0008e305492a076fe15 SHA1 5e61f4f73ef52d145d0df86bb00f03f2db833ee9 SHA256 58be3bb76c4a112217c414fd5d05de58a893cfd6ace3856629616a97a61ee4c8 +DIST ncbi-tools-20080302.tar.gz 17294669 RMD160 e269bcadc9e498163252e348a314bab8d0ece8f6 SHA1 d91a66bafac62dd07cc2e524874492388e5a780d SHA256 93a30ec0a6e408858c6364039a4eb240d9fadaf8ce670a14151e03c5169a12c1 DIST ncbi-tools-sdk-doc.tar.bz2 263568 RMD160 f9c4d610c2535ec2b4afae6ecef065fd5746910b SHA1 6fd259b1fc75684db43bd817fc4720e92f56e81c SHA256 352ec02e527f24d03bafb7d40b31c98e0a6f931bed34c4933c5f7153b8034cb2 EBUILD ncbi-tools-20050605.ebuild 5749 RMD160 b44f50468496fd8091515b899d9bc5971db646a3 SHA1 673c0f66d0d2a46b86c5dbcfd2c74d751f531450 SHA256 ff797954513ff7e293ab3519642e0864b781233a7bf15fe5eb98345c8a3c02f5 EBUILD ncbi-tools-20060507.ebuild 6406 RMD160 0d52953dc8cff30b92a68fe9a726f19297f7d72d SHA1 4101fa84b7ab60c58ffb42f0b05bd895f5ab6937 SHA256 2653da742470eb3cc79541cdd745af2f858bbd0356ce141b88cc3e1dd07ad9a6 EBUILD ncbi-tools-20061015-r1.ebuild 6495 RMD160 24ab84b6a4bce25a0571c78a5489d5725e81a01b SHA1 e409498fc64031e0208fb5299d377217670a0759 SHA256 135d19e95452b5662a9751f4101ef17a66a618c3031894bb2aa8f761d64a85ad EBUILD ncbi-tools-20070826.ebuild 7123 RMD160 331d2e7cac864d2e6582c9beaa7ae1af08da548c SHA1 34e83e093b7cdc49950732fad52664b3a1896593 SHA256 fbefd6e0e7f4f3c96d9f162cdee8e43a1ba3e9ed40c6eb19303509b836cb0241 -MISC ChangeLog 13245 RMD160 e23a7a54955741bcad6e979f48010994fd1de68d SHA1 cf73a8ae5967a75f55b9d6f0e93de7918391f419 SHA256 ed687f4e71338204ca79af366b8a56adda66e9ac919b0fb67b44f33f0088417a +EBUILD ncbi-tools-20080302.ebuild 7120 RMD160 b77bd75ba37bd3e6386624101289cf97b4bfbbee SHA1 9eefb56598fc1b24f49667cf528b6eb12d94b7a1 SHA256 0b256f5ab7064574a9affee45c6966e9c273bbe2c36e8d21605987bcfd2bd0fa +MISC ChangeLog 13384 RMD160 e241ea1b0049add5636e72ef18162b3da4ae447a SHA1 0fe45ca85b856528eb36d8f016b49fdf1bbfeef4 SHA256 ec517a32a120a93f9623b6c4b264241dea0de14cc8448c90e2118ecaf426f98a MISC metadata.xml 262 RMD160 4eabcbcb990d4d5e3b34db8c27bcd2c0cfcf7501 SHA1 3c024ca60a2b93ed0e0311f6b05ef5ef117bee31 SHA256 89af818a993faf14a4a87e2f254943420156c2a317c385480a9533ba682b650f ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.7 (GNU/Linux) - -iD8DBQFH++blXVaO67S1rtsRAtyLAJ9o3xZugvFtxF0IjOS1NgXrLcHQPACfSACq -ew1dOyCE2f2bG0AmOrsF0sY= -=JTrY ------END PGP SIGNATURE----- diff --git a/sci-biology/ncbi-tools/ncbi-tools-20080302.ebuild b/sci-biology/ncbi-tools/ncbi-tools-20080302.ebuild new file mode 100644 index 000000000000..e0b5b49b6a10 --- /dev/null +++ b/sci-biology/ncbi-tools/ncbi-tools-20080302.ebuild @@ -0,0 +1,218 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ncbi-tools-20080302.ebuild,v 1.1 2008/04/15 01:21:30 je_fro Exp $ + +inherit flag-o-matic toolchain-funcs eutils autotools + +DESCRIPTION="Development toolkit and applications for computational biology" +LICENSE="public-domain" +HOMEPAGE="http://www.ncbi.nlm.nih.gov/" +SRC_URI="mirror://gentoo/${P}.tar.gz + doc? ( mirror://gentoo/${PN}-sdk-doc.tar.bz2 )" + +# mpi? ( mirror://gentoo/mpiblast-20070826.tar.gz ) + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" + +# IUSE="doc mpi X" +# mpiblast 1.5.0beta1 doesn't compile as advertised with this ncbi release. +# Currently seeking a fix. + +IUSE="doc X" + +DEPEND="app-shells/tcsh + dev-lang/perl + media-libs/libpng + sys-devel/pmake + X? ( virtual/motif )" + +# mpi? ( virtual/mpi ) + +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_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-extra_vib.patch + + if use ppc64; then + epatch "${FILESDIR}"/${PN}-lop.patch + fi + +# if use mpi; then +# cd "${WORKDIR}" +# epatch "${WORKDIR}"/mpiblast/ncbi_Mar2007_evalue.patch +# fi + + if ! use X; then + cd "${S}"/make + sed -e "s:\#set HAVE_OGL=0:set HAVE_OGL=0:" \ + -e "s:\#set HAVE_MOTIF=0:set HAVE_MOTIF=0:" \ + -i makedis.csh || die + else + if use x86; then + # X applications segfault on startup on x86 with -O3. + replace-flags '-O3' '-O2' + fi + fi + + # Apply user C flags... + cd "${S}"/platform + # ... on x86... + sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \ + -e "s/NCBI_LDFLAGS1 = -O3 -mcpu=pentium4/NCBI_LDFLAGS1 = ${CFLAGS}/" \ + -e "s/NCBI_OPTFLAG = -O3 -mcpu=pentium4/NCBI_OPTFLAG = ${CFLAGS}/" \ + -i linux-x86.ncbi.mk || die + # ... on alpha... + sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \ + -e "s/NCBI_LDFLAGS1 = -O3 -mieee/NCBI_LDFLAGS1 = -mieee ${CFLAGS}/" \ + -e "s/NCBI_OPTFLAG = -O3 -mieee/NCBI_OPTFLAG = -mieee ${CFLAGS}/" \ + -i linux-alpha.ncbi.mk || die + # ... on hppa... + sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \ + -e "s/NCBI_LDFLAGS1 = -O2/NCBI_LDFLAGS1 = ${CFLAGS}/" \ + -e "s/NCBI_OPTFLAG = -O2/NCBI_OPTFLAG = ${CFLAGS}/" \ + -i hppalinux.ncbi.mk || die + # ... on ppc... + sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \ + -e "s/NCBI_LDFLAGS1 = -O2/NCBI_LDFLAGS1 = ${CFLAGS}/" \ + -e "s/NCBI_OPTFLAG = -O2/NCBI_OPTFLAG = ${CFLAGS}/" \ + -i ppclinux.ncbi.mk || die + # ... on generic 64-bit Linux... + sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \ + -e "s/NCBI_LDFLAGS1 = -O3/NCBI_LDFLAGS1 = ${CFLAGS}/" \ + -e "s/NCBI_OPTFLAG = -O3/NCBI_OPTFLAG = ${CFLAGS}/" \ + -i linux64.ncbi.mk || die + # ... on generic Linux. + sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \ + -e "s/NCBI_LDFLAGS1 = -O3/NCBI_LDFLAGS1 = ${CFLAGS}/" \ + -e "s/NCBI_OPTFLAG = -O3/NCBI_OPTFLAG = ${CFLAGS}/" \ + -i linux.ncbi.mk || die + + # Put in our MAKEOPTS (doesn't work). + # sed -e "s:make \$MFLG:make ${MAKEOPTS}:" -i ncbi/make/makedis.csh + + # Set C compiler... + # ... on x86... + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux-x86.ncbi.mk || die + # ... on alpha... + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux-alpha.ncbi.mk || die + # ... on hppa... + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" hppalinux.ncbi.mk || die + # ... on ppc... + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" ppclinux.ncbi.mk || die + # ... on generic 64-bit Linux... + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux64.ncbi.mk || die + # ... on generic Linux. + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux.ncbi.mk || die + + # We use dynamic libraries + sed -i -e "s/-Wl,-Bstatic//" *linux*.ncbi.mk || die + + # GNU make 3.81 is confused by those nightmarish Makefiles, so we use pmake + # instead. The right solution would be to fix the Makefiles. (Be my guest.) + cd "${S}"/make + sed -i -e "s%CMD='make%CMD='/usr/bin/pmake%" makedis.csh || die \ + "Failed to replace make by pmake." +} + +src_compile() { + export EXTRA_VIB + cd "${WORKDIR}" + ncbi/make/makedis.csh || die + mkdir "${S}"/cgi + mkdir "${S}"/real + mv "${S}"/bin/*.cgi "${S}"/cgi || die + mv "${S}"/bin/*.REAL "${S}"/real || die + +# mpiblast fails to compile... perhaps mpiblast2 contain a fix +# if use mpi; then +# cd "${WORKDIR}"/mpiblast +# AM_OPT="-a" +# eautoreconf +# econf --with-ncbi="${WORKDIR}"/ncbi --with-mpi=/usr || die +# emake || die +# fi +} + +src_install() { + dobin "${S}"/bin/* || die "Failed to install binaries." + for i in ${EXTRA_VIB}; do + dobin "${S}"/build/${i} || die "Failed to install binaries." + done + dolib "${S}"/lib/* || die "Failed to install libraries." + mkdir -p "${D}"/usr/include/ncbi + cp -RL "${S}"/include/* "${D}"/usr/include/ncbi || \ + die "Failed to install headers." + +# if use mpi; then +# cd "${WORKDIR}"/mpiblast +# make install DESTDIR="${D}" || die "Failed to install MPI blast." +# fi + + # TODO: Web apps + #insinto /usr/share/ncbi/lib/cgi + #doins ${S}/cgi/* + #insinto /usr/share/ncbi/lib/real + #doins ${S}/real/* + # TODO: Add support for wwwblast. + + # Basic documentation + dodoc "${S}"/{README,VERSION,doc/{*.txt,README.asn2xml}} || \ + die "Failed to install basic documentation." + newdoc "${S}"/doc/fa2htgs/README README.fa2htgs || \ + die "Failed renaming fa2htgs documentation." + newdoc "${S}"/config/README README.config || \ + die "Failed renaming config documentation." + newdoc "${S}"/network/encrypt/README README.encrypt || \ + die "Failed renaming encrypt documentation." + newdoc "${S}"/network/nsclilib/readme README.nsclilib || \ + die "Failed renaming nsclilib documentation." + newdoc "${S}"/sequin/README README.sequin || \ + die "Failed renaming sequin documentation." + doman "${S}"/doc/man/* || \ + die "Failed to install man pages." + + # Hypertext user documentation + dohtml "${S}"/{README.htm,doc/{*.html,*.gif}} || \ + die "Failed to install HTML documentation." + insinto /usr/share/doc/${PF}/html/blast + doins "${S}"/doc/blast/* || die "Failed to install blast HTML documentation." + + # Developer documentation + if use doc; then + # Hypertext SDK documentation + insinto /usr/share/doc/${PF}/html/sdk + doins "${WORKDIR}"/${PN}-sdk-doc/* || die + + # Demo programs + mkdir "${D}"/usr/share/ncbi + mv "${S}"/demo "${D}"/usr/share/ncbi/demo || die + fi + + # Shared data (similarity matrices and such) and database directory. + insinto /usr/share/ncbi/data + doins "${S}"/data/* || die "Failed to install shared data." + dodir /usr/share/ncbi/formatdb || die + + # Default config file to set the path for shared data. + insinto /etc/ncbi + newins "${FILESDIR}"/ncbirc .ncbirc || die "Failed to install config file." + + # Env file to set the location of the config file and BLAST databases. + newenvd "${FILESDIR}"/21ncbi-r1 21ncbi || die "Failed to install env file." +} |