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