Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-biology/ncbi-tools: ncbi-tools-2.2.26-r1.ebuild ChangeLog
Date: Fri, 01 Mar 2013 09:14:29
Message-Id: 20130301091425.141052171D@flycatcher.gentoo.org
1 jlec 13/03/01 09:14:25
2
3 Modified: ChangeLog
4 Added: ncbi-tools-2.2.26-r1.ebuild
5 Log:
6 sci-biology/ncbi-tools: Clean heuristic to fix build env, #459720 and #459726
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
9
10 Revision Changes Path
11 1.88 sci-biology/ncbi-tools/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ChangeLog?rev=1.88&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ChangeLog?rev=1.88&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ChangeLog?r1=1.87&r2=1.88
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v
20 retrieving revision 1.87
21 retrieving revision 1.88
22 diff -u -r1.87 -r1.88
23 --- ChangeLog 18 Feb 2013 12:53:27 -0000 1.87
24 +++ ChangeLog 1 Mar 2013 09:14:24 -0000 1.88
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-biology/ncbi-tools
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v 1.87 2013/02/18 12:53:27 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ChangeLog,v 1.88 2013/03/01 09:14:24 jlec Exp $
30 +
31 +*ncbi-tools-2.2.26-r1 (01 Mar 2013)
32 +
33 + 01 Mar 2013; Justin Lecher <jlec@g.o> +ncbi-tools-2.2.26-r1.ebuild:
34 + Clean heuristic to fix build env, #459720 and #459726
35
36 18 Feb 2013; Justin Lecher <jlec@g.o> ncbi-tools-0.20080302.ebuild,
37 ncbi-tools-0.20090809.ebuild, ncbi-tools-2.2.26.ebuild,
38
39
40
41 1.1 sci-biology/ncbi-tools/ncbi-tools-2.2.26-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ncbi-tools-2.2.26-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-biology/ncbi-tools/ncbi-tools-2.2.26-r1.ebuild,v 1.1 2013/03/01 09:14:24 jlec Exp $
51
52 EAPI=5
53
54 inherit eutils flag-o-matic toolchain-funcs
55
56 DESCRIPTION="Development toolkit and applications for computational biology, including NCBI BLAST"
57 HOMEPAGE="http://www.ncbi.nlm.nih.gov/"
58 SRC_URI="ftp://ftp.ncbi.nlm.nih.gov/blast/executables/release/${PV}/ncbi.tar.gz -> ${P}.tar.gz"
59
60 SLOT="0"
61 LICENSE="public-domain"
62 KEYWORDS="~alpha ~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
63 IUSE="doc static-libs X"
64
65 RDEPEND="
66 app-shells/tcsh
67 dev-lang/perl
68 media-libs/libpng
69 X? ( x11-libs/motif:0 )"
70 DEPEND="${RDEPEND}"
71
72 S="${WORKDIR}/ncbi"
73
74 EXTRA_VIB="asn2all asn2asn"
75
76 pkg_setup() {
77 echo
78 ewarn 'Please note that the NCBI toolkit (and especially the X'
79 ewarn 'applications) are known to have compilation and run-time'
80 ewarn 'problems when compiled with agressive compilation flags. The'
81 ewarn '"-O3" flag is filtered by the ebuild on the x86 architecture if'
82 ewarn 'X support is enabled.'
83 echo
84 }
85
86 src_prepare() {
87 epatch "${FILESDIR}"/${PN}-extra_vib.patch
88
89 if use ppc || use ppc64; then
90 epatch "${FILESDIR}"/${PN}-lop.patch
91 fi
92
93 if ! use X; then
94 sed \
95 -e "s:\#set HAVE_OGL=0:set HAVE_OGL=0:" \
96 -e "s:\#set HAVE_MOTIF=0:set HAVE_MOTIF=0:" \
97 -i "${S}"/make/makedis.csh || die
98 else
99 # X applications segfault on startup on x86 with -O3.
100 use x86 || replace-flags '-O3' '-O2'
101 fi
102
103 # Apply user C flags...
104 cd "${S}"/platform
105 sed \
106 -e 's:-O[23]\?::g' \
107 -e 's:-m\(cpu\|arch\)=[a-zA-Z0-9]*::g' \
108 -e 's:-x[A-Z]*::g' \
109 -e 's:-pipe::g' \
110 -e "/NCBI_MAKE_SHELL *=/s:=.*:= \"${EPREFIX}\"/bin/sh:g" \
111 -e "/NCBI_AR *=/s:ar:$(tc-getAR):g" \
112 -e "/NCBI_RANLIB *=/s:ranlib:$(tc-getRANLIB):g" \
113 -e "/NCBI_CC *=/s:= [a-zA-Z0-9]* := $(tc-getCC) :g" \
114 -e "/NCBI_OPTFLAG *=/s:$: ${CFLAGS}:g" \
115 -e "/NCBI_LDFLAGS1 *=/s:$: ${CFLAGS} ${LDFLAGS}:g" \
116 -e "/NCBI_OGLLIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --cflags gl glu 2>/dev/null):g" \
117 -e "/OPENGL_LIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --libs gl glu 2>/dev/null):g" \
118 -e "/NCBI_OGLLIBS *=/s:=.*:= $($(tc-getPKG_CONFIG) --libs gl glu 2>/dev/null):g" \
119 -i linux-x86.ncbi.mk linux-alpha.ncbi.mk hppalinux.ncbi.mk \
120 ppclinux.ncbi.mk linux64.ncbi.mk linux.ncbi.mk || die
121
122 # We use dynamic libraries
123 sed -i -e "s/-Wl,-Bstatic//" *linux*.ncbi.mk || die
124
125 sed \
126 -re "s:/usr(/bin/.*sh):\1:g" \
127 -e "s:(/bin/.*sh):${EPREFIX}\1:g" \
128 -i $(find "${S}" -type f) || die
129 }
130
131 src_compile() {
132 export EXTRA_VIB
133 cd "${WORKDIR}"
134 csh ncbi/make/makedis.csh || die
135 mkdir "${S}"/cgi "${S}"/real || die
136 mv "${S}"/bin/*.cgi "${S}"/cgi || die
137 mv "${S}"/bin/*.REAL "${S}"/real || die
138 cd "${S}"/demo
139 emake \
140 -f ../make/makenet.unx \
141 CC="$(tc-getCC) ${CFLAGS} -I../include -L../lib" \
142 LDFLAGS="${LDFLAGS}" \
143 spidey
144 cp spidey ../bin/ || die
145 }
146
147 src_install() {
148 #sci-geosciences/cdat-lite
149 mv "${S}"/bin/cdscan "${S}"/bin/cdscan-ncbi || die
150
151 dobin "${S}"/bin/*
152
153 for i in ${EXTRA_VIB}; do
154 dobin "${S}"/build/${i} || die "Failed to install binaries."
155 done
156 use static-libs && dolib.a "${S}"/lib/*.a
157 mkdir -p "${ED}"/usr/include/ncbi
158 cp -RL "${S}"/include/* "${ED}"/usr/include/ncbi || \
159 die "Failed to install headers."
160
161 # TODO: wwwblast with webapps
162 #insinto /usr/share/ncbi/lib/cgi
163 #doins ${S}/cgi/*
164 #insinto /usr/share/ncbi/lib/real
165 #doins ${S}/real/*
166
167 # Basic documentation
168 dodoc "${S}"/{README,VERSION,doc/{*.txt,README.*}}
169 newdoc "${S}"/doc/fa2htgs/README README.fa2htgs
170 newdoc "${S}"/config/README README.config
171 newdoc "${S}"/network/encrypt/README README.encrypt
172 newdoc "${S}"/network/nsclilib/readme README.nsclilib
173 newdoc "${S}"/sequin/README README.sequin
174 mv "${S}"/doc/man/fmerge{,-ncbi}.1 || die
175 doman "${S}"/doc/man/*
176
177 # Hypertext user documentation
178 dohtml "${S}"/{README.htm,doc/{*.html,*.htm,*.gif}}
179 insinto /usr/share/doc/${PF}/html
180 doins -r "${S}"/doc/blast "${S}"/doc/images "${S}"/doc/seq_install
181
182 # Developer documentation
183 if use doc; then
184 # Demo programs
185 mkdir "${ED}"/usr/share/ncbi
186 mv "${S}"/demo "${ED}"/usr/share/ncbi/demo || die
187 fi
188
189 # Shared data (similarity matrices and such) and database directory.
190 insinto /usr/share/ncbi
191 doins -r "${S}"/data
192 dodir /usr/share/ncbi/formatdb
193
194 # Default config file to set the path for shared data.
195 insinto /etc/ncbi
196 newins "${FILESDIR}"/ncbirc .ncbirc
197
198 # Env file to set the location of the config file and BLAST databases.
199 newenvd "${FILESDIR}"/21ncbi-r1 21ncbi
200 }