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