Gentoo Archives: gentoo-commits

From: "Jeffrey Gardner (je_fro)" <je_fro@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/pymol: pymol-1.0-r1.ebuild pymol-1.2.1.ebuild ChangeLog pymol-0.99_rc10.ebuild
Date: Sun, 02 Aug 2009 14:58:34
Message-Id: E1MXcW7-0001tg-Mc@stork.gentoo.org
1 je_fro 09/08/02 14:58:31
2
3 Modified: pymol-1.0-r1.ebuild ChangeLog
4 pymol-0.99_rc10.ebuild
5 Added: pymol-1.2.1.ebuild
6 Log:
7 New version, works with python 2.6, closes bug #269119. Many thanks to Justin Lecher for doing the work, and fauli for a kick in the pants :)
8 (Portage version: 2.1.6.13/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.4 sci-chemistry/pymol/pymol-1.0-r1.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.0-r1.ebuild?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.0-r1.ebuild?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.0-r1.ebuild?r1=1.3&r2=1.4
16
17 Index: pymol-1.0-r1.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-1.0-r1.ebuild,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- pymol-1.0-r1.ebuild 17 Aug 2008 03:06:59 -0000 1.3
24 +++ pymol-1.0-r1.ebuild 2 Aug 2009 14:58:31 -0000 1.4
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2008 Gentoo Foundation
27 +# Copyright 1999-2009 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-1.0-r1.ebuild,v 1.3 2008/08/17 03:06:59 je_fro Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-1.0-r1.ebuild,v 1.4 2009/08/02 14:58:31 je_fro Exp $
31
32 inherit distutils eutils multilib subversion
33
34 @@ -22,6 +22,8 @@
35 sys-libs/zlib
36 virtual/glut"
37
38 +RDEPEND="${DEPEND}"
39 +
40 src_unpack() {
41 subversion_src_unpack
42
43
44
45
46 1.43 sci-chemistry/pymol/ChangeLog
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?rev=1.43&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?rev=1.43&content-type=text/plain
50 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?r1=1.42&r2=1.43
51
52 Index: ChangeLog
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v
55 retrieving revision 1.42
56 retrieving revision 1.43
57 diff -u -r1.42 -r1.43
58 --- ChangeLog 6 May 2009 21:06:39 -0000 1.42
59 +++ ChangeLog 2 Aug 2009 14:58:31 -0000 1.43
60 @@ -1,6 +1,14 @@
61 # ChangeLog for sci-chemistry/pymol
62 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
63 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v 1.42 2009/05/06 21:06:39 maekke Exp $
64 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v 1.43 2009/08/02 14:58:31 je_fro Exp $
65 +
66 +*pymol-1.2.1 (02 Aug 2009)
67 +
68 + 02 Aug 2009; Jeff Gardner <je_fro@g.o> +pymol-1.2.1.ebuild,
69 + +files/1.2.1/pymol-1.2.1-data-path.patch,
70 + +files/1.2.1/pymol-1.2.1-shaders.patch:
71 + New version, works with python 2.6, closes bug #269119. Many thanks to
72 + Justin Lecher for doing the work, and fauli for a kick in the pants :)
73
74 06 May 2009; Markus Meier <maekke@g.o> pymol-1.1-r2.ebuild:
75 amd64/x86 stable, bug #250903
76
77
78
79 1.9 sci-chemistry/pymol/pymol-0.99_rc10.ebuild
80
81 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-0.99_rc10.ebuild?rev=1.9&view=markup
82 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-0.99_rc10.ebuild?rev=1.9&content-type=text/plain
83 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-0.99_rc10.ebuild?r1=1.8&r2=1.9
84
85 Index: pymol-0.99_rc10.ebuild
86 ===================================================================
87 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-0.99_rc10.ebuild,v
88 retrieving revision 1.8
89 retrieving revision 1.9
90 diff -u -r1.8 -r1.9
91 --- pymol-0.99_rc10.ebuild 16 Apr 2009 13:42:53 -0000 1.8
92 +++ pymol-0.99_rc10.ebuild 2 Aug 2009 14:58:31 -0000 1.9
93 @@ -1,6 +1,6 @@
94 # Copyright 1999-2009 Gentoo Foundation
95 # Distributed under the terms of the GNU General Public License v2
96 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-0.99_rc10.ebuild,v 1.8 2009/04/16 13:42:53 bicatali Exp $
97 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-0.99_rc10.ebuild,v 1.9 2009/08/02 14:58:31 je_fro Exp $
98
99 inherit distutils eutils multilib subversion
100
101 @@ -20,6 +20,8 @@
102 sys-libs/zlib
103 virtual/glut"
104
105 +RDEPEND="${DEPEND}"
106 +
107 src_unpack() {
108 subversion_src_unpack
109
110
111
112
113 1.1 sci-chemistry/pymol/pymol-1.2.1.ebuild
114
115 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.2.1.ebuild?rev=1.1&view=markup
116 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.2.1.ebuild?rev=1.1&content-type=text/plain
117
118 Index: pymol-1.2.1.ebuild
119 ===================================================================
120 # Copyright 1999-2009 Gentoo Foundation
121 # Distributed under the terms of the GNU General Public License v2
122 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-1.2.1.ebuild,v 1.1 2009/08/02 14:58:31 je_fro Exp $
123
124 EAPI="2"
125
126 inherit distutils subversion
127
128 PYTHON_MODNAME="chempy pmg_tk pymol"
129 APBS_PATCH="090618"
130 REV="3825"
131
132 DESCRIPTION="A Python-extensible molecular graphics system."
133 HOMEPAGE="http://pymol.sourceforge.net/"
134 SRC_URI="apbs? ( mirror://gentoo/apbs_tools.py.${APBS_PATCH}.bz2 )"
135 ESVN_REPO_URI="https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol@${REV}"
136
137 LICENSE="PSF-2.2"
138 SLOT="0"
139 KEYWORDS="~amd64 ~x86"
140 IUSE="apbs shaders"
141
142 DEPEND="dev-python/pmw
143 dev-python/numpy
144 >=dev-lang/python-2.4[tk]
145 media-libs/libpng
146 sys-libs/zlib
147 virtual/glut
148 media-video/mpeg-tools
149 apbs? ( dev-libs/maloc
150 sci-chemistry/apbs
151 sci-chemistry/pdb2pqr
152 )"
153 RDEPEND="${DEPEND}"
154
155 pkg_setup(){
156 python_version
157 }
158
159 src_unpack() {
160 use apbs && unpack ${A}
161 subversion_src_unpack
162 }
163
164 src_prepare() {
165 epatch "${FILESDIR}"/${PV}/${P}-data-path.patch \
166 || die "Failed to apply data-path.patch"
167
168 # Turn off splash screen. Please do make a project contribution
169 # if you are able though.
170 [[ -n ${WANT_SPLASH} ]] || epatch "${FILESDIR}"/nosplash-gentoo.patch
171
172 # Respect CFLAGS
173 sed -i \
174 -e "s:\(ext_comp_args=\).*:\1[]:g" \
175 "${S}"/setup.py || die "Failed running sed on setup.py"
176
177 use shaders && epatch "${FILESDIR}"/${PV}/${P}-shaders.patch
178
179 if use apbs; then
180 cp -f "${WORKDIR}"/apbs_tools.py.${APBS_PATCH} modules/pmg_tk/startup/apbs_tools.py \
181 || die "Failed to copy apbs_tools.py"
182
183 sed "s:LIBANDPYTHON:$(python_get_libdir):g" \
184 -i modules/pmg_tk/startup/apbs_tools.py \
185 || die "Failed running sed on apbs_tools.py"
186 fi
187 }
188
189 src_configure() {
190 :
191 }
192
193 src_install() {
194 distutils_src_install
195
196 # These environment variables should not go in the wrapper script, or else
197 # it will be impossible to use the PyMOL libraries from Python.
198 cat >> "${T}"/20pymol <<- EOF
199 PYMOL_PATH=$(python_get_sitedir)/${PN}
200 PYMOL_DATA="/usr/share/pymol/data"
201 PYMOL_SCRIPTS="/usr/share/pymol/scripts"
202 EOF
203
204 if use apbs; then
205 echo "APBS_PSIZE=$(python_get_sitedir)/pdb2pqr/src/psize.py" >> "${T}"/20pymol
206 fi
207
208 doenvd "${T}"/20pymol || die "Failed to install env.d file."
209
210 cat >> "${T}"/pymol <<- EOF
211 #!/bin/sh
212 ${python} -O \${PYMOL_PATH}/__init__.py \$*
213 EOF
214
215 dobin "${T}"/pymol || die "Failed to install wrapper."
216
217 insinto /usr/share/pymol
218 doins -r test data scripts || die "no shared data"
219
220 insinto /usr/share/pymol/examples
221 doins -r examples || die "Failed to install docs."
222
223 dodoc DEVELOPERS README || die "Failed to install docs."
224
225 if ! use apbs; then
226 rm "${D}"$(python_get_sitedir)/pmg_tk/startup/apbs_tools.py
227 fi
228 }
229
230 pkg_postinst(){
231 distutils_pkg_postinst
232
233 # The apbs ebuild was just corrected and not bumped #213616
234 if use apbs; then
235 [ -e /usr/share/apbs-0.5* ] && \
236 ewarn "You need to reemerge sci-chemistry/apbs!"
237 fi
238 }