Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/pymol: ChangeLog pymol-1.2.3-r1.ebuild pymol-1.2.3.ebuild
Date: Mon, 22 Feb 2010 07:51:58
Message-Id: E1NjT57-0007Dm-4n@stork.gentoo.org
1 jlec 10/02/22 07:51:53
2
3 Modified: ChangeLog
4 Added: pymol-1.2.3-r1.ebuild
5 Removed: pymol-1.2.3.ebuild
6 Log:
7 Fix the actual revision of version 1.2.3
8 (Portage version: 2.2_rc62/cvs/Linux i686)
9
10 Revision Changes Path
11 1.58 sci-chemistry/pymol/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?rev=1.58&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?rev=1.58&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?r1=1.57&r2=1.58
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v
20 retrieving revision 1.57
21 retrieving revision 1.58
22 diff -u -r1.57 -r1.58
23 --- ChangeLog 20 Feb 2010 12:11:56 -0000 1.57
24 +++ ChangeLog 22 Feb 2010 07:51:52 -0000 1.58
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-chemistry/pymol
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v 1.57 2010/02/20 12:11:56 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v 1.58 2010/02/22 07:51:52 jlec Exp $
30 +
31 +*pymol-1.2.3-r1 (22 Feb 2010)
32 +
33 + 22 Feb 2010; Justin Lecher (jlec) <jlec@×××××××××.net>
34 + -pymol-1.2.3.ebuild, +pymol-1.2.3-r1.ebuild:
35 + Fix the actual revision of version 1.2.3
36
37 *pymol-1.2.3 (20 Feb 2010)
38
39
40
41
42 1.1 sci-chemistry/pymol/pymol-1.2.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.2.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.2.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pymol-1.2.3-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-1.2.3-r1.ebuild,v 1.1 2010/02/22 07:51:52 jlec Exp $
52
53 EAPI="3"
54
55 SUPPORT_PYTHON_ABIS="1"
56 PYTHON_USE_WITH="tk"
57 REV="3891"
58
59 inherit eutils distutils prefix
60
61 DESCRIPTION="A Python-extensible molecular graphics system."
62 HOMEPAGE="http://pymol.sourceforge.net/"
63 SRC_URI="http://pymol.svn.sourceforge.net/viewvc/pymol/trunk/pymol.tar.gz?view=tar&pathrev=${REV} -> ${P}.tar.gz"
64
65 LICENSE="PSF-2.2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
68 IUSE="apbs numpy shaders vmd"
69
70 DEPEND="
71 dev-python/numpy
72 dev-python/pmw
73 media-libs/freetype:2
74 media-libs/libpng
75 media-video/mpeg-tools
76 sys-libs/zlib
77 virtual/glut
78 apbs? (
79 dev-libs/maloc
80 sci-chemistry/apbs
81 sci-chemistry/pdb2pqr
82 sci-chemistry/pymol-apbs-plugin
83 )"
84 RDEPEND="${DEPEND}"
85 RESTRICT_PYTHON_ABIS="3.* 2.4"
86
87 S="${WORKDIR}"/${PN}
88
89 src_prepare() {
90 epatch "${FILESDIR}"/1.2.2-data-path.patch
91
92 epatch "${FILESDIR}"/1.2.2-prefix.patch && \
93 eprefixify setup.py
94
95 # Turn off splash screen. Please do make a project contribution
96 # if you are able though. #299020
97 epatch "${FILESDIR}"/1.2.1/nosplash-gentoo.patch
98
99 # Respect CFLAGS
100 sed -i \
101 -e "s:\(ext_comp_args=\).*:\1[]:g" \
102 "${S}"/setup.py || die "Failed running sed on setup.py"
103
104 use shaders && epatch "${FILESDIR}"/${PN}-1.2.2-shaders.patch
105
106 use vmd && epatch "${FILESDIR}"/${PN}-1.2.2-vmd.patch
107
108 use numpy && \
109 sed \
110 -e '/PYMOL_NUMPY/s:^#::g' \
111 -i setup.py
112
113 rm ./modules/pmg_tk/startup/apbs_tools.py || die
114
115 # python 3.* fix
116 # sed '452,465d' -i setup.py
117 distutils_src_prepare
118 }
119
120 src_configure() {
121 :
122 }
123
124 src_install() {
125 distutils_src_install
126
127 # These environment variables should not go in the wrapper script, or else
128 # it will be impossible to use the PyMOL libraries from Python.
129 cat >> "${T}"/20pymol <<- EOF
130 PYMOL_PATH="${EPREFIX}/$(python_get_sitedir -f)/${PN}"
131 PYMOL_DATA="${EPREFIX}/usr/share/pymol/data"
132 PYMOL_SCRIPTS="${EPREFIX}/usr/share/pymol/scripts"
133 EOF
134
135 doenvd "${T}"/20pymol || die "Failed to install env.d file."
136
137 cat >> "${T}"/pymol <<- EOF
138 #!/bin/sh
139 $(PYTHON -f) -O \${PYMOL_PATH}/__init__.py \$*
140 EOF
141
142 dobin "${T}"/pymol || die "Failed to install wrapper."
143
144 insinto /usr/share/pymol
145 doins -r test data scripts || die "no shared data"
146
147 insinto /usr/share/pymol/examples
148 doins -r examples || die "Failed to install docs."
149
150 dodoc DEVELOPERS README || die "Failed to install docs."
151
152 # rm "${D}"$(python_get_sitedir)/pmg_tk/startup/apbs_tools.py
153 }