1 |
alexxy 09/02/20 09:53:10 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: gamess-20090112.1.ebuild |
5 |
Log: |
6 |
GAMESS version bump |
7 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.4 sci-chemistry/gamess/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gamess/metadata.xml?rev=1.4&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gamess/metadata.xml?rev=1.4&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gamess/metadata.xml?r1=1.3&r2=1.4 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/metadata.xml,v |
19 |
retrieving revision 1.3 |
20 |
retrieving revision 1.4 |
21 |
diff -u -r1.3 -r1.4 |
22 |
--- metadata.xml 20 Sep 2006 05:09:00 -0000 1.3 |
23 |
+++ metadata.xml 20 Feb 2009 09:53:10 -0000 1.4 |
24 |
@@ -5,5 +5,9 @@ |
25 |
<email>markusle@g.o</email> |
26 |
<name>Markus Dittrich</name> |
27 |
</maintainer> |
28 |
+ <maintainer> |
29 |
+ <email>alexxy@g.o</email> |
30 |
+ <name>Alexey Shvetsov</name> |
31 |
+ </maintainer> |
32 |
<herd>sci-chemistry</herd> |
33 |
</pkgmetadata> |
34 |
|
35 |
|
36 |
|
37 |
1.30 sci-chemistry/gamess/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gamess/ChangeLog?rev=1.30&view=markup |
40 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gamess/ChangeLog?rev=1.30&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gamess/ChangeLog?r1=1.29&r2=1.30 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/ChangeLog,v |
46 |
retrieving revision 1.29 |
47 |
retrieving revision 1.30 |
48 |
diff -u -r1.29 -r1.30 |
49 |
--- ChangeLog 12 Oct 2008 14:50:30 -0000 1.29 |
50 |
+++ ChangeLog 20 Feb 2009 09:53:10 -0000 1.30 |
51 |
@@ -1,6 +1,13 @@ |
52 |
# ChangeLog for sci-chemistry/gamess |
53 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/ChangeLog,v 1.29 2008/10/12 14:50:30 markusle Exp $ |
55 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
56 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/ChangeLog,v 1.30 2009/02/20 09:53:10 alexxy Exp $ |
57 |
+ |
58 |
+*gamess-20090112.1 (20 Feb 2009) |
59 |
+ |
60 |
+ 20 Feb 2009; Alexey Shvetsov <alexxy@g.o> |
61 |
+ +files/gamess-20090112.1.gentoo.patch, metadata.xml, |
62 |
+ +gamess-20090112.1.ebuild: |
63 |
+ Version bump (bug #258062). Add myself to metadata.xml |
64 |
|
65 |
12 Oct 2008; Markus Dittrich <markusle@g.o> |
66 |
files/gamess-20080411.1.gentoo.patch: |
67 |
|
68 |
|
69 |
|
70 |
1.1 sci-chemistry/gamess/gamess-20090112.1.ebuild |
71 |
|
72 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gamess/gamess-20090112.1.ebuild?rev=1.1&view=markup |
73 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/gamess/gamess-20090112.1.ebuild?rev=1.1&content-type=text/plain |
74 |
|
75 |
Index: gamess-20090112.1.ebuild |
76 |
=================================================================== |
77 |
# Copyright 1999-2009 Gentoo Foundation |
78 |
# Distributed under the terms of the GNU General Public License v2 |
79 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/gamess-20090112.1.ebuild,v 1.1 2009/02/20 09:53:10 alexxy Exp $ |
80 |
|
81 |
inherit eutils toolchain-funcs fortran flag-o-matic |
82 |
|
83 |
DESCRIPTION="A powerful quantum chemistry package" |
84 |
LICENSE="gamess" |
85 |
HOMEPAGE="http://www.msg.chem.iastate.edu/GAMESS/GAMESS.html" |
86 |
SRC_URI="${P}.tar.gz" |
87 |
|
88 |
SLOT="0" |
89 |
KEYWORDS="~ppc ~x86 ~amd64" |
90 |
IUSE="hardened" |
91 |
|
92 |
RESTRICT="fetch" |
93 |
|
94 |
DEPEND="app-shells/tcsh |
95 |
hardened? ( sys-apps/paxctl ) |
96 |
virtual/blas" |
97 |
|
98 |
RDEPEND="${DEPEND} |
99 |
net-misc/openssh" |
100 |
|
101 |
S="${WORKDIR}/${PN}" |
102 |
|
103 |
GAMESS_DOWNLOAD="http://www.msg.ameslab.gov/GAMESS/License_Agreement.html" |
104 |
GAMESS_VERSION="12 JAN 2009 (R1)" |
105 |
FORTRAN="ifc g77 gfortran" |
106 |
|
107 |
pkg_nofetch() { |
108 |
echo |
109 |
einfo "Please download ${PN}-current.tar.gz from" |
110 |
einfo "${GAMESS_DOWNLOAD}." |
111 |
einfo "Be sure to select the version ${GAMESS_VERSION} tarball!!" |
112 |
einfo "Then move the tarball to" |
113 |
einfo "${DISTDIR}/${P}.tar.gz" |
114 |
echo |
115 |
} |
116 |
|
117 |
pkg_setup() { |
118 |
fortran_pkg_setup |
119 |
|
120 |
# currently amd64 is only supported with gfortran |
121 |
if [[ "${ARCH}" == "amd64" ]] && [[ "${FORTRANC}" != "gfortran" ]]; |
122 |
then die "You will need gfortran to compile gamess on amd64" |
123 |
fi |
124 |
} |
125 |
|
126 |
src_unpack() { |
127 |
unpack ${A} |
128 |
|
129 |
# apply LINUX-arch patches to gamess makesfiles |
130 |
epatch "${FILESDIR}"/${P}.gentoo.patch |
131 |
|
132 |
# select arch |
133 |
# NOTE: please leave lked alone; it should be good as is!! |
134 |
cd "${S}" |
135 |
local active_arch; |
136 |
if [[ "${ARCH}" == "amd64" ]]; then |
137 |
active_arch="linux64"; |
138 |
else |
139 |
active_arch="linux32"; |
140 |
fi |
141 |
sed -e "s:gentoo-target:${active_arch}:" \ |
142 |
-i comp compall ddi/compddi \ |
143 |
|| die "Failed to select proper architecure" |
144 |
|
145 |
# for hardened-gcc let't turn off ssp, since it breakes |
146 |
# a few routines |
147 |
if use hardened && [[ "${FORTRANC}" = "g77" ]]; then |
148 |
FFLAGS="${FFLAGS} -fno-stack-protector-all" |
149 |
fi |
150 |
|
151 |
# enable NEO |
152 |
sed -e "s:NEO=false:NEO=true:" -i compall lked || \ |
153 |
die "Failed to enable NEO code" |
154 |
|
155 |
# greate proper activate sourcefile |
156 |
cp "./tools/actvte.code" "./tools/actvte.f" || \ |
157 |
die "Failed to create actvte.f" |
158 |
sed -e "s/^\*UNX/ /" -i "./tools/actvte.f" || \ |
159 |
die "Failed to perform UNX substitutions in actvte.f" |
160 |
|
161 |
# fix GAMESS' compall script to use proper CC |
162 |
sed -e "s|\$CCOMP -c \$extraflags source/zunix.c|$(tc-getCC) -c \$extraflags source/zunix.c|" \ |
163 |
-i compall || die "Failed setting up compall script" |
164 |
|
165 |
# insert proper FFLAGS into GAMESS' comp makefile |
166 |
# in case we're using ifc let's strip all the gcc |
167 |
# specific stuff |
168 |
if [[ "${FORTRANC}" == "ifc" ]]; then |
169 |
sed -e "s/gentoo-OPT = '-O2'/OPT = '${FFLAGS} -quiet'/" \ |
170 |
-e "s/gentoo-g77/${FORTRANC}/" \ |
171 |
-i comp || die "Failed setting up comp script" |
172 |
elif ! use x86; then |
173 |
sed -e "s/-malign-double //" \ |
174 |
-e "s/gentoo-OPT = '-O2'/OPT = '${FFLAGS}'/" \ |
175 |
-e "s/gentoo-g77/${FORTRANC}/" \ |
176 |
-i comp || die "Failed setting up comp script" |
177 |
else |
178 |
sed -e "s/gentoo-OPT = '-O2'/OPT = '${FFLAGS}'/" \ |
179 |
-e "s/gentoo-g77/${FORTRANC}/" \ |
180 |
-i comp || die "Failed setting up comp script" |
181 |
fi |
182 |
|
183 |
# fix up GAMESS' linker script; |
184 |
sed -e "s/gentoo-g77/${FORTRANC}/" \ |
185 |
-e "s/gentoo-LDOPTS=' '/LDOPTS='${LDFLAGS}'/" \ |
186 |
-i lked || die "Failed setting up lked script" |
187 |
|
188 |
# fix up GAMESS' ddi TCP/IP socket build |
189 |
sed -e "s/gentoo-CC = 'gcc'/CC = '$(tc-getCC)'/" \ |
190 |
-e "s/gentoo-g77/${FORTRANC}/" \ |
191 |
-i ddi/compddi || die "Failed setting up compddi script" |
192 |
|
193 |
# fix up the checker scripts for gamess tests |
194 |
sed -e "s:set GMSPATH:#set GMSPATH:g" \ |
195 |
-e "s:\$GMSPATH/tools/checktst:.:g" \ |
196 |
-i tools/checktst/checktst |
197 |
} |
198 |
|
199 |
src_compile() { |
200 |
# build actvte |
201 |
cd "${S}"/tools |
202 |
"${FORTRANC}" -o actvte.x actvte.f || \ |
203 |
die "Failed to compile actvte.x" |
204 |
|
205 |
# for hardened (PAX) users and ifc we need to turn |
206 |
# MPROTECT off |
207 |
if [[ "${FORTRANC}" == "ifc" ]] && use hardened; then |
208 |
/sbin/paxctl -PemRxS actvte.x 2> /dev/null || \ |
209 |
die "paxctl failed on actvte.x" |
210 |
fi |
211 |
|
212 |
# build gamess |
213 |
cd "${S}" |
214 |
./compall || die "compall failed" |
215 |
|
216 |
# build the ddi TCP/IP socket stuff |
217 |
cd ${S}/"ddi" |
218 |
./compddi || die "compddi failed" |
219 |
|
220 |
# finally, link it all together |
221 |
cd "${S}" |
222 |
./lked || die "lked failed" |
223 |
|
224 |
# for hardened (PAX) users and ifc we need to turn |
225 |
# MPROTECT off |
226 |
if [[ "${FORTRANC}" == "ifc" ]] && use hardened; then |
227 |
/sbin/paxctl -PemRxS ${PN}.00.x 2> /dev/null || \ |
228 |
die "paxctl failed on actvte.x" |
229 |
fi |
230 |
} |
231 |
|
232 |
src_install() { |
233 |
# the executables |
234 |
dobin ${PN}.00.x ddi/ddikick.x rungms \ |
235 |
|| die "Failed installing binaries" |
236 |
|
237 |
# the docs |
238 |
dodoc *.DOC qmnuc/*.DOC || die "Failed installing docs" |
239 |
|
240 |
# install ericftm |
241 |
insinto /usr/share/${PN}/ericfmt |
242 |
doins ericfmt.dat || die "Failed installing ericfmt.dat" |
243 |
|
244 |
# install mcpdata |
245 |
insinto /usr/share/${PN}/mcpdata |
246 |
doins mcpdata/* || die "Failed installing mcpdata" |
247 |
|
248 |
# install the tests the user should run, and |
249 |
# fix up the runscript; also grab a copy of rungms |
250 |
# so the user is ready to run the tests |
251 |
insinto /usr/share/${PN}/tests |
252 |
insopts -m0644 |
253 |
doins tests/* || die "Failed installing tests" |
254 |
insopts -m0744 |
255 |
doins runall || die "Failed installing tests" |
256 |
doins tools/checktst/checktst tools/checktst/chkabs || \ |
257 |
die "Failed to install main test checker" |
258 |
doins tools/checktst/exam* || \ |
259 |
die "Failed to install individual test files" |
260 |
|
261 |
insinto /usr/share/${PN}/neotests |
262 |
insopts -m0644 |
263 |
doins -r qmnuc/neotests/* || die "Failed to install NEO tests" |
264 |
} |
265 |
|
266 |
pkg_postinst() { |
267 |
echo |
268 |
einfo "Before you use GAMESS for any serious work you HAVE" |
269 |
einfo "to run the supplied test files located in" |
270 |
einfo "/usr/share/gamess/tests and check them thoroughly." |
271 |
einfo "Otherwise all scientific publications resulting from" |
272 |
einfo "your GAMESS runs should be immediately rejected :)" |
273 |
einfo "To do so copy the content of /usr/share/gamess/tests" |
274 |
einfo "to some temporary location and execute './runall'. " |
275 |
einfo "Then run the checktst script in the same directory to" |
276 |
einfo "validate the tests." |
277 |
einfo "Please consult TEST.DOC and the other docs!" |
278 |
|
279 |
if [[ "${FORTRANC}" == "ifc" ]]; then |
280 |
echo |
281 |
ewarn "IMPORTANT NOTE: We STRONGLY recommend to stay away" |
282 |
ewarn "from ifc-9.0 for now and use the ifc-8.1 series of" |
283 |
ewarn "compilers UNLESS you can run through ALL of the " |
284 |
ewarn "test cases (see above) successfully." |
285 |
fi |
286 |
|
287 |
echo |
288 |
einfo "If you want to run on more than a single CPU" |
289 |
einfo "you will have to acquaint yourself with the way GAMESS" |
290 |
einfo "does multiprocessor runs and adjust rungms according to" |
291 |
einfo "your target network architecture." |
292 |
echo |
293 |
} |