1 |
jlec 13/01/30 08:51:20 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pymol-1.5.0.3-r2.ebuild |
5 |
Log: |
6 |
sci-chemistry/pymol: Move to new python eclasses, #453572 |
7 |
|
8 |
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 70EB7916) |
9 |
|
10 |
Revision Changes Path |
11 |
1.98 sci-chemistry/pymol/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pymol/ChangeLog?rev=1.98&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pymol/ChangeLog?rev=1.98&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pymol/ChangeLog?r1=1.97&r2=1.98 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v |
20 |
retrieving revision 1.97 |
21 |
retrieving revision 1.98 |
22 |
diff -u -r1.97 -r1.98 |
23 |
--- ChangeLog 22 Jan 2013 19:10:13 -0000 1.97 |
24 |
+++ ChangeLog 30 Jan 2013 08:51:20 -0000 1.98 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sci-chemistry/pymol |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v 1.97 2013/01/22 19:10:13 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v 1.98 2013/01/30 08:51:20 jlec Exp $ |
30 |
+ |
31 |
+*pymol-1.5.0.3-r2 (30 Jan 2013) |
32 |
+ |
33 |
+ 30 Jan 2013; Justin Lecher <jlec@g.o> +pymol-1.5.0.3-r2.ebuild: |
34 |
+ Move to new python eclasses, #453572 |
35 |
|
36 |
22 Jan 2013; Justin Lecher <jlec@g.o> pymol-1.5.0.3-r1.ebuild, |
37 |
metadata.xml: |
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-chemistry/pymol/pymol-1.5.0.3-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pymol/pymol-1.5.0.3-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pymol/pymol-1.5.0.3-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: pymol-1.5.0.3-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/pymol-1.5.0.3-r2.ebuild,v 1.1 2013/01/30 08:51:20 jlec Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
PYTHON_COMPAT=( python2_7 ) |
55 |
PYTHON_REQ_USE="tk" |
56 |
|
57 |
inherit distutils-r1 fdo-mime prefix versionator |
58 |
|
59 |
DESCRIPTION="A Python-extensible molecular graphics system" |
60 |
HOMEPAGE="http://pymol.sourceforge.net/" |
61 |
SRC_URI=" |
62 |
http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz |
63 |
http://dev.gentoo.org/~jlec/distfiles/${PN}-icons.tar.xz" |
64 |
|
65 |
LICENSE="PSF-2.2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" |
68 |
IUSE="apbs numpy vmd web" |
69 |
|
70 |
DEPEND=" |
71 |
dev-python/numpy |
72 |
dev-python/pmw[${PYTHON_USEDEP}] |
73 |
media-libs/freetype:2 |
74 |
media-libs/glew |
75 |
media-libs/libpng |
76 |
media-video/mpeg-tools |
77 |
sys-libs/zlib |
78 |
media-libs/freeglut |
79 |
apbs? ( |
80 |
dev-libs/maloc |
81 |
sci-chemistry/apbs |
82 |
sci-chemistry/pdb2pqr |
83 |
sci-chemistry/pymol-apbs-plugin |
84 |
) |
85 |
web? ( !dev-python/webpy )" |
86 |
RDEPEND="${DEPEND}" |
87 |
|
88 |
python_prepare_all() { |
89 |
local PATCHES=( |
90 |
"${FILESDIR}"/${PN}-1.5.0.1-setup.py.patch |
91 |
"${FILESDIR}"/${PN}-1.5.0.1-data-path.patch |
92 |
"${FILESDIR}"/${PN}-1.5.0.1-flags.patch |
93 |
"${FILESDIR}"/${P}-prefix.patch |
94 |
) |
95 |
|
96 |
use web || PATCHES+=( "${FILESDIR}"/${P}-web.patch ) |
97 |
use vmd && PATCHES+=( "${FILESDIR}"/${PN}-1.5.0.1-vmd.patch ) |
98 |
|
99 |
if use numpy; then |
100 |
sed \ |
101 |
-e '/PYMOL_NUMPY/s:^#::g' \ |
102 |
-i setup.py || die |
103 |
fi |
104 |
|
105 |
rm ./modules/pmg_tk/startup/apbs_tools.py || die |
106 |
|
107 |
python_export python2_7 EPYTHON PYTHON_SITEDIR |
108 |
echo "site_packages = \'$(python_get_sitedir)\'" > setup3.py || die |
109 |
|
110 |
sed \ |
111 |
-e "s:/opt/local:${EPREFIX}/usr:g" \ |
112 |
-e '/ext_comp_args/s:\[.*\]:[]:g' \ |
113 |
-i setup.py || die |
114 |
|
115 |
distutils-r1_python_prepare_all |
116 |
|
117 |
eprefixify setup.py |
118 |
} |
119 |
|
120 |
python_install_all() { |
121 |
distutils-r1_python_install_all |
122 |
|
123 |
python_export python2_7 EPYTHON |
124 |
|
125 |
# These environment variables should not go in the wrapper script, or else |
126 |
# it will be impossible to use the PyMOL libraries from Python. |
127 |
cat >> "${T}"/20pymol <<- EOF |
128 |
PYMOL_PATH="${EPREFIX}/$(python_get_sitedir)/${PN}" |
129 |
PYMOL_DATA="${EPREFIX}/usr/share/pymol/data" |
130 |
PYMOL_SCRIPTS="${EPREFIX}/usr/share/pymol/scripts" |
131 |
EOF |
132 |
|
133 |
doenvd "${T}"/20pymol |
134 |
|
135 |
cat >> "${T}"/pymol <<- EOF |
136 |
#!/bin/sh |
137 |
${EPYTHON} -O \${PYMOL_PATH}/__init__.py -q \$* |
138 |
EOF |
139 |
|
140 |
dobin "${T}"/pymol |
141 |
|
142 |
insinto /usr/share/pymol |
143 |
doins -r test data scripts |
144 |
|
145 |
insinto /usr/share/pymol/examples |
146 |
doins -r examples |
147 |
|
148 |
dodoc DEVELOPERS README |
149 |
|
150 |
doicon "${WORKDIR}"/${PN}.{xpm,png} |
151 |
make_desktop_entry pymol PyMol ${PN} "Graphics;Education;Science;Chemistry" "MimeType=chemical/x-pdb;" |
152 |
} |
153 |
|
154 |
pkg_postinst() { |
155 |
elog "\t USE=shaders was removed," |
156 |
elog "please use pymol config settings (~/.pymolrc)" |
157 |
elog "\t set use_shaders, 1" |
158 |
elog "in case of crashes, please deactivate this experimental feature by setting" |
159 |
elog "\t set use_shaders, 0" |
160 |
elog "\t set sphere_mode, 0" |
161 |
fdo-mime_desktop_database_update |
162 |
fdo-mime_mime_database_update |
163 |
} |
164 |
|
165 |
pkg_postrm() { |
166 |
fdo-mime_desktop_database_update |
167 |
fdo-mime_mime_database_update |
168 |
} |