Gentoo Archives: gentoo-commits

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