1 |
commit: 1df9e9852aa897e84757dfbe98bcbbacb7f77b2f |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 4 12:18:33 2012 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 4 12:18:33 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1df9e985 |
7 |
|
8 |
sci-chemistry/mgltools-pmv: Fix for bytecompiling |
9 |
|
10 |
(Portage version: 2.2.0_alpha109/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
sci-chemistry/mgltools-pmv/ChangeLog | 4 + |
14 |
.../files/mgltools-pmv-1.5.6_rc2-code-fix.patch | 66 ++++++++++++++++++++ |
15 |
.../mgltools-pmv/mgltools-pmv-1.5.6_rc2.ebuild | 2 + |
16 |
3 files changed, 72 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/sci-chemistry/mgltools-pmv/ChangeLog b/sci-chemistry/mgltools-pmv/ChangeLog |
19 |
index c6905e2..ba0327f 100644 |
20 |
--- a/sci-chemistry/mgltools-pmv/ChangeLog |
21 |
+++ b/sci-chemistry/mgltools-pmv/ChangeLog |
22 |
@@ -2,6 +2,10 @@ |
23 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
24 |
# $Header: $ |
25 |
|
26 |
+ 04 Jun 2012; Justin Lecher <jlec@g.o> mgltools-pmv-1.5.6_rc2.ebuild, |
27 |
+ +files/mgltools-pmv-1.5.6_rc2-code-fix.patch: |
28 |
+ Fix for bytecompiling |
29 |
+ |
30 |
27 Apr 2012; Justin Lecher <jlec@g.o> mgltools-pmv-1.5.4-r1.ebuild, |
31 |
mgltools-pmv-1.5.6_rc2.ebuild: |
32 |
Add 2.7-pypy-* to RESTRICT_PYTHON_ABIS |
33 |
|
34 |
diff --git a/sci-chemistry/mgltools-pmv/files/mgltools-pmv-1.5.6_rc2-code-fix.patch b/sci-chemistry/mgltools-pmv/files/mgltools-pmv-1.5.6_rc2-code-fix.patch |
35 |
new file mode 100644 |
36 |
index 0000000..10e2d3b |
37 |
--- /dev/null |
38 |
+++ b/sci-chemistry/mgltools-pmv/files/mgltools-pmv-1.5.6_rc2-code-fix.patch |
39 |
@@ -0,0 +1,66 @@ |
40 |
+ .../blender/plugin/blenderPmvClientGUI.py | 2 +- |
41 |
+ .../cinema4d/plugin/epmv_c4d_plugin.py | 2 +- |
42 |
+ Pmv/hostappInterface/cinema4d/test/energy_test.py | 4 ++-- |
43 |
+ Pmv/styles/sessionToStyle.py | 3 +-- |
44 |
+ 4 files changed, 5 insertions(+), 6 deletions(-) |
45 |
+ |
46 |
+diff --git a/Pmv/hostappInterface/blender/plugin/blenderPmvClientGUI.py b/Pmv/hostappInterface/blender/plugin/blenderPmvClientGUI.py |
47 |
+index 68e09c0..d52b17d 100644 |
48 |
+--- a/Pmv/hostappInterface/blender/plugin/blenderPmvClientGUI.py |
49 |
++++ b/Pmv/hostappInterface/blender/plugin/blenderPmvClientGUI.py |
50 |
+@@ -46,7 +46,7 @@ interface... |
51 |
+ import math |
52 |
+ import sys |
53 |
+ |
54 |
+-MGL_ROOT= #'/Library/MGLTools/1.5.6.csv' |
55 |
++MGL_ROOT= "" #'/Library/MGLTools/1.5.6.csv' |
56 |
+ sys.path[0]=(MGL_ROOT+'/lib/python2.5/site-packages') |
57 |
+ sys.path.append(MGL_ROOT+'/lib/python2.5/site-packages/PIL') |
58 |
+ sys.path.append(MGL_ROOT+'/MGLToolsPckgs') |
59 |
+diff --git a/Pmv/hostappInterface/cinema4d/plugin/epmv_c4d_plugin.py b/Pmv/hostappInterface/cinema4d/plugin/epmv_c4d_plugin.py |
60 |
+index 42617e3..6087cd0 100644 |
61 |
+--- a/Pmv/hostappInterface/cinema4d/plugin/epmv_c4d_plugin.py |
62 |
++++ b/Pmv/hostappInterface/cinema4d/plugin/epmv_c4d_plugin.py |
63 |
+@@ -38,7 +38,7 @@ __version__="v0.1.1a" |
64 |
+ # ***** END GPL LICENCE BLOCK ***** |
65 |
+ # -------------------------------------------------------------------------- |
66 |
+ |
67 |
+-MGL_ROOT= |
68 |
++MGL_ROOT= "" |
69 |
+ |
70 |
+ #TODO: |
71 |
+ #make the pyrosetta extension |
72 |
+diff --git a/Pmv/hostappInterface/cinema4d/test/energy_test.py b/Pmv/hostappInterface/cinema4d/test/energy_test.py |
73 |
+index 9393e25..c5f83c9 100644 |
74 |
+--- a/Pmv/hostappInterface/cinema4d/test/energy_test.py |
75 |
++++ b/Pmv/hostappInterface/cinema4d/test/energy_test.py |
76 |
+@@ -56,7 +56,7 @@ c = self.md_Amber94 |
77 |
+ #call md_Amber94 command |
78 |
+ #c('mdtest5', 349, callback=1, filename='0', log=0, callback_freq=10) |
79 |
+ import thread |
80 |
+-thread.start_new(c,('mdtest5', 349, callback=1, filename='0', log=0, callback_freq=10)) |
81 |
++thread.start_new_thread(c,'mdtest5', 349, callback=1, filename='0', log=0, callback_freq=10) |
82 |
+ thr = MyThread()#c,'mdtest5', 349, callback=1, filename='0', log=0, callback_freq=10) |
83 |
+ thr.start(back=True) |
84 |
+ #do some other operations here |
85 |
+@@ -101,4 +101,4 @@ for mode in modes: |
86 |
+ |
87 |
+ |
88 |
+ # Show animation of the first non-trivial mode |
89 |
+-view(modes[6]) |
90 |
+\ No newline at end of file |
91 |
++view(modes[6]) |
92 |
+diff --git a/Pmv/styles/sessionToStyle.py b/Pmv/styles/sessionToStyle.py |
93 |
+index 013bae1..4b0db48 100644 |
94 |
+--- a/Pmv/styles/sessionToStyle.py |
95 |
++++ b/Pmv/styles/sessionToStyle.py |
96 |
+@@ -14,8 +14,7 @@ name, ext = os.path.splitext(filename) |
97 |
+ f = open(name+'_style.py', 'w') |
98 |
+ f.write("numberOfMolecules = 1\n\n") |
99 |
+ |
100 |
+-f.write("__doc__ = """Style_01: Applies to X molecules. It displays .. |
101 |
+-"""\n") |
102 |
++f.write('__doc__ = """Style_01: Applies to X molecules. It displays .."""\n') |
103 |
+ |
104 |
+ f.write("def applyStyle(mv, molName):\n") |
105 |
+ f.write(" mode='both'\n") |
106 |
|
107 |
diff --git a/sci-chemistry/mgltools-pmv/mgltools-pmv-1.5.6_rc2.ebuild b/sci-chemistry/mgltools-pmv/mgltools-pmv-1.5.6_rc2.ebuild |
108 |
index ecdb305..7364c56 100644 |
109 |
--- a/sci-chemistry/mgltools-pmv/mgltools-pmv-1.5.6_rc2.ebuild |
110 |
+++ b/sci-chemistry/mgltools-pmv/mgltools-pmv-1.5.6_rc2.ebuild |
111 |
@@ -46,5 +46,7 @@ src_prepare() { |
112 |
-e 's:^.*CVS:#&1:g' \ |
113 |
-e 's:^.*LICENSE:#&1:g' \ |
114 |
-i "${S}"/MANIFEST.in || die |
115 |
+ |
116 |
+ epatch "${FILESDIR}"/${P}-code-fix.patch |
117 |
distutils_src_prepare |
118 |
} |