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