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