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-r1.ebuild namd-2.7_beta2.ebuild namd-2.6.ebuild
Date: Thu, 29 Nov 2012 13:42:22
Message-Id: 20121129134142.3610420C65@flycatcher.gentoo.org
1 jlec 12/11/29 13:41:42
2
3 Modified: ChangeLog namd-2.7_beta2-r1.ebuild
4 Removed: namd-2.7_beta2.ebuild namd-2.6.ebuild
5 Log:
6 sci-chemistry/namd: Drop old
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
9
10 Revision Changes Path
11 1.15 sci-chemistry/namd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?rev=1.15&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?rev=1.15&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/ChangeLog?r1=1.14&r2=1.15
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v
20 retrieving revision 1.14
21 retrieving revision 1.15
22 diff -u -r1.14 -r1.15
23 --- ChangeLog 20 Jul 2011 16:57:24 -0000 1.14
24 +++ ChangeLog 29 Nov 2012 13:41:41 -0000 1.15
25 @@ -1,6 +1,10 @@
26 # ChangeLog for sci-chemistry/namd
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v 1.14 2011/07/20 16:57:24 pacho Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/ChangeLog,v 1.15 2012/11/29 13:41:41 jlec Exp $
31 +
32 + 29 Nov 2012; Justin Lecher <jlec@g.o> -namd-2.6.ebuild,
33 + -namd-2.7_beta2.ebuild, namd-2.7_beta2-r1.ebuild:
34 + Drop old
35
36 20 Jul 2011; Pacho Ramos <pacho@g.o> metadata.xml:
37 Drop maintainer due retirement, bug #105599
38
39
40
41 1.2 sci-chemistry/namd/namd-2.7_beta2-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2-r1.ebuild?rev=1.2&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2-r1.ebuild?rev=1.2&content-type=text/plain
45 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2-r1.ebuild?r1=1.1&r2=1.2
46
47 Index: namd-2.7_beta2-r1.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2-r1.ebuild,v
50 retrieving revision 1.1
51 retrieving revision 1.2
52 diff -u -r1.1 -r1.2
53 --- namd-2.7_beta2-r1.ebuild 24 Jun 2010 20:37:03 -0000 1.1
54 +++ namd-2.7_beta2-r1.ebuild 29 Nov 2012 13:41:41 -0000 1.2
55 @@ -1,8 +1,10 @@
56 -# Copyright 1999-2010 Gentoo Foundation
57 +# Copyright 1999-2012 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-r1.ebuild,v 1.1 2010/06/24 20:37:03 jlec Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/namd/namd-2.7_beta2-r1.ebuild,v 1.2 2012/11/29 13:41:41 jlec Exp $
61
62 -inherit eutils toolchain-funcs flag-o-matic
63 +EAPI=4
64 +
65 +inherit eutils multilib toolchain-funcs flag-o-matic
66
67 DESCRIPTION="A powerful and highly parallelized molecular dynamics code"
68 LICENSE="namd"
69 @@ -22,7 +24,7 @@
70 DEPEND="
71 app-shells/tcsh
72 sys-cluster/charm
73 - =sci-libs/fftw-2*
74 + sci-libs/fftw:2.1
75 dev-lang/tcl"
76
77 RDEPEND=${DEPEND}
78 @@ -43,61 +45,54 @@
79 echo
80 }
81
82 -src_unpack() {
83 - unpack ${A}
84 - cd "${S}"
85 -
86 +src_prepare() {
87 CHARM_VERSION=$(best_version sys-cluster/charm | cut -d- -f3)
88
89 # apply a few small fixes to make NAMD compile and
90 # link to the proper libraries
91 - epatch "${FILESDIR}"/namd-2.7_beta2-gentoo.patch
92 - epatch "${FILESDIR}"/namd-2.7-ldflags.patch
93 - epatch "${FILESDIR}"/namd-2.7-iml-dec.patch
94 - sed -e "s:charm-6.1.3:charm-${CHARM_VERSION}:" \
95 - Make.charm || \
96 - die
97 + epatch \
98 + "${FILESDIR}"/namd-2.7_beta2-gentoo.patch \
99 + "${FILESDIR}"/namd-2.7-ldflags.patch \
100 + "${FILESDIR}"/namd-2.7-iml-dec.patch
101 + sed \
102 + -e "s:charm-6.1.3:charm-${CHARM_VERSION}:" \
103 + -i Make.charm || die
104
105 rm -f charm-6.1.3.tar || die
106
107 # proper compiler and cflags
108 - sed -e "s/g++/$(tc-getCXX)/" \
109 + sed \
110 + -e "s/g++/$(tc-getCXX)/" \
111 -e "s/gcc/$(tc-getCC)/" \
112 -e "s/CXXOPTS = -O3 -m64 -fexpensive-optimizations -ffast-math/CXXOPTS = ${CXXFLAGS}/" \
113 -e "s/COPTS = -O3 -m64 -fexpensive-optimizations -ffast-math/COPTS = ${CFLAGS}/" \
114 - -i arch/${NAMD_ARCH}.arch || \
115 - die "Failed to setup ${NAMD_ARCH}.arch"
116 + -i arch/${NAMD_ARCH}.arch || die
117
118 - sed -e "s/gentoo-libdir/$(get_libdir)/g" \
119 + sed \
120 + -e "s/gentoo-libdir/$(get_libdir)/g" \
121 -e "s/gentoo-charm/charm-${CHARM_VERSION}/g" \
122 -i Makefile || die "Failed gentooizing Makefile."
123 - sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.fftw || \
124 - die "Failed gentooizing Linux-x86_64.fftw."
125 - sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.tcl || \
126 - die "Failed gentooizing Linux-x86_64.tcl."
127 + sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.fftw || die
128 + sed -e "s/gentoo-libdir/$(get_libdir)/g" -i arch/Linux-x86_64.tcl || die
129 +}
130
131 +src_configure() {
132 # configure
133 - ./config ${NAMD_ARCH}
134 + ./config ${NAMD_ARCH} || die
135 }
136
137 src_compile() {
138 # build namd
139 cd "${S}/${NAMD_ARCH}"
140 - emake || die "Failed to build namd"
141 + emake
142 }
143
144 src_install() {
145 + dodoc announce.txt license.txt notes.txt
146 cd "${S}/${NAMD_ARCH}"
147
148 # the binaries
149 - dobin ${PN}2 psfgen flipbinpdb flipdcd || \
150 - die "Failed to install binaries"
151 -
152 - cd "${S}"
153 -
154 - # some docs
155 - dodoc announce.txt license.txt notes.txt || \
156 - die "Failed to install docs"
157 + dobin ${PN}2 psfgen flipbinpdb flipdcd
158 }
159
160 pkg_postinst() {