diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2005-01-19 00:16:44 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2005-01-19 00:16:44 +0000 |
commit | c7aba63337ef1d216e686b73964624c91e226347 (patch) | |
tree | 00ca6bdfc6872b06ec7716b80f1c4769157c9ccb /sci-biology/ncbi-tools | |
parent | Add SCSI/RAID corruption fix, NFS super-io security fix, NFSACL sunrpc securi... (diff) | |
download | historical-c7aba63337ef1d216e686b73964624c91e226347.tar.gz historical-c7aba63337ef1d216e686b73964624c91e226347.tar.bz2 historical-c7aba63337ef1d216e686b73964624c91e226347.zip |
New version
Package-Manager: portage-2.0.51-r13
Diffstat (limited to 'sci-biology/ncbi-tools')
-rw-r--r-- | sci-biology/ncbi-tools/ChangeLog | 8 | ||||
-rw-r--r-- | sci-biology/ncbi-tools/Manifest | 4 | ||||
-rw-r--r-- | sci-biology/ncbi-tools/files/digest-ncbi-tools-20041020 | 2 | ||||
-rw-r--r-- | sci-biology/ncbi-tools/ncbi-tools-20041020.ebuild | 165 |
4 files changed, 177 insertions, 2 deletions
diff --git a/sci-biology/ncbi-tools/ChangeLog b/sci-biology/ncbi-tools/ChangeLog index 9b8ba3ade321..bd3ddbd3feef 100644 --- a/sci-biology/ncbi-tools/ChangeLog +++ b/sci-biology/ncbi-tools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-biology/ncbi-tools # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v 1.4 2005/01/03 02:10:22 ribosome Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v 1.5 2005/01/19 00:16:44 ribosome Exp $ + +*ncbi-tools-20041020 (18 Jan 2005) + + 18 Jan 2005; Olivier Fisette <ribosome@gentoo.org> + +ncbi-tools-20041020.ebuild: + New version. 02 Jan 2005; Olivier Fisette <ribosome@gentoo.org> : Added to x86. Use toolchain-funcs rather than gcc eclass. diff --git a/sci-biology/ncbi-tools/Manifest b/sci-biology/ncbi-tools/Manifest index 325aeed3c156..e2966f1d1385 100644 --- a/sci-biology/ncbi-tools/Manifest +++ b/sci-biology/ncbi-tools/Manifest @@ -1,6 +1,8 @@ +MD5 52d088f2cc0348c255592c64225edbe7 ncbi-tools-20041020.ebuild 5784 MD5 dd68eeb2bba477966094fa5262d31bb2 ncbi-tools-20040616.ebuild 5783 -MD5 56025b6de55460aa49adeeda32d86cf8 ChangeLog 4361 +MD5 925e80381abdba82df43a942366f1e7b ChangeLog 4497 MD5 e8b4df3df76800c376905734d8043cfa metadata.xml 216 MD5 23986a001c85eb8c2c319aacfa9cb40c files/ncbirc 33 MD5 6e3486cc782a091aa528a3e3f01192fc files/digest-ncbi-tools-20040616 144 +MD5 6fa8c1b5254e9c217c399c949bc75f45 files/digest-ncbi-tools-20041020 144 MD5 756db6700c84d3b303bfc3d0a28871de files/21ncbi 166 diff --git a/sci-biology/ncbi-tools/files/digest-ncbi-tools-20041020 b/sci-biology/ncbi-tools/files/digest-ncbi-tools-20041020 new file mode 100644 index 000000000000..de3d6e86a474 --- /dev/null +++ b/sci-biology/ncbi-tools/files/digest-ncbi-tools-20041020 @@ -0,0 +1,2 @@ +MD5 3f82bce2a3ce549f055ff989a4b825ed ncbi-tools-20041020.tar.gz 13867811 +MD5 c0860f787d95623b72fba58dbf1b60c5 ncbi-tools-sdk-doc.tar.bz2 263568 diff --git a/sci-biology/ncbi-tools/ncbi-tools-20041020.ebuild b/sci-biology/ncbi-tools/ncbi-tools-20041020.ebuild new file mode 100644 index 000000000000..f6a3ec44fe93 --- /dev/null +++ b/sci-biology/ncbi-tools/ncbi-tools-20041020.ebuild @@ -0,0 +1,165 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ncbi-tools-20041020.ebuild,v 1.1 2005/01/19 00:16:44 ribosome Exp $ + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Development toolkit and applications (BLAST, entrez, ddv, udv, sequin...) 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 )" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64 ~ppc-macos" +IUSE="doc X" + +DEPEND="app-shells/tcsh + dev-lang/perl + media-libs/libpng + X? ( virtual/x11 + x11-libs/openmotif + )" + +S=${WORKDIR}/ncbi + +pkg_setup() { + echo + ewarn 'It is important to note that the NCBI tools (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. If you experience difficulties with this' + ewarn 'package and use agressive "CFLAGS", lower the "CFLAGS" and try' + ewarn 'to install the NCBI tools again.' + echo +} + +src_unpack() { + unpack ${A} + + if ! use X; then + cd ${S}/make + sed -e "s:\#set HAVE_OGL=0:set HAVE_OGL=0:" -i makedis.csh + sed -e "s:\#set HAVE_MOTIF=0:set HAVE_MOTIF=0:" -i makedis.csh + 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 -i -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" linux-x86.ncbi.mk + sed -i -e "s/NCBI_LDFLAGS1 = -O3 -mcpu=pentiumpro/NCBI_LDFLAGS1 = ${CFLAGS}/" linux-x86.ncbi.mk + sed -i -e "s/NCBI_OPTFLAG = -O3 -mcpu=pentiumpro/NCBI_OPTFLAG = ${CFLAGS}/" linux-x86.ncbi.mk + # ... on alpha... + sed -i -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" linux-alpha.ncbi.mk + sed -i -e "s/NCBI_LDFLAGS1 = -O3 -mieee/NCBI_LDFLAGS1 = -mieee ${CFLAGS}/" linux-alpha.ncbi.mk + sed -i -e "s/NCBI_OPTFLAG = -O3 -mieee/NCBI_OPTFLAG = -mieee ${CFLAGS}/" linux-alpha.ncbi.mk + # ... on hppa... + sed -i -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" hppalinux.ncbi.mk + sed -i -e "s/NCBI_LDFLAGS1 = -O2/NCBI_LDFLAGS1 = ${CFLAGS}/" hppalinux.ncbi.mk + sed -i -e "s/NCBI_OPTFLAG = -O2/NCBI_OPTFLAG = ${CFLAGS}/" hppalinux.ncbi.mk + # ... on ppc... + sed -i -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" ppclinux.ncbi.mk + sed -i -e "s/NCBI_LDFLAGS1 = -O2/NCBI_LDFLAGS1 = ${CFLAGS}/" ppclinux.ncbi.mk + sed -i -e "s/NCBI_OPTFLAG = -O2/NCBI_OPTFLAG = ${CFLAGS}/" ppclinux.ncbi.mk + # ... on generic Linux. + sed -i -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" linux.ncbi.mk + sed -i -e "s/NCBI_LDFLAGS1 = -O3/NCBI_LDFLAGS1 = ${CFLAGS}/" linux.ncbi.mk + sed -i -e "s/NCBI_OPTFLAG = -O3/NCBI_OPTFLAG = ${CFLAGS}/" linux.ncbi.mk + + # 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 + # ... on alpha... + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux-alpha.ncbi.mk + # ... on hppa... + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" hppalinux.ncbi.mk + # ... on ppc... + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" ppclinux.ncbi.mk + # ... on generic Linux. + sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux.ncbi.mk +} + +src_compile() { + cd ${WORKDIR} + ncbi/make/makedis.csh || die + mkdir ${S}/cgi + mkdir ${S}/real + mv ${S}/bin/*.cgi ${S}/cgi + mv ${S}/bin/*.REAL ${S}/real +} + +src_install() { + dobin ${S}/bin/* + dolib ${S}/lib/* + mkdir -p ${D}/usr/include/ncbi + cp -RL ${S}/include/* ${D}/usr/include/ncbi + + # 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}} + 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 + doman ${S}/doc/man/* + + # Hypertext user documentation + dohtml ${S}/{README.html,doc/{*.html *.gif}} + insinto /usr/share/doc/${PF}/html/blast + doins ${S}/doc/blast/* + + # Developer documentation + if use doc; then + # "socks" documentation + SOCKS="network/socks/socks.cstc.4.2" + insinto /usr/share/doc/${PF}/socks + doins ${S}/${SOCKS}/{CHANGES,How_to_SOCKSify,README.{1st,4.{0,1,2},DK},What_are_the_risks,What_SOCKS_expects} + newins ${S}/${SOCKS}/libident/README README.libident + doins ${S}/${SOCKS}/sockd/sockd.conf.sample + doman ${S}/${SOCKS}/{doc/*.{1,5,8},libident/ident.3} + # "regexp" documentation + insinto /usr/share/doc/${PF}/regexp + doins ${S}/regexp/doc/{AUTHORS,NEWS,README,Tech.Notes,*.txt} + insinto /usr/share/doc/${PF}/regexp/html + doins ${S}/regexp/doc/*.html + doman ${S}/regexp/doc/*.{1,3} + # Hypertext SDK documentation + insinto /usr/share/doc/${PF}/html/sdk + doins ${WORKDIR}/${PN}-sdk-doc/* + # Demo programs + mkdir ${D}/usr/share/ncbi + mv ${S}/demo ${D}/usr/share/ncbi/demo + mv ${S}/regexp/demo ${D}/usr/share/ncbi/demo/regexp + mv ${S}/regexp/test ${D}/usr/share/ncbi/demo/regexp/test + fi + + # Shared data (similarity matrices and such) and database directory. + insinto /usr/share/ncbi/data + doins ${S}/data/* + dodir /usr/share/ncbi/formatdb + + # Default config file to set the path for shared data. + insinto /etc/ncbi + newins ${FILESDIR}/ncbirc .ncbirc + + # Env file to set the location of the config file and BLAST databases. + dodir /etc/env.d + insinto /etc/env.d + doins ${FILESDIR}/21ncbi +} |