1 |
jlec 10/06/26 10:53:30 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: abinit-6.0.4.ebuild |
5 |
Log: |
6 |
Version Bump |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.4 sci-physics/abinit/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/abinit/metadata.xml?rev=1.4&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/abinit/metadata.xml?rev=1.4&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/abinit/metadata.xml?r1=1.3&r2=1.4 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/abinit/metadata.xml,v |
19 |
retrieving revision 1.3 |
20 |
retrieving revision 1.4 |
21 |
diff -u -r1.3 -r1.4 |
22 |
--- metadata.xml 7 Jul 2006 05:46:59 -0000 1.3 |
23 |
+++ metadata.xml 26 Jun 2010 10:53:30 -0000 1.4 |
24 |
@@ -6,4 +6,7 @@ |
25 |
<email>dberkholz@g.o</email> |
26 |
<name>Donnie Berkholz</name> |
27 |
</maintainer> |
28 |
+<use> |
29 |
+ <flag name='plugins'>Build all plugins</flag> |
30 |
+</use> |
31 |
</pkgmetadata> |
32 |
|
33 |
|
34 |
|
35 |
1.11 sci-physics/abinit/ChangeLog |
36 |
|
37 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/abinit/ChangeLog?rev=1.11&view=markup |
38 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/abinit/ChangeLog?rev=1.11&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/abinit/ChangeLog?r1=1.10&r2=1.11 |
40 |
|
41 |
Index: ChangeLog |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/abinit/ChangeLog,v |
44 |
retrieving revision 1.10 |
45 |
retrieving revision 1.11 |
46 |
diff -u -r1.10 -r1.11 |
47 |
--- ChangeLog 18 Dec 2009 01:26:24 -0000 1.10 |
48 |
+++ ChangeLog 26 Jun 2010 10:53:30 -0000 1.11 |
49 |
@@ -1,6 +1,13 @@ |
50 |
# ChangeLog for sci-physics/abinit |
51 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
52 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/abinit/ChangeLog,v 1.10 2009/12/18 01:26:24 markusle Exp $ |
53 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
54 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/abinit/ChangeLog,v 1.11 2010/06/26 10:53:30 jlec Exp $ |
55 |
+ |
56 |
+*abinit-6.0.4 (26 Jun 2010) |
57 |
+ |
58 |
+ 26 Jun 2010; Justin Lecher <jlec@g.o> |
59 |
+ +files/6.0.4-change-default-directories.patch, +files/6.0.4-test.patch, |
60 |
+ +abinit-6.0.4.ebuild, metadata.xml: |
61 |
+ Version Bump |
62 |
|
63 |
*abinit-5.4.4-r1 (18 Dec 2009) |
64 |
|
65 |
|
66 |
|
67 |
|
68 |
1.1 sci-physics/abinit/abinit-6.0.4.ebuild |
69 |
|
70 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/abinit/abinit-6.0.4.ebuild?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/abinit/abinit-6.0.4.ebuild?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: abinit-6.0.4.ebuild |
74 |
=================================================================== |
75 |
# Copyright 1999-2010 Gentoo Foundation |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/abinit/abinit-6.0.4.ebuild,v 1.1 2010/06/26 10:53:30 jlec Exp $ |
78 |
|
79 |
EAPI="3" |
80 |
|
81 |
inherit fortran toolchain-funcs |
82 |
|
83 |
DESCRIPTION="Find total energy, charge density and electronic structure using density functional theory" |
84 |
HOMEPAGE="http://www.abinit.org/" |
85 |
SRC_URI="http://ftp.abinit.org/${P}.tar.gz" |
86 |
|
87 |
LICENSE="GPL-2" |
88 |
SLOT="0" |
89 |
KEYWORDS="~amd64 ~ppc ~x86" |
90 |
IUSE="debug mpi plugins test" |
91 |
|
92 |
RDEPEND=" |
93 |
virtual/blas |
94 |
virtual/lapack" |
95 |
DEPEND="${RDEPEND}" |
96 |
|
97 |
# F90 code, g77 won't work |
98 |
FORTRAN="gfortran ifc" |
99 |
|
100 |
pkg_setup() { |
101 |
fortran_pkg_setup |
102 |
|
103 |
# Doesn't compile with gcc-4.0, only >=4.1 |
104 |
local diemsg="Requires gcc-4.1 or newer" |
105 |
if [[ "${FORTRANC}" = "gfortran" ]]; then |
106 |
if [[ $(gcc-major-version) -eq 4 ]] \ |
107 |
&& [[ $(gcc-minor-version) -lt 1 ]]; then |
108 |
die "${diemsg}" |
109 |
fi |
110 |
fi |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
epatch "${FILESDIR}"/${PV}-change-default-directories.patch |
115 |
# epatch "${FILESDIR}"/5.2.3-fix-64bit-detection.patch |
116 |
epatch "${FILESDIR}"/${PV}-test.patch |
117 |
|
118 |
# bug #223111: Our eautoreconf directory detection breaks |
119 |
sed -i -e "s:@abinit_srcdir@/::" Makefile.am |
120 |
|
121 |
# bug #223111: libtool 2.2 fix (taken from bug #230271) |
122 |
if [ -f "${EPREFIX}/usr/share/aclocal/ltsugar.m4" ]; then |
123 |
cat "${EPREFIX}/usr/share/aclocal/ltsugar.m4" >> config/m4/libtool.m4 |
124 |
cat "${EPREFIX}/usr/share/aclocal/ltversion.m4" >> config/m4/libtool.m4 |
125 |
cat "${EPREFIX}/usr/share/aclocal/lt~obsolete.m4" >> config/m4/libtool.m4 |
126 |
cat "${EPREFIX}/usr/share/aclocal/ltoptions.m4" >> config/m4/libtool.m4 |
127 |
fi |
128 |
|
129 |
# Yea for breaking compatibility with no ChangeLog entry in 2.60 |
130 |
if has_version '>=sys-devel/autoconf-2.60'; then |
131 |
sed -i -e "s:_AC_SRCPATHS:_AC_SRCDIRS:g" config/scripts/make-macros-autotools |
132 |
fi |
133 |
|
134 |
eautoreconf |
135 |
} |
136 |
|
137 |
src_configure() { |
138 |
econf \ |
139 |
--disable-config-file \ |
140 |
$(use_enable mpi) \ |
141 |
$(use_enable plugins all-plugins) \ |
142 |
$(use_enable netcdf) \ |
143 |
$(use_enable debug) \ |
144 |
--with-cc-optflags="${CFLAGS}" \ |
145 |
--with-fc-optflags="${FFLAGS}" \ |
146 |
FC="${FORTRANC}" \ |
147 |
CC="$(tc-getCC)" \ |
148 |
LD="$(tc-getLD)" |
149 |
} |
150 |
|
151 |
src_test() { |
152 |
einfo "The tests take quite a while, on the order of 2-3 hours" |
153 |
einfo "on a dual Athlon 2000+." |
154 |
cd "${S}"/tests |
155 |
emake tests_min || die |
156 |
|
157 |
local REPORT |
158 |
for REPORT in $(find . -name *fl*); do |
159 |
elog "Results for ${REPORT%%/*} tests" |
160 |
while read line; do |
161 |
elog "${line}" |
162 |
done \ |
163 |
< <(cat ${REPORT} ) |
164 |
done |
165 |
} |
166 |
|
167 |
src_install() { |
168 |
emake DESTDIR="${D}" install || die "install failed" |
169 |
|
170 |
dodoc KNOWN_PROBLEMS README || die |
171 |
|
172 |
mv "${ED}"usr/share/doc/abinit/manpages/abinit.1 "${ED}"/usr/share/man/man1/ |
173 |
mv "${ED}"usr/share/doc/abinit{,-${PVR}} |
174 |
} |
175 |
|
176 |
pkg_postinst() { |
177 |
if use test; then |
178 |
elog "The test results will be installed as summary_tests.tar.gz." |
179 |
fi |
180 |
} |