1 |
je_fro 09/01/22 04:14:36 |
2 |
|
3 |
Modified: gromacs-3.3.3.ebuild ChangeLog gromacs-4.0.ebuild |
4 |
gromacs-3.3.1-r1.ebuild gromacs-4.0.2.ebuild |
5 |
Added: gromacs-4.0.3.ebuild |
6 |
Log: |
7 |
Latest release |
8 |
(Portage version: 2.1.6.7/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 sci-chemistry/gromacs/gromacs-3.3.3.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.3.ebuild?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.3.ebuild?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.3.ebuild?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: gromacs-3.3.3.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.3.ebuild,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- gromacs-3.3.3.ebuild 6 Oct 2008 02:08:34 -0000 1.1 |
24 |
+++ gromacs-3.3.3.ebuild 22 Jan 2009 04:14:36 -0000 1.2 |
25 |
@@ -1,6 +1,6 @@ |
26 |
-# Copyright 1999-2008 Gentoo Foundation |
27 |
+# Copyright 1999-2009 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.3.ebuild,v 1.1 2008/10/06 02:08:34 je_fro Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.3.ebuild,v 1.2 2009/01/22 04:14:36 je_fro Exp $ |
31 |
EAPI="1" |
32 |
LIBTOOLIZE="true" |
33 |
inherit autotools eutils flag-o-matic fortran multilib |
34 |
@@ -32,6 +32,8 @@ |
35 |
mpi? ( virtual/mpi ) |
36 |
xml? ( dev-libs/libxml2 )" |
37 |
|
38 |
+RDEPEND="${DEPEND}" |
39 |
+ |
40 |
FORTRAN="g77 gfortran ifc" |
41 |
|
42 |
src_unpack() { |
43 |
|
44 |
|
45 |
|
46 |
1.33 sci-chemistry/gromacs/ChangeLog |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/ChangeLog?rev=1.33&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/ChangeLog?rev=1.33&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/ChangeLog?r1=1.32&r2=1.33 |
51 |
|
52 |
Index: ChangeLog |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/ChangeLog,v |
55 |
retrieving revision 1.32 |
56 |
retrieving revision 1.33 |
57 |
diff -u -r1.32 -r1.33 |
58 |
--- ChangeLog 4 Jan 2009 01:04:00 -0000 1.32 |
59 |
+++ ChangeLog 22 Jan 2009 04:14:36 -0000 1.33 |
60 |
@@ -1,6 +1,9 @@ |
61 |
# ChangeLog for sci-chemistry/gromacs |
62 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/ChangeLog,v 1.32 2009/01/04 01:04:00 je_fro Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/ChangeLog,v 1.33 2009/01/22 04:14:36 je_fro Exp $ |
65 |
+ |
66 |
+ 22 Jan 2009; Jeff Gardner <je_fro@g.o> +gromacs-4.0.3.ebuild: |
67 |
+ Latest version. |
68 |
|
69 |
*gromacs-4.0.2 (04 Jan 2009) |
70 |
|
71 |
|
72 |
|
73 |
|
74 |
1.2 sci-chemistry/gromacs/gromacs-4.0.ebuild |
75 |
|
76 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.ebuild?rev=1.2&view=markup |
77 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.ebuild?rev=1.2&content-type=text/plain |
78 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.ebuild?r1=1.1&r2=1.2 |
79 |
|
80 |
Index: gromacs-4.0.ebuild |
81 |
=================================================================== |
82 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.ebuild,v |
83 |
retrieving revision 1.1 |
84 |
retrieving revision 1.2 |
85 |
diff -u -r1.1 -r1.2 |
86 |
--- gromacs-4.0.ebuild 12 Oct 2008 18:55:36 -0000 1.1 |
87 |
+++ gromacs-4.0.ebuild 22 Jan 2009 04:14:36 -0000 1.2 |
88 |
@@ -1,6 +1,6 @@ |
89 |
-# Copyright 1999-2008 Gentoo Foundation |
90 |
+# Copyright 1999-2009 Gentoo Foundation |
91 |
# Distributed under the terms of the GNU General Public License v2 |
92 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.ebuild,v 1.1 2008/10/12 18:55:36 je_fro Exp $ |
93 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.ebuild,v 1.2 2009/01/22 04:14:36 je_fro Exp $ |
94 |
|
95 |
EAPI="1" |
96 |
|
97 |
@@ -33,6 +33,8 @@ |
98 |
mpi? ( virtual/mpi ) |
99 |
xml? ( dev-libs/libxml2 )" |
100 |
|
101 |
+RDEPEND="${DEPEND}" |
102 |
+ |
103 |
FORTRAN="g77 gfortran ifc" |
104 |
|
105 |
src_unpack() { |
106 |
|
107 |
|
108 |
|
109 |
1.13 sci-chemistry/gromacs/gromacs-3.3.1-r1.ebuild |
110 |
|
111 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.1-r1.ebuild?rev=1.13&view=markup |
112 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.1-r1.ebuild?rev=1.13&content-type=text/plain |
113 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.1-r1.ebuild?r1=1.12&r2=1.13 |
114 |
|
115 |
Index: gromacs-3.3.1-r1.ebuild |
116 |
=================================================================== |
117 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.1-r1.ebuild,v |
118 |
retrieving revision 1.12 |
119 |
retrieving revision 1.13 |
120 |
diff -u -r1.12 -r1.13 |
121 |
--- gromacs-3.3.1-r1.ebuild 27 Jun 2008 10:25:34 -0000 1.12 |
122 |
+++ gromacs-3.3.1-r1.ebuild 22 Jan 2009 04:14:36 -0000 1.13 |
123 |
@@ -1,6 +1,6 @@ |
124 |
-# Copyright 1999-2008 Gentoo Foundation |
125 |
+# Copyright 1999-2009 Gentoo Foundation |
126 |
# Distributed under the terms of the GNU General Public License v2 |
127 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.1-r1.ebuild,v 1.12 2008/06/27 10:25:34 ulm Exp $ |
128 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-3.3.1-r1.ebuild,v 1.13 2009/01/22 04:14:36 je_fro Exp $ |
129 |
|
130 |
inherit eutils fortran multilib |
131 |
|
132 |
@@ -29,6 +29,8 @@ |
133 |
x11-proto/xproto |
134 |
x11-libs/openmotif )" |
135 |
|
136 |
+RDEPEND="${DEPEND}" |
137 |
+ |
138 |
src_unpack() { |
139 |
|
140 |
unpack ${A} |
141 |
|
142 |
|
143 |
|
144 |
1.2 sci-chemistry/gromacs/gromacs-4.0.2.ebuild |
145 |
|
146 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.2.ebuild?rev=1.2&view=markup |
147 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.2.ebuild?rev=1.2&content-type=text/plain |
148 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.2.ebuild?r1=1.1&r2=1.2 |
149 |
|
150 |
Index: gromacs-4.0.2.ebuild |
151 |
=================================================================== |
152 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.2.ebuild,v |
153 |
retrieving revision 1.1 |
154 |
retrieving revision 1.2 |
155 |
diff -u -r1.1 -r1.2 |
156 |
--- gromacs-4.0.2.ebuild 4 Jan 2009 01:04:00 -0000 1.1 |
157 |
+++ gromacs-4.0.2.ebuild 22 Jan 2009 04:14:36 -0000 1.2 |
158 |
@@ -1,6 +1,6 @@ |
159 |
# Copyright 1999-2009 Gentoo Foundation |
160 |
# Distributed under the terms of the GNU General Public License v2 |
161 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.2.ebuild,v 1.1 2009/01/04 01:04:00 je_fro Exp $ |
162 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.2.ebuild,v 1.2 2009/01/22 04:14:36 je_fro Exp $ |
163 |
|
164 |
EAPI="1" |
165 |
|
166 |
@@ -33,6 +33,8 @@ |
167 |
mpi? ( virtual/mpi ) |
168 |
xml? ( dev-libs/libxml2 )" |
169 |
|
170 |
+RDEPEND="${DEPEND}" |
171 |
+ |
172 |
FORTRAN="g77 gfortran ifc" |
173 |
|
174 |
src_unpack() { |
175 |
|
176 |
|
177 |
|
178 |
1.1 sci-chemistry/gromacs/gromacs-4.0.3.ebuild |
179 |
|
180 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.3.ebuild?rev=1.1&view=markup |
181 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.3.ebuild?rev=1.1&content-type=text/plain |
182 |
|
183 |
Index: gromacs-4.0.3.ebuild |
184 |
=================================================================== |
185 |
# Copyright 1999-2009 Gentoo Foundation |
186 |
# Distributed under the terms of the GNU General Public License v2 |
187 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gromacs/gromacs-4.0.3.ebuild,v 1.1 2009/01/22 04:14:36 je_fro Exp $ |
188 |
|
189 |
EAPI="1" |
190 |
|
191 |
LIBTOOLIZE="true" |
192 |
|
193 |
inherit autotools eutils flag-o-matic fortran multilib |
194 |
|
195 |
DESCRIPTION="The ultimate molecular dynamics simulation package" |
196 |
HOMEPAGE="http://www.gromacs.org/" |
197 |
SRC_URI="ftp://ftp.gromacs.org/pub/${PN}/${P}.tar.gz" |
198 |
|
199 |
LICENSE="GPL-2" |
200 |
SLOT="0" |
201 |
KEYWORDS="~alpha ~amd64 ~ppc64 ~sparc ~x86" |
202 |
IUSE="3dnow X altivec blas double-precision gsl lapack mpi +single-precision sse sse2 static xml" |
203 |
|
204 |
# mopac7 qm/mm is broken until we can get files from |
205 |
# http://md.chem.rug.nl/~groenhof/qmmm.html |
206 |
# or somewhere else... |
207 |
|
208 |
DEPEND=">=sci-libs/fftw-3.0.1 |
209 |
app-shells/tcsh |
210 |
X? ( x11-libs/libX11 |
211 |
x11-libs/libXt |
212 |
x11-libs/libXp |
213 |
x11-libs/libXext |
214 |
x11-proto/xproto |
215 |
x11-libs/openmotif ) |
216 |
blas? ( virtual/blas ) |
217 |
gsl? ( sci-libs/gsl ) |
218 |
lapack? ( virtual/lapack ) |
219 |
mpi? ( virtual/mpi ) |
220 |
xml? ( dev-libs/libxml2 )" |
221 |
|
222 |
RDEPEND="${DEPEND}" |
223 |
|
224 |
FORTRAN="g77 gfortran ifc" |
225 |
|
226 |
src_unpack() { |
227 |
|
228 |
unpack ${A} |
229 |
cd "${S}" |
230 |
# Fix typos in a couple of files. |
231 |
sed -e "s:+0f:-f:" -i share/tutor/gmxdemo/demo \ |
232 |
|| die "Failed to fixup demo script." |
233 |
|
234 |
# Fix a sandbox violation that occurs when re-emerging with mpi. |
235 |
sed "/libdir=\"\$(libdir)\"/ a\ temp_libdir=\"${D}usr/$( get_libdir )\" ; \\\\" \ |
236 |
-i src/tools/Makefile.am \ |
237 |
|| die "sed tools/Makefile.am failed" |
238 |
|
239 |
sed -e "s:\$\$libdir:\$temp_libdir:" \ |
240 |
-i src/tools/Makefile.am \ |
241 |
|| die "sed tools/Makefile.am failed" |
242 |
|
243 |
sed "/libdir=\"\$(libdir)\"/ a\ temp_libdir=\"${D}usr/$( get_libdir )\" ; \\\\" \ |
244 |
-i src/tools/Makefile.am \ |
245 |
|| die "sed tools/Makefile.am failed" |
246 |
|
247 |
sed -e "s:\$\$libdir:\$\$temp_libdir:" \ |
248 |
-i src/tools/Makefile.am \ |
249 |
|| die "sed tools/Makefile.am failed" |
250 |
|
251 |
eautoreconf |
252 |
|
253 |
cd "${WORKDIR}" |
254 |
mv "${P}" "${P}-single" |
255 |
if ( use double-precision ) ; then |
256 |
einfo "Moving sources for Multiprecision Build" |
257 |
cp -prP "${P}-single" "${P}-double" |
258 |
fi |
259 |
} |
260 |
|
261 |
src_compile() { |
262 |
|
263 |
# static should work but something's broken. |
264 |
# gcc spec file may be screwed up. |
265 |
# Static linking should try -lgcc instead of -lgcc_s. |
266 |
# For more info: |
267 |
# http://lists.debian.org/debian-gcc/2002/debian-gcc-200201/msg00150.html |
268 |
|
269 |
# We will compile single precision by default, and suffix double-precision with _d. |
270 |
# Sparc is the only arch I can test on that needs to use fortran. |
271 |
local myconf ; |
272 |
local myconf_s ; |
273 |
local myconf_d ; |
274 |
|
275 |
case "${ARCH}" in |
276 |
|
277 |
x86) |
278 |
if ( use sse || use sse2 ) ; then |
279 |
myconf="${myconf} --enable-ia32-sse" |
280 |
fi |
281 |
myconf="$myconf $(use_enable 3dnow ia32-3dnow)" |
282 |
|
283 |
if ( ! use sse && ! use sse2 && ! use 3dnow ) ; then |
284 |
if ! has_version "=sys-devel/gcc-3*" ; then |
285 |
die "If you must run gromacs without sse (not recommended) gfortran will not work." |
286 |
else |
287 |
myconf="${myconf} --enable-fortran" && fortran_pkg_setup |
288 |
fi |
289 |
else |
290 |
myconf="${myconf} --disable-fortran" |
291 |
fi |
292 |
;; |
293 |
|
294 |
amd64) |
295 |
myconf="$myconf --enable-x86-64-sse --disable-fortran" |
296 |
;; |
297 |
|
298 |
ppc*) |
299 |
if use altivec ; then |
300 |
myconf="${myconf} --enable-ppc-altivec --disable-fortran" |
301 |
else |
302 |
if ! has_version "=sys-devel/gcc-3*" ; then |
303 |
die "If you must run gromacs without sse (not recommended) gfortran will not work." |
304 |
else |
305 |
myconf="${myconf} --enable-fortran" && fortran_pkg_setup |
306 |
fi |
307 |
fi |
308 |
;; |
309 |
|
310 |
ia64) |
311 |
myconf="$myconf --enable-ia64-asm --disable-fortran" |
312 |
;; |
313 |
|
314 |
alpha) |
315 |
if ! has_version "=sys-devel/gcc-3*" ; then |
316 |
die "If you must run gromacs without sse (not recommended) gfortran will not work." |
317 |
else |
318 |
myconf="$myconf --enable-fortran" && fortran_pkg_setup |
319 |
fi |
320 |
;; |
321 |
|
322 |
sparc) |
323 |
if ! has_version "=sys-devel/gcc-3*" ; then |
324 |
die "If you must run gromacs without sse (not recommended) gfortran will not work." |
325 |
else |
326 |
myconf="${myconf} --enable-fortran" && fortran_pkg_setup |
327 |
fi |
328 |
;; |
329 |
esac |
330 |
|
331 |
# if we need external blas |
332 |
if use blas; then |
333 |
export LIBS="${LIBS} -lblas" |
334 |
myconf="${myconf} $(use_with blas external-blas)" |
335 |
fi |
336 |
|
337 |
# if we need external lapack |
338 |
if use lapack; then |
339 |
export LIBS="${LIBS} -llapack" |
340 |
myconf="${myconf} $(use_with lapack external-lapack)" |
341 |
fi |
342 |
|
343 |
myconf="--datadir=/usr/share \ |
344 |
--bindir=/usr/bin \ |
345 |
--libdir=/usr/$(get_libdir) \ |
346 |
--with-fft=fftw3 \ |
347 |
$(use_with gsl) \ |
348 |
$(use_enable mpi) \ |
349 |
$(use_with X x) \ |
350 |
$(use_with xml) \ |
351 |
$(use_enable static all-static) \ |
352 |
${myconf}" |
353 |
|
354 |
if ( use double-precision && use single-precision ); then |
355 |
einfo "Building Single Precison Gromacs" |
356 |
cd "${WORKDIR}"/"${P}"-single |
357 |
myconf_s="${myconf} --enable-float --disable-double --program-suffix=''" |
358 |
econf ${myconf_s} || die "Single Precision econf failed" |
359 |
emake || die "Single Precision emake failed" |
360 |
|
361 |
einfo "Building Double Precision Gromacs" |
362 |
cd "${WORKDIR}"/"${P}"-double |
363 |
myconf_d="${myconf} --enable-double --disable-float --program-suffix=_d" |
364 |
econf ${myconf_d} || die "Double Precision econf failed" |
365 |
emake || die "Double Precision emake failed" |
366 |
|
367 |
elif use double-precision ; then |
368 |
einfo "Building Double Precison Gromacs" |
369 |
cd "${WORKDIR}"/"${P}"-double |
370 |
myconf_d="${myconf} --enable-double --disable-float --program-suffix=''" |
371 |
econf ${myconf_d} || die "Double Precision econf failed" |
372 |
emake || die "Double Precision emake failed" |
373 |
|
374 |
elif use single-precision ; then |
375 |
einfo "Building Single Precison Gromacs" |
376 |
cd "${WORKDIR}"/"${P}"-single |
377 |
myconf_s="${myconf} --enable-float --disable-double --program-suffix=''" |
378 |
econf ${myconf_s} || die "configure failed" |
379 |
emake || die "Single Precision emake failed" |
380 |
fi |
381 |
} |
382 |
|
383 |
src_install() { |
384 |
if use single-precision ; then |
385 |
einfo "Installing Single Precision" |
386 |
cd "${WORKDIR}"/"${P}"-single |
387 |
emake DESTDIR="${D}" install || die "Installing Single Precision failed" |
388 |
fi |
389 |
|
390 |
if use double-precision ; then |
391 |
einfo "Installing Double Precision" |
392 |
cd "${WORKDIR}"/"${P}"-double |
393 |
emake DESTDIR="${D}" install || die "Installing Double Precision failed" |
394 |
fi |
395 |
|
396 |
dodoc AUTHORS INSTALL README |
397 |
# Move html and leave examples and templates under /usr/share/gromacs. |
398 |
mv "${D}"/usr/share/"${PN}"/html "${D}"/usr/share/doc/"${PF}"/ |
399 |
} |