1 |
jlec 10/02/18 13:23:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pymol-1.2.2-r3.ebuild |
5 |
Log: |
6 |
Fixed usage of pathon eclass, EAPI=3 and PREFIX ready fixes, keyworded for amd64-linux & x86-linux |
7 |
(Portage version: 2.2_rc62/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.55 sci-chemistry/pymol/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?rev=1.55&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?rev=1.55&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/ChangeLog?r1=1.54&r2=1.55 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v |
19 |
retrieving revision 1.54 |
20 |
retrieving revision 1.55 |
21 |
diff -u -r1.54 -r1.55 |
22 |
--- ChangeLog 10 Feb 2010 11:22:34 -0000 1.54 |
23 |
+++ ChangeLog 18 Feb 2010 13:23:48 -0000 1.55 |
24 |
@@ -1,6 +1,13 @@ |
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.54 2010/02/10 11:22:34 jlec Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol/ChangeLog,v 1.55 2010/02/18 13:23:48 jlec Exp $ |
29 |
+ |
30 |
+*pymol-1.2.2-r3 (18 Feb 2010) |
31 |
+ |
32 |
+ 18 Feb 2010; Justin Lecher (jlec) <jlec@×××××××××.net> |
33 |
+ +files/1.2.2-prefix.patch, +pymol-1.2.2-r3.ebuild: |
34 |
+ Fixed usage of pathon eclass, EAPI=3 and PREFIX ready fixes, keyworded for |
35 |
+ amd64-linux & x86-linux |
36 |
|
37 |
*pymol-1.2.2-r2 (10 Feb 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-chemistry/pymol/pymol-1.2.2-r3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.2.2-r3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/pymol/pymol-1.2.2-r3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: pymol-1.2.2-r3.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.2-r3.ebuild,v 1.1 2010/02/18 13:23:48 jlec Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
|
55 |
PYTHON_USE_WITH="tk" |
56 |
PYTHON_DEPEND="2:2.5" |
57 |
PYTHON_MODNAME="chempy pmg_tk pymol" |
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 |
|
87 |
S="${WORKDIR}"/${PN} |
88 |
|
89 |
pkg_setup() { |
90 |
python_set_active_version 2 |
91 |
} |
92 |
|
93 |
src_prepare() { |
94 |
epatch "${FILESDIR}"/${PV}-data-path.patch |
95 |
|
96 |
epatch "${FILESDIR}"/${PV}-prefix.patch && \ |
97 |
eprefixify setup.py |
98 |
|
99 |
# Turn off splash screen. Please do make a project contribution |
100 |
# if you are able though. #299020 |
101 |
epatch "${FILESDIR}"/1.2.1/nosplash-gentoo.patch |
102 |
|
103 |
# Respect CFLAGS |
104 |
sed -i \ |
105 |
-e "s:\(ext_comp_args=\).*:\1[]:g" \ |
106 |
"${S}"/setup.py || die "Failed running sed on setup.py" |
107 |
|
108 |
use shaders && epatch "${FILESDIR}"/${P}-shaders.patch |
109 |
|
110 |
use vmd && epatch "${FILESDIR}"/${P}-vmd.patch |
111 |
|
112 |
use numpy && \ |
113 |
sed \ |
114 |
-e '/PYMOL_NUMPY/s:^#::g' \ |
115 |
-i setup.py |
116 |
} |
117 |
|
118 |
src_configure() { |
119 |
: |
120 |
} |
121 |
|
122 |
src_install() { |
123 |
distutils_src_install |
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 || die "Failed to install env.d file." |
134 |
|
135 |
cat >> "${T}"/pymol <<- EOF |
136 |
#!/bin/sh |
137 |
$(PYTHON -A -a) -O \${PYMOL_PATH}/__init__.py \$* |
138 |
EOF |
139 |
|
140 |
dobin "${T}"/pymol || die "Failed to install wrapper." |
141 |
|
142 |
insinto /usr/share/pymol |
143 |
doins -r test data scripts || die "no shared data" |
144 |
|
145 |
insinto /usr/share/pymol/examples |
146 |
doins -r examples || die "Failed to install docs." |
147 |
|
148 |
dodoc DEVELOPERS README || die "Failed to install docs." |
149 |
|
150 |
rm "${D}"$(python_get_sitedir)/pmg_tk/startup/apbs_tools.py |
151 |
} |