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