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