Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/namd: namd-2.9-r1.ebuild ChangeLog
Date: Sat, 30 Nov 2013 04:29:26
Message-Id: 20131130042921.37DA02004B@flycatcher.gentoo.org
1 ottxor 13/11/30 04:29:21
2
3 Modified: ChangeLog
4 Added: namd-2.9-r1.ebuild
5 Log:
6 clean up (fftw3, ldflags, no tcsh)
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2000586)
9
10 Revision Changes Path
11 1.18 sci-chemistry/namd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?rev=1.18&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?rev=1.18&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?r1=1.17&r2=1.18
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v
20 retrieving revision 1.17
21 retrieving revision 1.18
22 diff -u -r1.17 -r1.18
23 --- ChangeLog 18 Oct 2013 16:25:04 -0000 1.17
24 +++ ChangeLog 30 Nov 2013 04:29:21 -0000 1.18
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-chemistry/namd
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v 1.17 2013/10/18 16:25:04 ottxor Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v 1.18 2013/11/30 04:29:21 ottxor Exp $
30 +
31 +*namd-2.9-r1 (30 Nov 2013)
32 +
33 + 30 Nov 2013; Christoph Junghans <ottxor@g.o> +namd-2.9-r1.ebuild:
34 + clean up (fftw3, ldflags, no tcsh)
35
36 *namd-2.9 (18 Oct 2013)
37
38
39
40
41 1.1 sci-chemistry/namd/namd-2.9-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.9-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.9-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: namd-2.9-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.9-r1.ebuild,v 1.1 2013/11/30 04:29:21 ottxor Exp $
51
52 EAPI=5
53
54 inherit eutils multilib toolchain-funcs flag-o-matic
55
56 DESCRIPTION="A powerful and highly parallelized molecular dynamics code"
57 LICENSE="namd"
58 HOMEPAGE="http://www.ks.uiuc.edu/Research/namd/"
59
60 MY_PN="NAMD"
61
62 SRC_URI="${MY_PN}_${PV}_Source.tar.gz"
63
64 SLOT="0"
65 KEYWORDS="~amd64"
66 IUSE=""
67
68 RESTRICT="fetch"
69
70 DEPEND="
71 || ( >=sys-cluster/charm-6.5.1-r2 <=sys-cluster/charm-6.5.1-r1[static-libs] )
72 sci-libs/fftw:3.0
73 dev-lang/tcl"
74
75 RDEPEND=${DEPEND}
76
77 NAMD_ARCH="Linux-x86_64-g++"
78
79 NAMD_DOWNLOAD="http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=NAMD"
80
81 S="${WORKDIR}/${MY_PN}_${PV}_Source"
82
83 pkg_nofetch() {
84 echo
85 einfo "Please download ${MY_PN}_${PV}_Source.tar.gz from"
86 einfo "${NAMD_DOWNLOAD}"
87 einfo "after agreeing to the license and then move it to"
88 einfo "${DISTDIR}"
89 einfo "Be sure to select the ${PV} version!"
90 echo
91 }
92
93 src_prepare() {
94 CHARM_VERSION=$(best_version sys-cluster/charm | cut -d- -f3)
95
96 # apply a few small fixes to make NAMD compile and
97 # link to the proper libraries
98 epatch "${FILESDIR}"/namd-2.9-gentoo.patch
99 epatch "${FILESDIR}"/namd-2.7-iml-dec.patch
100 sed \
101 -e "s:charm-.\+:charm-${CHARM_VERSION}:" \
102 -i Make.charm || die
103
104 # Remove charm distribution. We don't need it.
105 rm -f charm-6.4.0.tar || die
106
107 # proper compiler and cflags
108 sed \
109 -e "s/g++.*/$(tc-getCXX)/" \
110 -e "s/gcc.*/$(tc-getCC)/" \
111 -e "s/CXXOPTS = .*/CXXOPTS = ${CXXFLAGS} ${LDFLAGS}/" \
112 -e "s/COPTS = .*/COPTS = ${CFLAGS} ${LDFLAGS}/" \
113 -i arch/${NAMD_ARCH}.arch || die
114
115 sed \
116 -e "s/gentoo-libdir/$(get_libdir)/g" \
117 -e "s/gentoo-charm/charm-${CHARM_VERSION}/g" \
118 -i Makefile || die "Failed gentooizing Makefile."
119 sed -e "s@/lib@/$(get_libdir)@g" -e '/FFTDIR=/s@=.*@=/usr@' -i arch/Linux-x86_64.fftw3 || die
120 sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.tcl || die
121 }
122
123 src_configure() {
124 # configure
125 ./config ${NAMD_ARCH} --with-fftw3 --charm-arch . || die
126 }
127
128 src_compile() {
129 # build namd
130 cd "${S}/${NAMD_ARCH}"
131 emake
132 }
133
134 src_install() {
135 dodoc announce.txt license.txt notes.txt
136 cd "${S}/${NAMD_ARCH}"
137
138 # the binaries
139 dobin ${PN}2 psfgen flipbinpdb flipdcd
140 }
141
142 pkg_postinst() {
143 echo
144 einfo "For detailed instructions on how to run and configure"
145 einfo "NAMD please consults the extensive documentation at"
146 einfo "http://www.ks.uiuc.edu/Research/namd/"
147 einfo "and the NAMD tutorials available at"
148 einfo "http://www.ks.uiuc.edu/Training/Tutorials/"
149 einfo "Have fun :)"
150 echo
151 }