Gentoo Archives: gentoo-commits

From: "Andrey Kislyuk (weaver)" <weaver@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-biology/ncbi-tools: ChangeLog ncbi-tools-20100808.ebuild ncbi-tools-20090809-r1.ebuild
Date: Thu, 30 Sep 2010 17:41:51
Message-Id: 20100930174144.4B5E020051@flycatcher.gentoo.org
1 weaver 10/09/30 17:41:44
2
3 Modified: ChangeLog
4 Added: ncbi-tools-20100808.ebuild
5 Removed: ncbi-tools-20090809-r1.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2_rc86/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.79 sci-biology/ncbi-tools/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ChangeLog?rev=1.79&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ChangeLog?rev=1.79&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ChangeLog?r1=1.78&r2=1.79
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v
21 retrieving revision 1.78
22 retrieving revision 1.79
23 diff -u -r1.78 -r1.79
24 --- ChangeLog 24 Jun 2010 20:41:40 -0000 1.78
25 +++ ChangeLog 30 Sep 2010 17:41:44 -0000 1.79
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-biology/ncbi-tools
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v 1.78 2010/06/24 20:41:40 jlec Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v 1.79 2010/09/30 17:41:44 weaver Exp $
31 +
32 +*ncbi-tools-20100808 (30 Sep 2010)
33 +
34 + 30 Sep 2010; Andrey Kislyuk <weaver@g.o>
35 + -ncbi-tools-20090809-r1.ebuild, +ncbi-tools-20100808.ebuild:
36 + Version bump
37
38 24 Jun 2010; Justin Lecher <jlec@g.o> -ncbi-tools-20060507.ebuild,
39 -ncbi-tools-20061015-r1.ebuild, -ncbi-tools-20070826.ebuild,
40
41
42
43 1.1 sci-biology/ncbi-tools/ncbi-tools-20100808.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ncbi-tools-20100808.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ncbi-tools-20100808.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ncbi-tools-20100808.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ncbi-tools-20100808.ebuild,v 1.1 2010/09/30 17:41:44 weaver Exp $
53
54 EAPI="3"
55
56 inherit flag-o-matic toolchain-funcs eutils
57
58 DESCRIPTION="Development toolkit and applications for computational biology, including NCBI BLAST"
59 LICENSE="public-domain"
60 HOMEPAGE="http://www.ncbi.nlm.nih.gov/"
61 SRC_URI="ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools/old/${PV}/ncbi.tar.gz -> ${P}.tar.gz"
62
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
65
66 # IUSE=mpi deprecated, use sci-biology/mpiblast separately
67 IUSE="doc X"
68
69 RDEPEND="app-shells/tcsh
70 dev-lang/perl
71 media-libs/libpng
72 X? ( x11-libs/openmotif )"
73 DEPEND="${RDEPEND}"
74
75 S="${WORKDIR}/ncbi"
76
77 EXTRA_VIB="asn2all asn2asn"
78
79 pkg_setup() {
80 echo
81 ewarn 'Please note that the NCBI toolkit (and especially the X'
82 ewarn 'applications) are known to have compilation and run-time'
83 ewarn 'problems when compiled with agressive compilation flags. The'
84 ewarn '"-O3" flag is filtered by the ebuild on the x86 architecture if'
85 ewarn 'X support is enabled.'
86 echo
87 }
88
89 src_prepare() {
90 epatch "${FILESDIR}"/${PN}-extra_vib.patch
91
92 if use ppc || use ppc64; then
93 epatch "${FILESDIR}"/${PN}-lop.patch
94 fi
95
96 if ! use X; then
97 cd "${S}"/make
98 sed -e "s:\#set HAVE_OGL=0:set HAVE_OGL=0:" \
99 -e "s:\#set HAVE_MOTIF=0:set HAVE_MOTIF=0:" \
100 -i makedis.csh || die
101 else
102 if use x86; then
103 # X applications segfault on startup on x86 with -O3.
104 replace-flags '-O3' '-O2'
105 fi
106 fi
107
108 # Apply user C flags...
109 cd "${S}"/platform
110 # ... on x86...
111 sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \
112 -e "s/NCBI_LDFLAGS1 = -O3 -mcpu=pentium4/NCBI_LDFLAGS1 = ${CFLAGS} ${LDFLAGS}/" \
113 -e "s/NCBI_OPTFLAG = -O3 -mcpu=pentium4/NCBI_OPTFLAG = ${CFLAGS}/" \
114 -i linux-x86.ncbi.mk || die
115 # ... on alpha...
116 sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \
117 -e "s/NCBI_LDFLAGS1 = -O3 -mieee/NCBI_LDFLAGS1 = -mieee ${CFLAGS} ${LDFLAGS}/" \
118 -e "s/NCBI_OPTFLAG = -O3 -mieee/NCBI_OPTFLAG = -mieee ${CFLAGS}/" \
119 -i linux-alpha.ncbi.mk || die
120 # ... on hppa...
121 sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \
122 -e "s/NCBI_LDFLAGS1 = -O2/NCBI_LDFLAGS1 = ${CFLAGS} ${LDFLAGS}/" \
123 -e "s/NCBI_OPTFLAG = -O2/NCBI_OPTFLAG = ${CFLAGS}/" \
124 -i hppalinux.ncbi.mk || die
125 # ... on ppc...
126 sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \
127 -e "s/NCBI_LDFLAGS1 = -O2/NCBI_LDFLAGS1 = ${CFLAGS} ${LDFLAGS}/" \
128 -e "s/NCBI_OPTFLAG = -O2/NCBI_OPTFLAG = ${CFLAGS}/" \
129 -i ppclinux.ncbi.mk || die
130 # ... on generic 64-bit Linux...
131 sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \
132 -e "s/NCBI_LDFLAGS1 = -O3/NCBI_LDFLAGS1 = ${CFLAGS} ${LDFLAGS}/" \
133 -e "s/NCBI_OPTFLAG = -O3/NCBI_OPTFLAG = ${CFLAGS}/" \
134 -i linux64.ncbi.mk || die
135 # ... on generic Linux.
136 sed -e "s/NCBI_CFLAGS1 = -c/NCBI_CFLAGS1 = -c ${CFLAGS}/" \
137 -e "s/NCBI_LDFLAGS1 = -O3/NCBI_LDFLAGS1 = ${CFLAGS} ${LDFLAGS}/" \
138 -e "s/NCBI_OPTFLAG = -O3/NCBI_OPTFLAG = ${CFLAGS}/" \
139 -i linux.ncbi.mk || die
140
141 # Put in our MAKEOPTS (doesn't work).
142 # sed -e "s:make \$MFLG:make ${MAKEOPTS}:" -i ncbi/make/makedis.csh
143
144 # Set C compiler...
145 # ... on x86...
146 sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux-x86.ncbi.mk || die
147 # ... on alpha...
148 sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux-alpha.ncbi.mk || die
149 # ... on hppa...
150 sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" hppalinux.ncbi.mk || die
151 # ... on ppc...
152 sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" ppclinux.ncbi.mk || die
153 # ... on generic 64-bit Linux...
154 sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux64.ncbi.mk || die
155 # ... on generic Linux.
156 sed -i -e "s/NCBI_CC = gcc/NCBI_CC = $(tc-getCC)/" linux.ncbi.mk || die
157
158 # We use dynamic libraries
159 sed -i -e "s/-Wl,-Bstatic//" *linux*.ncbi.mk || die
160 }
161
162 src_compile() {
163 export EXTRA_VIB
164 cd "${WORKDIR}"
165 ncbi/make/makedis.csh || die
166 mkdir "${S}"/cgi
167 mkdir "${S}"/real
168 mv "${S}"/bin/*.cgi "${S}"/cgi || die
169 mv "${S}"/bin/*.REAL "${S}"/real || die
170 cd "${S}"/demo
171 emake \
172 -f ../make/makenet.unx \
173 CC="$(tc-getCC) ${CFLAGS} -I../include -L../lib" \
174 LDFLAGS="${LDFLAGS}" \
175 spidey || die
176 cp spidey ../bin/ || die
177 }
178
179 src_install() {
180 mv "${S}"/bin/cdscan "${S}"/bin/cdscan-ncbi #sci-geosciences/cdat-lite
181 dobin "${S}"/bin/* || die "Failed to install binaries."
182 for i in ${EXTRA_VIB}; do
183 dobin "${S}"/build/${i} || die "Failed to install binaries."
184 done
185 dolib "${S}"/lib/* || die "Failed to install libraries."
186 mkdir -p "${ED}"/usr/include/ncbi
187 cp -RL "${S}"/include/* "${ED}"/usr/include/ncbi || \
188 die "Failed to install headers."
189
190 # TODO: wwwblast with webapps
191 #insinto /usr/share/ncbi/lib/cgi
192 #doins ${S}/cgi/*
193 #insinto /usr/share/ncbi/lib/real
194 #doins ${S}/real/*
195
196 # Basic documentation
197 dodoc "${S}"/{README,VERSION,doc/{*.txt,README.*}} || \
198 die "Failed to install basic documentation."
199 newdoc "${S}"/doc/fa2htgs/README README.fa2htgs || \
200 die "Failed renaming fa2htgs documentation."
201 newdoc "${S}"/config/README README.config || \
202 die "Failed renaming config documentation."
203 newdoc "${S}"/network/encrypt/README README.encrypt || \
204 die "Failed renaming encrypt documentation."
205 newdoc "${S}"/network/nsclilib/readme README.nsclilib || \
206 die "Failed renaming nsclilib documentation."
207 newdoc "${S}"/sequin/README README.sequin || \
208 die "Failed renaming sequin documentation."
209 doman "${S}"/doc/man/* || \
210 die "Failed to install man pages."
211
212 # Hypertext user documentation
213 dohtml "${S}"/{README.htm,doc/{*.html,*.htm,*.gif}} || \
214 die "Failed to install HTML documentation."
215 insinto /usr/share/doc/${PF}/html/blast
216 doins "${S}"/doc/blast/* || die "Failed to install blast HTML documentation."
217 insinto /usr/share/doc/${PF}/html/images
218 doins "${S}"/doc/images/* || die "Failed to install documentation images."
219 insinto /usr/share/doc/${PF}/html/seq_install
220 doins "${S}"/doc/seq_install/* || die "Failed to install seq_install documentation."
221
222 # Developer documentation
223 if use doc; then
224 # Demo programs
225 mkdir "${ED}"/usr/share/ncbi
226 mv "${S}"/demo "${ED}"/usr/share/ncbi/demo || die
227 fi
228
229 # Shared data (similarity matrices and such) and database directory.
230 insinto /usr/share/ncbi/data
231 doins "${S}"/data/* || die "Failed to install shared data."
232 dodir /usr/share/ncbi/formatdb || die
233
234 # Default config file to set the path for shared data.
235 insinto /etc/ncbi
236 newins "${FILESDIR}"/ncbirc .ncbirc || die "Failed to install config file."
237
238 # Env file to set the location of the config file and BLAST databases.
239 newenvd "${FILESDIR}"/21ncbi-r1 21ncbi || die "Failed to install env file."
240 }