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/apbs: apbs-1.2.1b-r1.ebuild apbs-1.2.1b.ebuild ChangeLog
Date: Sat, 20 Feb 2010 09:34:02
Message-Id: E1Nilio-0007f2-5i@stork.gentoo.org
1 jlec 10/02/20 09:33:58
2
3 Modified: apbs-1.2.1b.ebuild ChangeLog
4 Added: apbs-1.2.1b-r1.ebuild
5 Log:
6 Reverted last change into a new revision
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 sci-chemistry/apbs/apbs-1.2.1b.ebuild
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b.ebuild?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b.ebuild?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b.ebuild?r1=1.2&r2=1.3
15
16 Index: apbs-1.2.1b.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b.ebuild,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- apbs-1.2.1b.ebuild 18 Feb 2010 22:12:17 -0000 1.2
23 +++ apbs-1.2.1b.ebuild 20 Feb 2010 09:33:57 -0000 1.3
24 @@ -1,10 +1,8 @@
25 # Copyright 1999-2010 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b.ebuild,v 1.2 2010/02/18 22:12:17 jlec Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b.ebuild,v 1.3 2010/02/20 09:33:57 jlec Exp $
29
30 -EAPI="3"
31 -
32 -PYTHON_DEPEND="2"
33 +EAPI="2"
34
35 inherit eutils fortran autotools python versionator flag-o-matic
36
37 @@ -19,7 +17,7 @@
38
39 SLOT="0"
40 IUSE="arpack blas doc mpi python openmp"
41 -KEYWORDS="~x86 ~amd64 ~ppc ~amd64-linux ~x86-linux"
42 +KEYWORDS="~x86 ~amd64 ~ppc"
43
44 DEPEND="dev-libs/maloc[mpi=]
45 blas? ( virtual/blas )
46 @@ -32,6 +30,8 @@
47 FORTRAN="g77 gfortran ifc"
48
49 src_prepare() {
50 + python_version
51 +
52 epatch "${FILESDIR}"/${PN}-1.2.0-install-fix.patch
53 epatch "${FILESDIR}"/${PN}-1.2.0-contrib.patch
54 epatch "${FILESDIR}"/${PN}-1.2.0-link.patch
55 @@ -42,23 +42,23 @@
56 }
57
58 src_configure() {
59 - local myconf="--docdir=${EPREFIX}/usr/share/doc/${PF}"
60 + local myconf="--docdir=/usr/share/doc/${PF}"
61 use blas && myconf="${myconf} --with-blas=-lblas"
62 - use arpack && myconf="${myconf} --with-arpack=${EPREFIX}/usr/$(get_libdir)"
63 + use arpack && myconf="${myconf} --with-arpack=/usr/$(get_libdir)"
64
65 # check which mpi version is installed and tell configure
66 if use mpi; then
67 - export CC="${EPREFIX}/usr/bin/mpicc"
68 - export F77="${EPREFIX}/usr/bin/mpif77"
69 + export CC="/usr/bin/mpicc"
70 + export F77="/usr/bin/mpif77"
71
72 if has_version sys-cluster/mpich; then
73 - myconf="${myconf} --with-mpich=${EPREFIX}/usr"
74 + myconf="${myconf} --with-mpich=/usr"
75 elif has_version sys-cluster/mpich2; then
76 - myconf="${myconf} --with-mpich2=${EPREFIX}/usr"
77 + myconf="${myconf} --with-mpich2=/usr"
78 elif has_version sys-cluster/lam-mpi; then
79 - myconf="${myconf} --with-lam=${EPREFIX}/usr"
80 + myconf="${myconf} --with-lam=/usr"
81 elif has_version sys-cluster/openmpi; then
82 - myconf="${myconf} --with-openmpi=${EPREFIX}/usr"
83 + myconf="${myconf} --with-openmpi=/usr"
84 fi
85 fi || die "Failed to select proper mpi implementation"
86
87 @@ -72,7 +72,7 @@
88
89 econf $(use_enable python) \
90 --disable-maloc-rebuild \
91 - ${myconf}
92 + ${myconf} || die "configure failed"
93 }
94
95 src_compile() {
96
97
98
99 1.25 sci-chemistry/apbs/ChangeLog
100
101 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/ChangeLog?rev=1.25&view=markup
102 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/ChangeLog?rev=1.25&content-type=text/plain
103 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/ChangeLog?r1=1.24&r2=1.25
104
105 Index: ChangeLog
106 ===================================================================
107 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/ChangeLog,v
108 retrieving revision 1.24
109 retrieving revision 1.25
110 diff -u -r1.24 -r1.25
111 --- ChangeLog 18 Feb 2010 22:12:17 -0000 1.24
112 +++ ChangeLog 20 Feb 2010 09:33:57 -0000 1.25
113 @@ -1,6 +1,12 @@
114 # ChangeLog for sci-chemistry/apbs
115 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
116 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/ChangeLog,v 1.24 2010/02/18 22:12:17 jlec Exp $
117 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/ChangeLog,v 1.25 2010/02/20 09:33:57 jlec Exp $
118 +
119 +*apbs-1.2.1b-r1 (20 Feb 2010)
120 +
121 + 20 Feb 2010; Justin Lecher (jlec) <jlec@g.o> apbs-1.2.1b.ebuild,
122 + +apbs-1.2.1b-r1.ebuild:
123 + Reverted last change into a new revision
124
125 18 Feb 2010; Justin Lecher (jlec) <jlec@g.o> apbs-1.2.1b.ebuild:
126 EAPI=3, keyworded for {amd64,x86}-linux, made it EPREFIX aware
127
128
129
130 1.1 sci-chemistry/apbs/apbs-1.2.1b-r1.ebuild
131
132 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b-r1.ebuild?rev=1.1&view=markup
133 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b-r1.ebuild?rev=1.1&content-type=text/plain
134
135 Index: apbs-1.2.1b-r1.ebuild
136 ===================================================================
137 # Copyright 1999-2010 Gentoo Foundation
138 # Distributed under the terms of the GNU General Public License v2
139 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b-r1.ebuild,v 1.1 2010/02/20 09:33:57 jlec Exp $
140
141 EAPI="3"
142
143 PYTHON_DEPEND="2"
144
145 inherit eutils fortran autotools python versionator flag-o-matic
146
147 MY_PV=$(get_version_component_range 1-3)
148 MY_P="${PN}-${MY_PV}"
149 S="${WORKDIR}"/"${MY_P}-source"
150
151 DESCRIPTION=" Software for evaluating the electrostatic properties of nanoscale biomolecular systems"
152 LICENSE="BSD"
153 HOMEPAGE="http://apbs.sourceforge.net/"
154 SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz"
155
156 SLOT="0"
157 IUSE="arpack blas doc mpi python openmp"
158 KEYWORDS="~x86 ~amd64 ~ppc ~amd64-linux ~x86-linux"
159
160 DEPEND="dev-libs/maloc[mpi=]
161 blas? ( virtual/blas )
162 python? ( dev-lang/python )
163 sys-libs/readline
164 arpack? ( sci-libs/arpack )
165 mpi? ( virtual/mpi )"
166 RDEPEND="${DEPEND}"
167
168 FORTRAN="g77 gfortran ifc"
169
170 src_prepare() {
171 epatch "${FILESDIR}"/${PN}-1.2.0-install-fix.patch
172 epatch "${FILESDIR}"/${PN}-1.2.0-contrib.patch
173 epatch "${FILESDIR}"/${PN}-1.2.0-link.patch
174 epatch "${FILESDIR}"/${P}-autoconf-2.64.patch
175 sed "s:GENTOO_PKG_NAME:${PN}:g" \
176 -i Makefile.am || die "Cannot correct package name"
177 eautoreconf
178 }
179
180 src_configure() {
181 local myconf="--docdir=${EPREFIX}/usr/share/doc/${PF}"
182 use blas && myconf="${myconf} --with-blas=-lblas"
183 use arpack && myconf="${myconf} --with-arpack=${EPREFIX}/usr/$(get_libdir)"
184
185 # check which mpi version is installed and tell configure
186 if use mpi; then
187 export CC="${EPREFIX}/usr/bin/mpicc"
188 export F77="${EPREFIX}/usr/bin/mpif77"
189
190 if has_version sys-cluster/mpich; then
191 myconf="${myconf} --with-mpich=${EPREFIX}/usr"
192 elif has_version sys-cluster/mpich2; then
193 myconf="${myconf} --with-mpich2=${EPREFIX}/usr"
194 elif has_version sys-cluster/lam-mpi; then
195 myconf="${myconf} --with-lam=${EPREFIX}/usr"
196 elif has_version sys-cluster/openmpi; then
197 myconf="${myconf} --with-openmpi=${EPREFIX}/usr"
198 fi
199 fi || die "Failed to select proper mpi implementation"
200
201 # apbs' configure's openmp detection is broken; we'll
202 # work around this until it is fixed
203 if use openmp; then
204 append-flags -fopenmp
205 else
206 myconf="${myconf} --disable-openmp"
207 fi
208
209 econf $(use_enable python) \
210 --disable-maloc-rebuild \
211 ${myconf}
212 }
213
214 src_compile() {
215 emake -j1 || die "make failed"
216 }
217
218 src_test() {
219 cd examples && make test \
220 || die "Tests failed"
221 }
222
223 src_install() {
224 emake -j1 DESTDIR="${D}" install \
225 || die "make install failed"
226
227 dodoc AUTHORS INSTALL README NEWS ChangeLog \
228 || die "Failed to install docs"
229
230 if use doc; then
231 dohtml -r doc/* || die "Failed to install html docs"
232 fi
233 }