Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/gamess: ChangeLog gamess-20100325.2.ebuild
Date: Sun, 30 May 2010 07:00:05
Message-Id: 20100530070001.1026A2CF37@corvid.gentoo.org
1 alexxy 10/05/30 07:00:00
2
3 Modified: ChangeLog gamess-20100325.2.ebuild
4 Log:
5 [sci-chemistry/gamess] make it build with new buildsystem
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.41 sci-chemistry/gamess/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/gamess/ChangeLog?rev=1.41&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/gamess/ChangeLog?rev=1.41&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/gamess/ChangeLog?r1=1.40&r2=1.41
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/ChangeLog,v
18 retrieving revision 1.40
19 retrieving revision 1.41
20 diff -u -r1.40 -r1.41
21 --- ChangeLog 24 May 2010 12:38:11 -0000 1.40
22 +++ ChangeLog 30 May 2010 07:00:00 -0000 1.41
23 @@ -1,6 +1,10 @@
24 # ChangeLog for sci-chemistry/gamess
25 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/ChangeLog,v 1.40 2010/05/24 12:38:11 alexxy Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/ChangeLog,v 1.41 2010/05/30 07:00:00 alexxy Exp $
28 +
29 + 30 May 2010; Alexey Shvetsov <alexxy@g.o> gamess-20100325.2.ebuild,
30 + +files/gamess-20100325.2.gentoo.patch:
31 + make it build with new buildsystem
32
33 *gamess-20100325.2 (24 May 2010)
34
35
36
37
38 1.3 sci-chemistry/gamess/gamess-20100325.2.ebuild
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/gamess/gamess-20100325.2.ebuild?rev=1.3&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/gamess/gamess-20100325.2.ebuild?rev=1.3&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/gamess/gamess-20100325.2.ebuild?r1=1.2&r2=1.3
43
44 Index: gamess-20100325.2.ebuild
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/gamess-20100325.2.ebuild,v
47 retrieving revision 1.2
48 retrieving revision 1.3
49 diff -u -r1.2 -r1.3
50 --- gamess-20100325.2.ebuild 24 May 2010 12:42:17 -0000 1.2
51 +++ gamess-20100325.2.ebuild 30 May 2010 07:00:00 -0000 1.3
52 @@ -1,6 +1,6 @@
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/gamess-20100325.2.ebuild,v 1.2 2010/05/24 12:42:17 alexxy Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gamess/gamess-20100325.2.ebuild,v 1.3 2010/05/30 07:00:00 alexxy Exp $
57
58 EAPI="2"
59
60 @@ -94,7 +94,7 @@
61
62 src_prepare() {
63 # apply LINUX-arch patches to gamess makesfiles
64 - epatch "${FILESDIR}"/${PN}-20090112.1.gentoo.patch
65 + epatch "${FILESDIR}"/${P}.gentoo.patch
66 # select arch
67 # NOTE: please leave lked alone; it should be good as is!!
68 cd "${S}"
69 @@ -104,9 +104,6 @@
70 else
71 active_arch="linux32";
72 fi
73 - sed -e "s:gentoo-target:${active_arch}:" \
74 - -i comp compall ddi/compddi \
75 - || die "Failed to select proper architecure"
76
77 # for hardened-gcc let't turn off ssp, since it breakes
78 # a few routines
79 @@ -142,15 +139,27 @@
80 -i source/inputb.src \
81 || die "Setting QMMM_GAMESS_MAXMM failed"
82 fi
83 - sed -e "s:maxclass=250:maxclass=$QMMM_GAMESS_MAXCLASS:g" \
84 - -i tinker/sizes.i \
85 - || die "Setting QMMM_GAMESS_MAXCLASS failed"
86 - sed -e "s:maxtyp=500:maxtyp=$QMMM_GAMESS_MAXCTYP:g" \
87 - -i tinker/sizes.i \
88 - || die "Setting QMMM_GAMESS_MAXCTYP failed"
89 - sed -e "s:maxhess=1000000:maxhess=$QMMM_GAMESS_MAXHESS:g" \
90 - -i tinker/sizes.i \
91 - || die "Setting QMMM_GAMESS_MAXHESS failed"
92 + if [ "x$QMMM_GAMESS_MAXCLASS" == "x" ]; then
93 + einfo "No QMMM_GAMESS_MAXMM set. Using default value = 250"
94 + else
95 + sed -e "s:maxclass=250:maxclass=$QMMM_GAMESS_MAXCLASS:g" \
96 + -i tinker/sizes.i \
97 + || die "Setting QMMM_GAMESS_MAXCLASS failed"
98 + fi
99 + if [ "x$QMMM_GAMESS_MAXCTYP" == "x" ]; then
100 + einfo "No QMMM_GAMESS_MAXCTYP set. Using default value = 500"
101 + else
102 + sed -e "s:maxtyp=500:maxtyp=$QMMM_GAMESS_MAXCTYP:g" \
103 + -i tinker/sizes.i \
104 + || die "Setting QMMM_GAMESS_MAXCTYP failed"
105 + fi
106 + if [ "x$QMMM_GAMESS_MAXHESS" == "x" ]; then
107 + einfo "No QMMM_GAMESS_MAXHESS set. Usingdefault value = 1000000"
108 + else
109 + sed -e "s:maxhess=1000000:maxhess=$QMMM_GAMESS_MAXHESS:g" \
110 + -i tinker/sizes.i \
111 + || die "Setting QMMM_GAMESS_MAXHESS failed"
112 + fi
113 fi
114 # greate proper activate sourcefile
115 cp "./tools/actvte.code" "./tools/actvte.f" || \
116 @@ -167,33 +176,33 @@
117 # specific stuff
118 if [[ "${FORTRANC}" == "ifc" ]]; then
119 sed -e "s/gentoo-OPT = '-O2'/OPT = '${FFLAGS} -quiet'/" \
120 - -e "s/gentoo-g77/${FORTRANC}/" \
121 -i comp || die "Failed setting up comp script"
122 elif ! use x86; then
123 sed -e "s/-malign-double //" \
124 -e "s/gentoo-OPT = '-O2'/OPT = '${FFLAGS}'/" \
125 - -e "s/gentoo-g77/${FORTRANC}/" \
126 -i comp || die "Failed setting up comp script"
127 else
128 sed -e "s/gentoo-OPT = '-O2'/OPT = '${FFLAGS}'/" \
129 - -e "s/gentoo-g77/${FORTRANC}/" \
130 -i comp || die "Failed setting up comp script"
131 fi
132
133 # fix up GAMESS' linker script;
134 - sed -e "s/gentoo-g77/${FORTRANC}/" \
135 - -e "s/gentoo-LDOPTS=' '/LDOPTS='${LDFLAGS}'/" \
136 + sed -e "s/gentoo-LDOPTS=' '/LDOPTS='${LDFLAGS}'/" \
137 -i lked || die "Failed setting up lked script"
138 -
139 # fix up GAMESS' ddi TCP/IP socket build
140 sed -e "s/gentoo-CC = 'gcc'/CC = '$(tc-getCC)'/" \
141 - -e "s/gentoo-g77/${FORTRANC}/" \
142 -i ddi/compddi || die "Failed setting up compddi script"
143 + # Creating install.info
144 + cat > install.info <<-EOF
145 + #!/bin/csh
146 + setenv GMS_PATH $WORKDIR/gamess
147 + setenv GMS_TARGET $active_arch
148 + setenv GMS_FORTRAN $FORTRANC
149 + setenv GMS_MATHLIB atlas
150 + setenv GMS_MATHLIB_PATH /usr/$(get_libdir)/atlas
151 + setenv GMS_DDI_COMM sockets
152 + EOF
153
154 - # fix up the checker scripts for gamess tests
155 - sed -e "s:set GMSPATH:#set GMSPATH:g" \
156 - -e "s:\$GMSPATH/tools/checktst:.:g" \
157 - -i tools/checktst/checktst
158 }
159
160 src_compile() {