Gentoo Archives: gentoo-commits

From: "Donnie Berkholz (dberkholz)" <dberkholz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/namd: ChangeLog namd-2.7_beta1.ebuild namd-2.7_beta2.ebuild namd-2.7.ebuild
Date: Sat, 24 Apr 2010 00:02:06
Message-Id: 20100424000202.E2BC02C04C@corvid.gentoo.org
1 dberkholz 10/04/24 00:02:02
2
3 Modified: ChangeLog
4 Added: namd-2.7_beta1.ebuild namd-2.7_beta2.ebuild
5 Removed: namd-2.7.ebuild
6 Log:
7 Bump to 2.7_beta2. The previous 2.7 ebuild was actually 2.7 beta 1 but was not named as such, so rename it to allow people to upgrade to beta 2.
8 (Portage version: 2.1.8.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.11 sci-chemistry/namd/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/namd/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/namd/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/namd/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 23 Apr 2010 19:38:39 -0000 1.10
24 +++ ChangeLog 24 Apr 2010 00:02:02 -0000 1.11
25 @@ -1,6 +1,15 @@
26 # ChangeLog for sci-chemistry/namd
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v 1.10 2010/04/23 19:38:39 dberkholz Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v 1.11 2010/04/24 00:02:02 dberkholz Exp $
30 +
31 +*namd-2.7_beta2 (24 Apr 2010)
32 +*namd-2.7_beta1 (24 Apr 2010)
33 +
34 + 24 Apr 2010; Donnie Berkholz <dberkholz@g.o>;
35 + +namd-2.7_beta1.ebuild, +namd-2.7_beta2.ebuild, -namd-2.7.ebuild,
36 + +files/namd-2.7_beta2-gentoo.patch:
37 + Bump to 2.7_beta2. The previous 2.7 ebuild was actually 2.7 beta 1 but was
38 + not named as such, so rename it to allow people to upgrade to beta 2.
39
40 23 Apr 2010; Donnie Berkholz <dberkholz@g.o>; namd-2.7.ebuild:
41 All tc-get* sed replacements must happen before C*FLAGS-related ones,
42
43
44
45 1.1 sci-chemistry/namd/namd-2.7_beta1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/namd/namd-2.7_beta1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/namd/namd-2.7_beta1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: namd-2.7_beta1.ebuild
51 ===================================================================
52 # Copyright 1999-2010 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.7_beta1.ebuild,v 1.1 2010/04/24 00:02:02 dberkholz Exp $
55
56 inherit eutils toolchain-funcs flag-o-matic
57
58 DESCRIPTION="A powerful and highly parallelized molecular dynamics code"
59 LICENSE="namd"
60 HOMEPAGE="http://www.ks.uiuc.edu/Research/namd/"
61
62 MY_PN="NAMD"
63 MY_PV="2.7b1"
64
65 SRC_URI="${MY_PN}_${MY_PV}_Source.tar.gz"
66
67 SLOT="0"
68 KEYWORDS="~amd64"
69 IUSE=""
70
71 RESTRICT="fetch"
72
73 DEPEND="|| ( app-shells/csh
74 app-shells/tcsh )
75 sys-cluster/charm
76 =sci-libs/fftw-2*
77 dev-lang/tcl"
78
79 RDEPEND=${DEPEND}
80
81 NAMD_ARCH="Linux-x86_64-g++"
82
83 NAMD_DOWNLOAD="http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=NAMD"
84
85 S="${WORKDIR}/${MY_PN}_${MY_PV}_Source"
86
87 pkg_nofetch() {
88 echo
89 einfo "Please download ${MY_PN}_${MY_PV}_Source.tar.gz from"
90 einfo "${NAMD_DOWNLOAD}"
91 einfo "after agreeing to the license and then move it to"
92 einfo "${DISTDIR}"
93 einfo "Be sure to select the ${MY_PV} version!"
94 echo
95 }
96
97 src_unpack() {
98 unpack ${A}
99 cd "${WORKDIR}"
100 # apply a few small fixes to make NAMD compile and
101 # link to the proper libraries
102 epatch "${FILESDIR}"/namd-2.7-gentoo.patch
103 cd "${S}"
104 # proper compiler and cflags
105 sed -e "s/g++/$(tc-getCXX)/" \
106 -e "s/gcc/$(tc-getCC)/" \
107 -e "s/CXXOPTS = -O3 -m64 -fexpensive-optimizations -ffast-math/CXXOPTS = ${CXXFLAGS}/" \
108 -e "s/COPTS = -O3 -m64 -fexpensive-optimizations -ffast-math/COPTS = ${CFLAGS}/" \
109 -i arch/${NAMD_ARCH}.arch || \
110 die "Failed to setup ${NAMD_ARCH}.arch"
111
112 sed -e "s/gentoo-libdir/$(get_libdir)/g" \
113 -e "s/gentoo-charm/charm-6.1.2/g" \
114 -i Makefile || die "Failed gentooizing Makefile."
115 sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.fftw || \
116 die "Failed gentooizing Linux-x86_64.fftw."
117 sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.tcl || \
118 die "Failed gentooizing Linux-x86_64.tcl."
119
120 # configure
121 ./config ${NAMD_ARCH}
122 }
123
124 src_compile() {
125 # build namd
126 cd "${S}/${NAMD_ARCH}"
127 emake || die "Failed to build namd"
128 }
129
130 src_install() {
131 cd "${S}/${NAMD_ARCH}"
132
133 # the binaries
134 dobin ${PN}2 psfgen flipbinpdb flipdcd || \
135 die "Failed to install binaries"
136
137 cd "${S}"
138
139 # some docs
140 dodoc announce.txt license.txt notes.txt || \
141 die "Failed to install docs"
142 }
143
144 pkg_postinst() {
145 echo
146 einfo "For detailed instructions on how to run and configure"
147 einfo "NAMD please consults the extensive documentation at"
148 einfo "http://www.ks.uiuc.edu/Research/namd/"
149 einfo "and the NAMD tutorials available at"
150 einfo "http://www.ks.uiuc.edu/Training/Tutorials/"
151 einfo "Have fun :)"
152 echo
153 }
154
155
156
157 1.1 sci-chemistry/namd/namd-2.7_beta2.ebuild
158
159 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild?rev=1.1&view=markup
160 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild?rev=1.1&content-type=text/plain
161
162 Index: namd-2.7_beta2.ebuild
163 ===================================================================
164 # Copyright 1999-2010 Gentoo Foundation
165 # Distributed under the terms of the GNU General Public License v2
166 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild,v 1.1 2010/04/24 00:02:02 dberkholz Exp $
167
168 inherit eutils toolchain-funcs flag-o-matic
169
170 DESCRIPTION="A powerful and highly parallelized molecular dynamics code"
171 LICENSE="namd"
172 HOMEPAGE="http://www.ks.uiuc.edu/Research/namd/"
173
174 MY_PN="NAMD"
175 MY_PV="2.7b2"
176
177 SRC_URI="${MY_PN}_${MY_PV}_Source.tar.gz"
178
179 SLOT="0"
180 KEYWORDS="~amd64"
181 IUSE=""
182
183 RESTRICT="fetch"
184
185 DEPEND="|| ( app-shells/csh
186 app-shells/tcsh )
187 sys-cluster/charm
188 =sci-libs/fftw-2*
189 dev-lang/tcl"
190
191 RDEPEND=${DEPEND}
192
193 NAMD_ARCH="Linux-x86_64-g++"
194
195 NAMD_DOWNLOAD="http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=NAMD"
196
197 S="${WORKDIR}/${MY_PN}_${MY_PV}_Source"
198
199 pkg_nofetch() {
200 echo
201 einfo "Please download ${MY_PN}_${MY_PV}_Source.tar.gz from"
202 einfo "${NAMD_DOWNLOAD}"
203 einfo "after agreeing to the license and then move it to"
204 einfo "${DISTDIR}"
205 einfo "Be sure to select the ${MY_PV} version!"
206 echo
207 }
208
209 src_unpack() {
210 unpack ${A}
211 cd "${S}"
212
213 CHARM_VERSION=$(best_version sys-cluster/charm | cut -d- -f3)
214
215 # apply a few small fixes to make NAMD compile and
216 # link to the proper libraries
217 epatch "${FILESDIR}"/namd-2.7_beta2-gentoo.patch
218 sed -e "s:charm-6.1.3:charm-${CHARM_VERSION}:" \
219 Make.charm || \
220 die
221
222 rm -f charm-6.1.3.tar || die
223
224 # proper compiler and cflags
225 sed -e "s/g++/$(tc-getCXX)/" \
226 -e "s/gcc/$(tc-getCC)/" \
227 -e "s/CXXOPTS = -O3 -m64 -fexpensive-optimizations -ffast-math/CXXOPTS = ${CXXFLAGS}/" \
228 -e "s/COPTS = -O3 -m64 -fexpensive-optimizations -ffast-math/COPTS = ${CFLAGS}/" \
229 -i arch/${NAMD_ARCH}.arch || \
230 die "Failed to setup ${NAMD_ARCH}.arch"
231
232 sed -e "s/gentoo-libdir/$(get_libdir)/g" \
233 -e "s/gentoo-charm/charm-${CHARM_VERSION}/g" \
234 -i Makefile || die "Failed gentooizing Makefile."
235 sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.fftw || \
236 die "Failed gentooizing Linux-x86_64.fftw."
237 sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.tcl || \
238 die "Failed gentooizing Linux-x86_64.tcl."
239
240 # configure
241 ./config ${NAMD_ARCH}
242 }
243
244 src_compile() {
245 # build namd
246 cd "${S}/${NAMD_ARCH}"
247 emake || die "Failed to build namd"
248 }
249
250 src_install() {
251 cd "${S}/${NAMD_ARCH}"
252
253 # the binaries
254 dobin ${PN}2 psfgen flipbinpdb flipdcd || \
255 die "Failed to install binaries"
256
257 cd "${S}"
258
259 # some docs
260 dodoc announce.txt license.txt notes.txt || \
261 die "Failed to install docs"
262 }
263
264 pkg_postinst() {
265 echo
266 einfo "For detailed instructions on how to run and configure"
267 einfo "NAMD please consults the extensive documentation at"
268 einfo "http://www.ks.uiuc.edu/Research/namd/"
269 einfo "and the NAMD tutorials available at"
270 einfo "http://www.ks.uiuc.edu/Training/Tutorials/"
271 einfo "Have fun :)"
272 echo
273 }