New ebuild fixes bug #65941.
authorOlivier Fisette <ribosome@gentoo.org>
Mon, 4 Oct 2004 01:56:33 +0000 (01:56 +0000)
committerOlivier Fisette <ribosome@gentoo.org>
Mon, 4 Oct 2004 01:56:33 +0000 (01:56 +0000)
app-sci/ncbi-tools/ChangeLog
app-sci/ncbi-tools/Manifest
app-sci/ncbi-tools/files/21ncbi
app-sci/ncbi-tools/files/digest-ncbi-tools-20031103 [deleted file]
app-sci/ncbi-tools/files/digest-ncbi-tools-20040202-r1 [deleted file]
app-sci/ncbi-tools/files/digest-ncbi-tools-20040616 [new file with mode: 0644]
app-sci/ncbi-tools/files/dot-ncbirc [deleted file]
app-sci/ncbi-tools/files/ncbirc [new file with mode: 0644]
app-sci/ncbi-tools/ncbi-tools-20031103.ebuild [deleted file]
app-sci/ncbi-tools/ncbi-tools-20040202-r1.ebuild [deleted file]
app-sci/ncbi-tools/ncbi-tools-20040616.ebuild [new file with mode: 0644]

index 399209157bf0adf630a7f554f07a920bfe1b66c4..75ace5f533bbc2addb476547da87f601340fe2d7 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-sci/ncbi-tools
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/ncbi-tools/ChangeLog,v 1.14 2004/06/24 22:11:23 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/ncbi-tools/ChangeLog,v 1.15 2004/10/04 01:56:33 ribosome Exp $
+
+*ncbi-tools-20040616 (03 Oct 2004)
+
+  03 Oct 2004; Olivier Fisette <ribosome@gentoo.org> files/21ncbi,
+  -files/dot-ncbirc, +files/ncbirc, -ncbi-tools-20031103.ebuild,
+  -ncbi-tools-20040202-r1.ebuild, +ncbi-tools-20040616.ebuild:
+  Updated version and new ebuild. This fixes bug #65941.
 
   02 Jun 2004; Aron Griffis <agriffis@gentoo.org> ncbi-tools-20031103.ebuild,
   ncbi-tools-20040202-r1.ebuild:
index 58c2f76c9f0b251798ced89af98bd88b8879d590..511519e51375c03c7fa27033c5d4187b3438c840 100644 (file)
@@ -1,8 +1,6 @@
-MD5 6a5b16d027ab113411b42e016a257922 ncbi-tools-20040202-r1.ebuild 2435
-MD5 b20a8df11e1611941484a6cfcd219816 ncbi-tools-20031103.ebuild 2295
-MD5 3120f0cafd39895997665927420215c3 ChangeLog 3172
+MD5 af98311b23a818d1de9bfe699aa1a1f6 ncbi-tools-20040616.ebuild 5768
+MD5 6b287d2ff6e261a4c80e8adc7f176074 ChangeLog 3461
 MD5 e8b4df3df76800c376905734d8043cfa metadata.xml 216
-MD5 7c726288b5f5fd1f2fafcf08a7ffa267 files/dot-ncbirc 26
-MD5 076a160e6c1184393970d0fd636e7c1c files/digest-ncbi-tools-20040202-r1 140
-MD5 45e683cb2a8a9aeaddd120d1ecad032f files/digest-ncbi-tools-20031103 149
-MD5 a3e32aea6e4015a69b50f7579e4f3c8e files/21ncbi 140
+MD5 23986a001c85eb8c2c319aacfa9cb40c files/ncbirc 33
+MD5 60747c6dfbeb2a49d7d686666ee92615 files/digest-ncbi-tools-20040616 129
+MD5 756db6700c84d3b303bfc3d0a28871de files/21ncbi 166
index 6df890a1e11435ad3ff5aedf4e442722e1e1babb..1983fe83de02d67fc8f72af579b440d39b056378 100644 (file)
@@ -1,4 +1,4 @@
-# where you keep your formatdb formated data sets
-BLASTDB="/usr/var/ncbi/db"
-# convenient for binary or odd location isntall
-#PATH=/usr/bin
+# Location of the formatdb data sets
+BLASTDB="/usr/share/ncbi/formatdb"
+# Location of the ".ncbi.rc" file which sets the default path for shared data.
+NCBI=/etc/ncbi
diff --git a/app-sci/ncbi-tools/files/digest-ncbi-tools-20031103 b/app-sci/ncbi-tools/files/digest-ncbi-tools-20031103
deleted file mode 100644 (file)
index db8bd33..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 8fa5b43e1841807ecc80a06b866cb9e2 ncbi-tools-20031103.tar.gz 12822675
-MD5 3403661f9d133187a3040a16b2ab1ed8 ncbi-tools-data-20031103.tar.gz 987691
diff --git a/app-sci/ncbi-tools/files/digest-ncbi-tools-20040202-r1 b/app-sci/ncbi-tools/files/digest-ncbi-tools-20040202-r1
deleted file mode 100644 (file)
index 6ce0cd0..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 37284ef856ae66d191500d936dd77e61 ncbi-tools-20040202.tar.gz 13025387
-MD5 3403661f9d133187a3040a16b2ab1ed8 ncbi-tools-data.tar.gz 987691
diff --git a/app-sci/ncbi-tools/files/digest-ncbi-tools-20040616 b/app-sci/ncbi-tools/files/digest-ncbi-tools-20040616
new file mode 100644 (file)
index 0000000..798ecf0
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 12320f853acb397a14729fb0da0b09df ncbi.tar.gz 13680457
+MD5 c0860f787d95623b72fba58dbf1b60c5 ncbi-tools-sdk-doc.tar.bz2 263568
diff --git a/app-sci/ncbi-tools/files/dot-ncbirc b/app-sci/ncbi-tools/files/dot-ncbirc
deleted file mode 100644 (file)
index 91582d4..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-[NCBI]
-Data=/usr/var/ncbi
diff --git a/app-sci/ncbi-tools/files/ncbirc b/app-sci/ncbi-tools/files/ncbirc
new file mode 100644 (file)
index 0000000..625dc6a
--- /dev/null
@@ -0,0 +1,2 @@
+[NCBI]
+Data=/usr/share/ncbi/data
diff --git a/app-sci/ncbi-tools/ncbi-tools-20031103.ebuild b/app-sci/ncbi-tools/ncbi-tools-20031103.ebuild
deleted file mode 100644 (file)
index c68dab1..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/ncbi-tools/ncbi-tools-20031103.ebuild,v 1.8 2004/06/24 22:11:23 agriffis Exp $
-
-DESCRIPTION="NCBI toolkit including the BLAST group of programs, entrez, ddv, udv, sequin and others"
-HOMEPAGE="http://www.ncbi.nlm.nih.gov/"
-
-SRC_URI="mirror://gentoo/${P}.tar.gz mirror://gentoo/${PN}-data-${PV}.tar.gz"
-
-LICENSE="freedist"
-SLOT="0"
-
-KEYWORDS="x86 ~ppc ~sparc ~alpha"
-IUSE="X png"
-
-DEPEND="app-shells/tcsh
-               X? ( virtual/x11
-                       x11-libs/openmotif
-                       png? ( media-libs/libpng )
-               )"
-
-src_compile() {
-
-       cd ${WORKDIR}
-
-       if ! use X
-       then
-               ewarn "No X11 apps will be compiled"
-               sed -e "s:\#set HAVE_OGL=0:set HAVE_OGL=0:" -i ncbi/make/makedis.csh
-               sed -e "s:\#set HAVE_MOTIF=0:set HAVE_MOTIF=0:" -i ncbi/make/makedis.csh
-       fi
-
-       # change to our CFLAGS
-       sed -e "s:-O2:${CFLAGS}:" -i ncbi/platform/linux.ncbi.mk
-
-       # put in our MAKEOPTS 
-       # VERY BROKEN :: PLEASE FIGURE IT OUT IF YOU CAN...
-       # dosed "s/MFLG=\"\"/MFLG=\"${MAKEOPTS}\"/" ncbi/make/makedis.csh
-
-       ./ncbi/make/makedis.csh 2>&1 | tee out.makedis.txt
-
-}
-
-src_install() {
-
-       cd ${WORKDIR}/ncbi/bin
-       dobin Nentrez blastclust entrcmd getmesh megablast testobj Psequin blastpgp entrez2 getpub ncbisort testval asn2ff cdscan errhdr getseq netentcf udv asn2gb checksub fa2htgs gil2bin rpsblast vecscreen asn2xml copymat fastacmd idfetch seedtop asndhuff ddv findspl impala seqtest asntool demo_regexp fmerge indexpub tbl2asn blastall demo_regexp_grep formatdb makemat test_regexp blastcl3 dosimple getfeat makeset testcore bl2seq
-
-
-       cd ${WORKDIR}
-       dodir /usr/var/ncbi
-       insinto /usr/var/ncbi
-       doins data/*
-
-       cd ${WORKDIR}/ncbi/doc
-       dodoc * images/* fa2htgs/*
-
-       # ncbirc file
-       dodir /etc/skel
-       insinto /etc/skel
-       newins ${FILESDIR}/dot-ncbirc .ncbirc
-
-       # env file
-       dodir /etc/env.d
-       insinto /etc/env.d
-       doins ${FILESDIR}/21ncbi
-}
-
-pkg_postinst() {
-       einfo " "
-       einfo "You'll need to edit /etc/env.d/21ncbi and indicate where your"
-       einfo "formatdb formatted databases are going to live on the filesystem."
-       einfo "Additionally, you may want to copy /etc/skel/.ncbirc to your"
-       einfo "current users home directories."
-       einfo " "
-       einfo "Be sure to see the /usr/share/doc/${PF} doc directory!"
-       einfo " "
-}
diff --git a/app-sci/ncbi-tools/ncbi-tools-20040202-r1.ebuild b/app-sci/ncbi-tools/ncbi-tools-20040202-r1.ebuild
deleted file mode 100644 (file)
index 2a9417b..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/ncbi-tools/ncbi-tools-20040202-r1.ebuild,v 1.7 2004/06/24 22:11:23 agriffis Exp $
-
-DESCRIPTION="NCBI toolkit including the BLAST group of programs, entrez, ddv, udv, sequin and others"
-HOMEPAGE="http://www.ncbi.nlm.nih.gov/"
-
-SRC_URI="mirror://gentoo/${P}.tar.gz mirror://gentoo/${PN}-data.tar.gz"
-
-LICENSE="freedist"
-SLOT="0"
-
-KEYWORDS="~x86 ~ppc ~sparc alpha"
-IUSE="X png"
-
-DEPEND="app-shells/tcsh
-               X? ( virtual/x11
-                       x11-libs/openmotif
-                       png? ( media-libs/libpng )
-               )"
-
-src_compile() {
-
-       cd ${WORKDIR}
-
-       if ! use X
-       then
-               ewarn "No X11 apps will be compiled"
-               sed -e "s:\#set HAVE_OGL=0:set HAVE_OGL=0:" -i ncbi/make/makedis.csh
-               sed -e "s:\#set HAVE_MOTIF=0:set HAVE_MOTIF=0:" -i ncbi/make/makedis.csh
-       fi
-
-       #X11 apps crap out with -O3     
-       sed -e "s:-O3:-O2:g" -i ncbi/platform/linux-x86.ncbi.mk
-       # change to our CFLAGS, use at your own risk
-       # sed -e "s:-pipe:${CFLAGS}:" -i ncbi/platform/linux-x86.ncbi.mk
-       # sed -e "s:-pipe:${CFLAGS}:" -i ncbi/platform/linux.ncbi.mk
-
-       # put in our MAKEOPTS (doesn't work)
-       # sed -e "s:make \$MFLG:make ${MAKEOPTS}:" -i ncbi/make/makedis.csh
-
-       ./ncbi/make/makedis.csh 2>&1 | tee out.makedis.txt
-
-}
-
-src_install() {
-
-       cd ${WORKDIR}/ncbi/bin
-       dobin Nentrez blastclust entrcmd getmesh megablast testobj Psequin blastpgp entrez2 getpub ncbisort testval asn2ff cdscan errhdr getseq netentcf udv asn2gb checksub fa2htgs gil2bin rpsblast vecscreen asn2xml copymat fastacmd idfetch seedtop asndhuff ddv findspl impala seqtest asntool demo_regexp fmerge indexpub tbl2asn blastall demo_regexp_grep formatdb makemat test_regexp blastcl3 dosimple getfeat makeset testcore bl2seq
-
-
-       cd ${WORKDIR}
-       dodir /usr/var/ncbi
-       insinto /usr/var/ncbi
-       doins data/*
-
-       cd ${WORKDIR}/ncbi/doc
-       dodoc * images/* fa2htgs/*
-
-       # ncbirc file
-       dodir /etc/skel
-       insinto /etc/skel
-       newins ${FILESDIR}/dot-ncbirc .ncbirc
-
-       # env file
-       dodir /etc/env.d
-       insinto /etc/env.d
-       doins ${FILESDIR}/21ncbi
-}
-
-pkg_postinst() {
-       einfo " "
-       einfo "You'll need to edit /etc/env.d/21ncbi and indicate where your"
-       einfo "formatdb formatted databases are going to live on the filesystem."
-       einfo "Additionally, you may want to copy /etc/skel/.ncbirc to your"
-       einfo "current users home directories."
-       einfo " "
-       einfo "Be sure to see the /usr/share/doc/${PF} doc directory!"
-       einfo " "
-}
diff --git a/app-sci/ncbi-tools/ncbi-tools-20040616.ebuild b/app-sci/ncbi-tools/ncbi-tools-20040616.ebuild
new file mode 100644 (file)
index 0000000..890d8d1
--- /dev/null
@@ -0,0 +1,165 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/ncbi-tools/ncbi-tools-20040616.ebuild,v 1.1 2004/10/04 01:56:33 ribosome Exp $
+
+inherit flag-o-matic
+
+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="ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/${PV}/ncbi.tar.gz
+       doc? mirror://gentoo/${PN}-sdk-doc.tar.bz2"
+
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+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 = ${CC:gcc}/" linux-x86.ncbi.mk
+       # ... on alpha...
+       sed -i -e "s/NCBI_CC = gcc/NCBI_CC = ${CC:gcc}/" linux-alpha.ncbi.mk
+       # ... on hppa...
+       sed -i -e "s/NCBI_CC = gcc/NCBI_CC = ${CC:gcc}/" hppalinux.ncbi.mk
+       # ... on ppc...
+       sed -i -e "s/NCBI_CC = gcc/NCBI_CC = ${CC:gcc}/" ppclinux.ncbi.mk
+       # ... on generic Linux.
+       sed -i -e "s/NCBI_CC = gcc/NCBI_CC = ${CC:gcc}/" 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
+}