Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/namd: ChangeLog namd-2.7_beta2.ebuild namd-2.7_beta2-r1.ebuild
Date: Thu, 24 Jun 2010 20:37:12
Message-Id: 20100624203703.B20CC2CF4E@corvid.gentoo.org
1 jlec 10/06/24 20:37:03
2
3 Modified: ChangeLog namd-2.7_beta2.ebuild
4 Added: namd-2.7_beta2-r1.ebuild
5 Log:
6 respect LDFLAGS and declarations
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.13 sci-chemistry/namd/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?rev=1.13&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?r1=1.12&r2=1.13
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v
19 retrieving revision 1.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- ChangeLog 24 Jun 2010 20:06:06 -0000 1.12
23 +++ ChangeLog 24 Jun 2010 20:37:03 -0000 1.13
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sci-chemistry/namd
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v 1.12 2010/06/24 20:06:06 jlec Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v 1.13 2010/06/24 20:37:03 jlec Exp $
29 +
30 +*namd-2.7_beta2-r1 (24 Jun 2010)
31 +
32 + 24 Jun 2010; Justin Lecher <jlec@g.o> namd-2.7_beta2.ebuild,
33 + +namd-2.7_beta2-r1.ebuild, +files/namd-2.7-iml-dec.patch,
34 + +files/namd-2.7-ldflags.patch:
35 + respect LDFLAGS and declarations
36
37 24 Jun 2010; Justin Lecher <jlec@g.o> -namd-2.7_beta1.ebuild:
38 Removed unneeded
39
40
41
42 1.2 sci-chemistry/namd/namd-2.7_beta2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild?rev=1.2&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild?rev=1.2&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild?r1=1.1&r2=1.2
47
48 Index: namd-2.7_beta2.ebuild
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild,v
51 retrieving revision 1.1
52 retrieving revision 1.2
53 diff -u -r1.1 -r1.2
54 --- namd-2.7_beta2.ebuild 24 Apr 2010 00:02:02 -0000 1.1
55 +++ namd-2.7_beta2.ebuild 24 Jun 2010 20:37:03 -0000 1.2
56 @@ -1,6 +1,6 @@
57 # Copyright 1999-2010 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild,v 1.1 2010/04/24 00:02:02 dberkholz Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2.ebuild,v 1.2 2010/06/24 20:37:03 jlec Exp $
61
62 inherit eutils toolchain-funcs flag-o-matic
63
64 @@ -19,8 +19,8 @@
65
66 RESTRICT="fetch"
67
68 -DEPEND="|| ( app-shells/csh
69 - app-shells/tcsh )
70 +DEPEND="
71 + app-shells/tcsh
72 sys-cluster/charm
73 =sci-libs/fftw-2*
74 dev-lang/tcl"
75 @@ -52,6 +52,8 @@
76 # apply a few small fixes to make NAMD compile and
77 # link to the proper libraries
78 epatch "${FILESDIR}"/namd-2.7_beta2-gentoo.patch
79 + epatch "${FILESDIR}"/namd-2.7-ldflags.patch
80 + epatch "${FILESDIR}"/namd-2.7-iml-dec.patch
81 sed -e "s:charm-6.1.3:charm-${CHARM_VERSION}:" \
82 Make.charm || \
83 die
84
85
86
87 1.1 sci-chemistry/namd/namd-2.7_beta2-r1.ebuild
88
89 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2-r1.ebuild?rev=1.1&view=markup
90 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2-r1.ebuild?rev=1.1&content-type=text/plain
91
92 Index: namd-2.7_beta2-r1.ebuild
93 ===================================================================
94 # Copyright 1999-2010 Gentoo Foundation
95 # Distributed under the terms of the GNU General Public License v2
96 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2-r1.ebuild,v 1.1 2010/06/24 20:37:03 jlec Exp $
97
98 inherit eutils toolchain-funcs flag-o-matic
99
100 DESCRIPTION="A powerful and highly parallelized molecular dynamics code"
101 LICENSE="namd"
102 HOMEPAGE="http://www.ks.uiuc.edu/Research/namd/"
103
104 MY_PN="NAMD"
105 MY_PV="2.7b2"
106
107 SRC_URI="${MY_PN}_${MY_PV}_Source.tar.gz"
108
109 SLOT="0"
110 KEYWORDS="~amd64"
111 IUSE=""
112
113 RESTRICT="fetch"
114
115 DEPEND="
116 app-shells/tcsh
117 sys-cluster/charm
118 =sci-libs/fftw-2*
119 dev-lang/tcl"
120
121 RDEPEND=${DEPEND}
122
123 NAMD_ARCH="Linux-x86_64-g++"
124
125 NAMD_DOWNLOAD="http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=NAMD"
126
127 S="${WORKDIR}/${MY_PN}_${MY_PV}_Source"
128
129 pkg_nofetch() {
130 echo
131 einfo "Please download ${MY_PN}_${MY_PV}_Source.tar.gz from"
132 einfo "${NAMD_DOWNLOAD}"
133 einfo "after agreeing to the license and then move it to"
134 einfo "${DISTDIR}"
135 einfo "Be sure to select the ${MY_PV} version!"
136 echo
137 }
138
139 src_unpack() {
140 unpack ${A}
141 cd "${S}"
142
143 CHARM_VERSION=$(best_version sys-cluster/charm | cut -d- -f3)
144
145 # apply a few small fixes to make NAMD compile and
146 # link to the proper libraries
147 epatch "${FILESDIR}"/namd-2.7_beta2-gentoo.patch
148 epatch "${FILESDIR}"/namd-2.7-ldflags.patch
149 epatch "${FILESDIR}"/namd-2.7-iml-dec.patch
150 sed -e "s:charm-6.1.3:charm-${CHARM_VERSION}:" \
151 Make.charm || \
152 die
153
154 rm -f charm-6.1.3.tar || die
155
156 # proper compiler and cflags
157 sed -e "s/g++/$(tc-getCXX)/" \
158 -e "s/gcc/$(tc-getCC)/" \
159 -e "s/CXXOPTS = -O3 -m64 -fexpensive-optimizations -ffast-math/CXXOPTS = ${CXXFLAGS}/" \
160 -e "s/COPTS = -O3 -m64 -fexpensive-optimizations -ffast-math/COPTS = ${CFLAGS}/" \
161 -i arch/${NAMD_ARCH}.arch || \
162 die "Failed to setup ${NAMD_ARCH}.arch"
163
164 sed -e "s/gentoo-libdir/$(get_libdir)/g" \
165 -e "s/gentoo-charm/charm-${CHARM_VERSION}/g" \
166 -i Makefile || die "Failed gentooizing Makefile."
167 sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.fftw || \
168 die "Failed gentooizing Linux-x86_64.fftw."
169 sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.tcl || \
170 die "Failed gentooizing Linux-x86_64.tcl."
171
172 # configure
173 ./config ${NAMD_ARCH}
174 }
175
176 src_compile() {
177 # build namd
178 cd "${S}/${NAMD_ARCH}"
179 emake || die "Failed to build namd"
180 }
181
182 src_install() {
183 cd "${S}/${NAMD_ARCH}"
184
185 # the binaries
186 dobin ${PN}2 psfgen flipbinpdb flipdcd || \
187 die "Failed to install binaries"
188
189 cd "${S}"
190
191 # some docs
192 dodoc announce.txt license.txt notes.txt || \
193 die "Failed to install docs"
194 }
195
196 pkg_postinst() {
197 echo
198 einfo "For detailed instructions on how to run and configure"
199 einfo "NAMD please consults the extensive documentation at"
200 einfo "http://www.ks.uiuc.edu/Research/namd/"
201 einfo "and the NAMD tutorials available at"
202 einfo "http://www.ks.uiuc.edu/Training/Tutorials/"
203 einfo "Have fun :)"
204 echo
205 }