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