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: ChangeLog apbs-1.2.1b-r3.ebuild apbs-1.2.1b-r2.ebuild
Date: Mon, 26 Apr 2010 20:28:12
Message-Id: 20100426202808.7E8872C04C@corvid.gentoo.org
1 jlec 10/04/26 20:28:08
2
3 Modified: ChangeLog
4 Added: apbs-1.2.1b-r3.ebuild
5 Removed: apbs-1.2.1b-r2.ebuild
6 Log:
7 Wrong usage of python_get_sitedir forced revbump, thanks arfrever for watching
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.29 sci-chemistry/apbs/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 25 Apr 2010 09:24:23 -0000 1.28
24 +++ ChangeLog 26 Apr 2010 20:28:08 -0000 1.29
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-chemistry/apbs
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/ChangeLog,v 1.28 2010/04/25 09:24:23 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/ChangeLog,v 1.29 2010/04/26 20:28:08 jlec Exp $
30 +
31 +*apbs-1.2.1b-r3 (26 Apr 2010)
32 +
33 + 26 Apr 2010; Justin Lecher <jlec@g.o> -apbs-1.2.1b-r2.ebuild,
34 + +apbs-1.2.1b-r3.ebuild:
35 + Wrong usage of python_get_sitedir forces the rev bump
36
37 25 Apr 2010; Justin Lecher <jlec@g.o> apbs-1.2.1b-r2.ebuild:
38 Python ABI fixes, #316165
39
40
41
42 1.1 sci-chemistry/apbs/apbs-1.2.1b-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: apbs-1.2.1b-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b-r3.ebuild,v 1.1 2010/04/26 20:28:08 jlec Exp $
52
53 EAPI="3"
54
55 PYTHON_DEPEND="python? 2"
56 FORTRAN="g77 gfortran ifc"
57
58 inherit autotools eutils flag-o-matic fortran python versionator
59
60 MY_PV=$(get_version_component_range 1-3)
61 MY_P="${PN}-${MY_PV}"
62
63 DESCRIPTION="Software for evaluating the electrostatic properties of nanoscale biomolecular systems"
64 HOMEPAGE="http://apbs.sourceforge.net/"
65 SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz"
66
67 SLOT="0"
68 LICENSE="BSD"
69 IUSE="arpack blas doc mpi openmp python tools"
70 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
71
72 DEPEND="
73 dev-libs/maloc[mpi=]
74 blas? ( virtual/blas )
75 sys-libs/readline
76 arpack? ( sci-libs/arpack )
77 mpi? ( virtual/mpi )"
78 RDEPEND="${DEPEND}"
79
80 S="${WORKDIR}"/"${MY_P}-source"
81
82 pkg_setup() {
83 use python && python_set_active_version 2
84 }
85
86 src_prepare() {
87 epatch "${FILESDIR}"/${P}-openmp.patch
88 epatch "${FILESDIR}"/${P}-install-fix.patch
89 epatch "${FILESDIR}"/${PN}-1.2.0-contrib.patch
90 epatch "${FILESDIR}"/${PN}-1.2.0-link.patch
91 epatch "${FILESDIR}"/${P}-autoconf-2.64.patch
92 sed "s:GENTOO_PKG_NAME:${PN}:g" \
93 -i Makefile.am || die "Cannot correct package name"
94 eautoreconf
95 find . -name "._*" -exec rm -f '{}' \;
96 }
97
98 src_configure() {
99 local myconf="--docdir=${EPREFIX}/usr/share/doc/${PF}"
100 use blas && myconf="${myconf} --with-blas=-lblas"
101 use arpack && myconf="${myconf} --with-arpack=${EPREFIX}/usr/$(get_libdir)"
102
103 # check which mpi version is installed and tell configure
104 if use mpi; then
105 export CC="${EPREFIX}/usr/bin/mpicc"
106 export F77="${EPREFIX}/usr/bin/mpif77"
107
108 if has_version sys-cluster/mpich; then
109 myconf="${myconf} --with-mpich=${EPREFIX}/usr"
110 elif has_version sys-cluster/mpich2; then
111 myconf="${myconf} --with-mpich2=${EPREFIX}/usr"
112 elif has_version sys-cluster/lam-mpi; then
113 myconf="${myconf} --with-lam=${EPREFIX}/usr"
114 elif has_version sys-cluster/openmpi; then
115 myconf="${myconf} --with-openmpi=${EPREFIX}/usr"
116 fi
117 fi || die "Failed to select proper mpi implementation"
118
119 # we need the tools target for python
120 if use python && ! use tools; then
121 myconf="${myconf} --enable-tools"
122 fi
123
124 econf \
125 --disable-maloc-rebuild \
126 $(use_enable openmp) \
127 $(use_enable python) \
128 $(use_enable tools) \
129 ${myconf}
130 }
131
132 src_compile() {
133 emake -j1 || die "make failed"
134 }
135
136 src_test() {
137 cd examples && make test \
138 || die "Tests failed"
139 }
140
141 src_install() {
142 emake -j1 DESTDIR="${D}" install \
143 || die "make install failed"
144
145 if use tools; then
146 mv tools/mesh/{,mesh-}analysis || die
147 dobin tools/mesh/* || die
148
149 if use arpack; then
150 dobin tools/arpack/* || die
151 fi
152
153 insinto /usr/share/${PN}
154 doins -r tools/conversion || die
155 doins -r tools/visualization/opendx || die
156
157 dobin tools/manip/{born,coulomb} || die
158
159 doins -r tools/matlab || die
160 fi
161
162 insinto $(python_get_sitedir)/${PN}
163 doins tools/manip/*.py || die
164
165 if use python && ! use mpi; then
166 insinto $(python_get_sitedir)/${PN}
167 doins tools/python/{*.py,*.pqr,*.so} || die
168 doins tools/python/*/{*.py,*.so} || die
169 fi
170
171 dodoc AUTHORS INSTALL README NEWS ChangeLog \
172 || die "Failed to install docs"
173
174 if use doc; then
175 dohtml -r doc/* || die "Failed to install html docs"
176 fi
177 }
178
179 pkg_postinst() {
180 python_mod_optimize ${PN}
181 }
182
183 pkg_postrm() {
184 python_mod_cleanup ${PN}
185 }