1 |
jlec 10/11/04 09:35:20 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: pdb2pqr-1.7.0-r1.ebuild |
5 |
Log: |
6 |
Added support for psb2pka |
7 |
|
8 |
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.5 sci-chemistry/pdb2pqr/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb2pqr/metadata.xml?rev=1.5&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb2pqr/metadata.xml?rev=1.5&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb2pqr/metadata.xml?r1=1.4&r2=1.5 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/metadata.xml,v |
20 |
retrieving revision 1.4 |
21 |
retrieving revision 1.5 |
22 |
diff -u -r1.4 -r1.5 |
23 |
--- metadata.xml 11 Mar 2010 22:47:07 -0000 1.4 |
24 |
+++ metadata.xml 4 Nov 2010 09:35:19 -0000 1.5 |
25 |
@@ -3,6 +3,7 @@ |
26 |
<pkgmetadata> |
27 |
<herd>sci-chemistry</herd> |
28 |
<use> |
29 |
- <flag name='opal'>Add web interface via opal</flag> |
30 |
+ <flag name='opal'>Add web interface via opal</flag> |
31 |
+ <flag name='pdb2pka'>Install experimental pdb2pka interface</flag> |
32 |
</use> |
33 |
</pkgmetadata> |
34 |
|
35 |
|
36 |
|
37 |
1.29 sci-chemistry/pdb2pqr/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog?rev=1.29&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog?rev=1.29&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog?r1=1.28&r2=1.29 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog,v |
46 |
retrieving revision 1.28 |
47 |
retrieving revision 1.29 |
48 |
diff -u -r1.28 -r1.29 |
49 |
--- ChangeLog 15 Oct 2010 18:56:50 -0000 1.28 |
50 |
+++ ChangeLog 4 Nov 2010 09:35:19 -0000 1.29 |
51 |
@@ -1,6 +1,12 @@ |
52 |
# ChangeLog for sci-chemistry/pdb2pqr |
53 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog,v 1.28 2010/10/15 18:56:50 ranger Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog,v 1.29 2010/11/04 09:35:19 jlec Exp $ |
56 |
+ |
57 |
+*pdb2pqr-1.7.0-r1 (04 Nov 2010) |
58 |
+ |
59 |
+ 04 Nov 2010; Justin Lecher <jlec@g.o> +pdb2pqr-1.7.0-r1.ebuild, |
60 |
+ metadata.xml: |
61 |
+ Added support for psb2pka |
62 |
|
63 |
15 Oct 2010; Brent Baude <ranger@g.o> pdb2pqr-1.5.0-r2.ebuild: |
64 |
stable ppc, bug 321897 |
65 |
|
66 |
|
67 |
|
68 |
1.1 sci-chemistry/pdb2pqr/pdb2pqr-1.7.0-r1.ebuild |
69 |
|
70 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.7.0-r1.ebuild?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.7.0-r1.ebuild?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: pdb2pqr-1.7.0-r1.ebuild |
74 |
=================================================================== |
75 |
# Copyright 1999-2010 Gentoo Foundation |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.7.0-r1.ebuild,v 1.1 2010/11/04 09:35:20 jlec Exp $ |
78 |
|
79 |
EAPI="3" |
80 |
|
81 |
SUPPORT_PYTHON_ABIS="1" |
82 |
PYTHON_EXPORT_PHASE_FUNCTIONS="1" |
83 |
RESTRICT_PYTHON_ABIS="2.4 3.*" |
84 |
|
85 |
inherit eutils fortran multilib flag-o-matic distutils python versionator toolchain-funcs |
86 |
|
87 |
FORTRAN="g77 gfortran" |
88 |
|
89 |
MY_PV=$(get_version_component_range 1-2) |
90 |
MY_P="${PN}-${MY_PV}" |
91 |
|
92 |
DESCRIPTION="An automated pipeline for performing Poisson-Boltzmann electrostatics calculations" |
93 |
LICENSE="BSD" |
94 |
HOMEPAGE="http://pdb2pqr.sourceforge.net/" |
95 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
96 |
|
97 |
SLOT="0" |
98 |
IUSE="doc examples opal +pdb2pka" |
99 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
100 |
|
101 |
RDEPEND=" |
102 |
dev-python/numpy |
103 |
sci-chemistry/openbabel |
104 |
opal? ( dev-python/zsi ) |
105 |
pdb2pka? ( sci-chemistry/apbs[python,-mpi] )" |
106 |
DEPEND="${DEPEND}" |
107 |
|
108 |
S="${WORKDIR}/${MY_P}" |
109 |
|
110 |
pkg_setup() { |
111 |
if [[ -z ${MAXATOMS} ]]; then |
112 |
einfo "If you like to have support for more then 10000 atoms," |
113 |
einfo "export MAXATOMS=\"your value\"" |
114 |
else |
115 |
einfo "Allow usage of ${MAXATOMS} during calculations" |
116 |
fi |
117 |
python_pkg_setup |
118 |
} |
119 |
|
120 |
src_prepare() { |
121 |
epatch "${FILESDIR}"/${PN}-1.4.0-ldflags.patch |
122 |
epatch "${FILESDIR}"/${PN}-1.4.0-automagic.patch |
123 |
epatch "${FILESDIR}"/${PV}-install.patch |
124 |
sed '50,200s:CWD:DESTDIR:g' -i Makefile.am \ |
125 |
|| die "Failed to fix Makefile.am" |
126 |
python_src_prepare |
127 |
preparation() { |
128 |
eautoreconf |
129 |
} |
130 |
python_execute_function -s preparation |
131 |
tc-export CC |
132 |
} |
133 |
|
134 |
src_configure() { |
135 |
# we need to compile the *.so as pic |
136 |
append-flags -fPIC |
137 |
FFLAGS="${FFLAGS} -fPIC" |
138 |
|
139 |
configuration() { |
140 |
# Avoid automagic to numeric |
141 |
NUMPY="${EPREFIX}/$(python_get_sitedir)" \ |
142 |
F77="${FORTRANC}" \ |
143 |
econf \ |
144 |
--enable-propka \ |
145 |
--with-max-atoms=${MAXATOMS:-10000} \ |
146 |
$(use_enable pdb2pka) \ |
147 |
$(use_with opal) || \ |
148 |
die "econf failed" |
149 |
} |
150 |
python_execute_function -s configuration |
151 |
} |
152 |
|
153 |
src_test() { |
154 |
testing() { |
155 |
emake -j1 test \ |
156 |
|| die "tests failed" |
157 |
} |
158 |
python_execute_function -s testing |
159 |
} |
160 |
|
161 |
src_install() { |
162 |
installation() { |
163 |
dodir $(python_get_sitedir)/${PN} |
164 |
emake -j1 DESTDIR="${ED}$(python_get_sitedir)/${PN}" \ |
165 |
PREFIX="" install || die "install failed" |
166 |
|
167 |
INPATH="$(python_get_sitedir)/${PN}" |
168 |
|
169 |
# generate pdb2pqr wrapper |
170 |
cat >> "${T}"/${PN}-$(python_get_version) <<-EOF |
171 |
#!/bin/sh |
172 |
$(PYTHON) ${EPREFIX}${INPATH}/${PN}.py \$* |
173 |
EOF |
174 |
|
175 |
cat >> "${T}"/pdb2pka-$(python_get_version) <<-EOF |
176 |
#!/bin/sh |
177 |
$(PYTHON) ${EPREFIX}${INPATH}/pdb2pka/pka.py \$* |
178 |
EOF |
179 |
|
180 |
dobin "${T}"/{${PN},pdb2pka}-$(python_get_version) || die "Failed to install pdb2pqr wrapper." |
181 |
|
182 |
insinto "${INPATH}" |
183 |
doins __init__.py || \ |
184 |
die "Setting up the pdb2pqr site-package failed." |
185 |
|
186 |
exeinto "${INPATH}" |
187 |
doexe ${PN}.py || die "Installing pdb2pqr failed." |
188 |
|
189 |
insinto "${INPATH}"/dat |
190 |
doins dat/* || die "Installing data failed." |
191 |
|
192 |
exeinto "${INPATH}"/extensions |
193 |
doexe extensions/* || \ |
194 |
die "Failed to install extensions." |
195 |
|
196 |
insinto "${INPATH}"/src |
197 |
doins src/*.py || die "Installing of python scripts failed." |
198 |
|
199 |
exeinto "${INPATH}"/propka |
200 |
doexe propka/_propkalib.so || \ |
201 |
die "Failed to install propka." |
202 |
|
203 |
insinto "${INPATH}"/propka |
204 |
doins propka/propkalib.py propka/__init__.py || \ |
205 |
die "Failed to install propka." |
206 |
|
207 |
insinto "${INPATH}"/pdb2pka |
208 |
doins pdb2pka/*.{py,so,DAT,h} || \ |
209 |
die "Failed to install pdb2pka." |
210 |
|
211 |
dosym ../../apbs/_apbslib.so "${INPATH}"/pdb2pka/_apbslib.so |
212 |
dosym ../../apbs/apbslib.py "${INPATH}"/pdb2pka/apbslib.py |
213 |
dosym ../../apbs/apbslib.pyc "${INPATH}"/pdb2pka/apbslib.pyc |
214 |
dosym ../../apbs/apbslib.pyo "${INPATH}"/pdb2pka/apbslib.pyo |
215 |
} |
216 |
python_execute_function -s installation |
217 |
|
218 |
dosym ${PN}-$(python_get_version -f) /usr/bin/${PN} |
219 |
dosym pdb2pka-$(python_get_version -f) /usr/bin/pdb2pka |
220 |
|
221 |
if use doc; then |
222 |
cd doc |
223 |
sh genpydoc.sh \ |
224 |
|| die "genpydoc failed" |
225 |
dohtml -r *.html images pydoc \ |
226 |
|| die "failed to install html docs" |
227 |
cd - |
228 |
fi |
229 |
|
230 |
if use examples; then |
231 |
insinto /usr/share/${PN}/ |
232 |
doins -r examples || die "Failed to install examples." |
233 |
fi |
234 |
|
235 |
dodoc ChangeLog NEWS README AUTHORS || \ |
236 |
die "Failed to install docs" |
237 |
} |