Gentoo Archives: gentoo-commits

From: "Markus Dittrich (markusle)" <markusle@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/pdb2pqr: ChangeLog pdb2pqr-1.5.0.ebuild pdb2pqr-1.1.2.ebuild pdb2pqr-1.2.1.ebuild
Date: Tue, 03 Nov 2009 05:40:28
Message-Id: E1N5C82-0008Ns-Bg@stork.gentoo.org
1 markusle 09/11/03 05:40:26
2
3 Modified: ChangeLog
4 Added: pdb2pqr-1.5.0.ebuild
5 Removed: pdb2pqr-1.1.2.ebuild pdb2pqr-1.2.1.ebuild
6 Log:
7 Version bump and removed old ebuilds.
8 (Portage version: 2.1.7.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.19 sci-chemistry/pdb2pqr/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog?r1=1.18&r2=1.19
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- ChangeLog 24 Sep 2009 23:43:11 -0000 1.18
24 +++ ChangeLog 3 Nov 2009 05:40:25 -0000 1.19
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sci-chemistry/pdb2pqr
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog,v 1.18 2009/09/24 23:43:11 markusle Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog,v 1.19 2009/11/03 05:40:25 markusle Exp $
30 +
31 +*pdb2pqr-1.5.0 (03 Nov 2009)
32 +
33 + 03 Nov 2009; Markus Dittrich <markusle@g.o> -pdb2pqr-1.1.2.ebuild,
34 + -files/pdb2pqr-1.1.2-fpic-gentoo.patch, -files/pdb2pqr-gcc4-gentoo.patch,
35 + -files/pdb2pqr-1.1.2-gcc4-gentoo.patch, -pdb2pqr-1.2.1.ebuild,
36 + -files/pdb2pqr-propka-gentoo.patch, +pdb2pqr-1.5.0.ebuild:
37 + Version bump and removed old ebuilds.
38
39 24 Sep 2009; Markus Dittrich <markusle@g.o>
40 pdb2pqr-1.4.0-r1.ebuild, files/pdb2pqr-1.4.0-automagic.patch:
41
42
43
44 1.1 sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild?rev=1.1&content-type=text/plain
48
49 Index: pdb2pqr-1.5.0.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild,v 1.1 2009/11/03 05:40:25 markusle Exp $
54
55 inherit eutils fortran multilib flag-o-matic distutils python versionator
56
57 MY_PV=$(get_version_component_range 1-2)
58 MY_P="${PN}-${MY_PV}"
59
60 DESCRIPTION="An automated pipeline for performing Poisson-Boltzmann electrostatics calculations"
61 LICENSE="BSD"
62 HOMEPAGE="http://pdb2pqr.sourceforge.net/"
63 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
64
65 SLOT="0"
66 IUSE="doc examples opal"
67 KEYWORDS="~amd64 ~x86"
68
69 DEPEND="dev-lang/python
70 dev-python/numpy
71 opal? ( dev-python/zsi )"
72 RDEPEND="${DEPEND}"
73
74 FORTRAN="g77 gfortran"
75
76 S="${WORKDIR}/${MY_P}"
77
78 src_unpack() {
79 unpack ${A}
80 cd "${S}"
81 epatch "${FILESDIR}"/${PN}-1.4.0-ldflags.patch
82 epatch "${FILESDIR}"/${PN}-1.4.0-automagic.patch
83 epatch "${FILESDIR}"/${PN}-1.4.0-install.patch
84 sed '50,200s:CWD:DESTDIR:g' -i Makefile.am \
85 || die "Failed to fix Makefile.am"
86 eautoreconf
87 }
88
89 src_compile() {
90 # we need to compile the *.so as pic
91 append-flags -fPIC
92 FFLAGS="${FFLAGS} -fPIC"
93
94 # Avoid automagic to numeric
95 NUMPY="$(python_get_sitedir)" \
96 F77="${FORTRANC}" \
97 econf \
98 $(use_with opal) || \
99 die "econf failed"
100 emake || die "emake failed"
101 }
102
103 src_test() {
104 emake -j1 test && \
105 F77="${FORTRANC}" emake -j1 adv-test \
106 || die "tests failed"
107 }
108
109 src_install() {
110 dodir $(python_get_sitedir)/${PN}
111 emake -j1 DESTDIR="${D}$(python_get_sitedir)/${PN}" \
112 PREFIX="" install || die "install failed"
113
114 if use doc; then
115 cd doc
116 sh genpydoc.sh \
117 || die "genpydoc failed"
118 dohtml -r *.html images pydoc \
119 || die "failed to install html docs"
120 cd -
121 fi
122
123 if use examples; then
124 insinto /usr/share/${PN}/
125 doins -r examples || die "Failed to install examples."
126 fi
127
128 INPATH="$(python_get_sitedir)/${PN}"
129
130 # generate pdb2pqr wrapper
131 cat >> "${T}"/${PN} <<-EOF
132 #!/bin/sh
133 ${python} ${INPATH}/${PN}.py \$*
134 EOF
135
136 exeinto /usr/bin
137 doexe "${T}"/${PN} || die "Failed to install pdb2pqr wrapper."
138
139 dodoc ChangeLog NEWS README AUTHORS || \
140 die "Failed to install docs"
141
142 insinto "${INPATH}"
143 doins __init__.py || \
144 die "Setting up the pdb2pqr site-package failed."
145
146 exeinto "${INPATH}"
147 doexe ${PN}.py || die "Installing pdb2pqr failed."
148
149 insinto "${INPATH}"/dat
150 doins dat/* || die "Installing data failed."
151
152 exeinto "${INPATH}"/extensions
153 doexe extensions/* || \
154 die "Failed to install extensions."
155
156 insinto "${INPATH}"/src
157 doins src/*.py || die "Installing of python scripts failed."
158
159 exeinto "${INPATH}"/propka
160 doexe propka/_propkalib.so || \
161 die "Failed to install propka."
162
163 insinto "${INPATH}"/propka
164 doins propka/propkalib.py propka/__init__.py || \
165 die "Failed to install propka."
166
167 insinto "${INPATH}"/pdb2pka
168 doins pdb2pka/*.{py,so,DAT,h} || \
169 die "Failed to install pdb2pka."
170
171 insinto "${INPATH}"/pdb2pka/
172 doins pdb2pka/*.{py,so,DAT,h} || \
173 die "Failed to install pdb2pka."
174 }