1 |
commit: c6ebc0dc5e591060000b7157a390e416f0d4315a |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 30 15:26:21 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 1 08:35:20 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=c6ebc0dc |
7 |
|
8 |
sci-chemistry/xia2: Version BUmp |
9 |
|
10 |
Package-Manager: portage-2.2.0_alpha177 |
11 |
|
12 |
--- |
13 |
sci-chemistry/xia2/ChangeLog | 69 +++++++++++++++++++ |
14 |
.../xia2/files/xia2-0.3.6.0-fix-syntax.patch | 28 ++++++++ |
15 |
sci-chemistry/xia2/metadata.xml | 8 +++ |
16 |
sci-chemistry/xia2/xia2-0.3.6.0.ebuild | 78 ++++++++++++++++++++++ |
17 |
4 files changed, 183 insertions(+) |
18 |
|
19 |
diff --git a/sci-chemistry/xia2/ChangeLog b/sci-chemistry/xia2/ChangeLog |
20 |
new file mode 100644 |
21 |
index 0000000..5fb3985 |
22 |
--- /dev/null |
23 |
+++ b/sci-chemistry/xia2/ChangeLog |
24 |
@@ -0,0 +1,69 @@ |
25 |
+# ChangeLog for sci-chemistry/xia2 |
26 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
27 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/xia2/ChangeLog,v 1.13 2012/04/14 09:54:22 nativemad Exp $ |
28 |
+ |
29 |
+*xia2-0.3.6.0 (30 May 2013) |
30 |
+ |
31 |
+ 30 May 2013; Justin Lecher <jlec@g.o> +xia2-0.3.6.0.ebuild, |
32 |
+ +files/xia2-0.3.6.0-fix-syntax.patch, +metadata.xml: |
33 |
+ Version BUmp |
34 |
+ |
35 |
+ 14 Apr 2012; Andreas Schuerch <nativemad@g.o> xia2-0.3.3.1.ebuild: |
36 |
+ x86 stable, see bug 375917, thanks all. |
37 |
+ |
38 |
+*xia2-0.3.4.0 (28 Feb 2012) |
39 |
+ |
40 |
+ 28 Feb 2012; Justin Lecher <jlec@g.o> +files/0.3.4.0-fix-syntax.patch, |
41 |
+ +xia2-0.3.4.0.ebuild: |
42 |
+ Version Bump |
43 |
+ |
44 |
+ 16 Oct 2011; Samuli Suominen <ssuominen@g.o> xia2-0.3.3.1.ebuild: |
45 |
+ amd64 restable |
46 |
+ |
47 |
+ 08 Oct 2011; Samuli Suominen <ssuominen@g.o> xia2-0.3.3.1.ebuild: |
48 |
+ Revert back to ~arch for security and libpng porting. |
49 |
+ |
50 |
+ 06 Oct 2011; Tony Vroon <chainsaw@g.o> xia2-0.3.3.1.ebuild: |
51 |
+ Marked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo in bug |
52 |
+ #351753. |
53 |
+ |
54 |
+*xia2-0.3.3.3 (04 Oct 2011) |
55 |
+ |
56 |
+ 04 Oct 2011; Justin Lecher <jlec@g.o> +files/0.3.3.3-fix-syntax.patch, |
57 |
+ +xia2-0.3.3.3.ebuild: |
58 |
+ Version Bump |
59 |
+ |
60 |
+ 23 Jul 2011; Justin Lecher <jlec@g.o> xia2-0.3.3.1.ebuild: |
61 |
+ Added pstins msg |
62 |
+ |
63 |
+*xia2-0.3.3.1 (25 Jun 2011) |
64 |
+ |
65 |
+ 25 Jun 2011; Justin Lecher <jlec@g.o> +files/0.3.3.1-fix-syntax.patch, |
66 |
+ xia2-0.3.1.0.ebuild, xia2-0.3.1.6.ebuild, xia2-0.3.1.7.ebuild, |
67 |
+ +xia2-0.3.3.1.ebuild, metadata.xml: |
68 |
+ Version BUmp |
69 |
+ |
70 |
+ 16 Jan 2011; Kacper Kowalik <xarthisius@g.o> xia2-0.3.1.7.ebuild: |
71 |
+ marked ~ppc wrt #303931 |
72 |
+ |
73 |
+*xia2-0.3.1.7 (27 Jul 2010) |
74 |
+ |
75 |
+ 27 Jul 2010; Justin Lecher <jlec@g.o> |
76 |
+ +files/0.3.1.7-fix-syntax.patch, +xia2-0.3.1.7.ebuild: |
77 |
+ Version bump |
78 |
+ |
79 |
+ 22 Apr 2010; Justin Lecher <jlec@g.o> xia2-0.3.1.6.ebuild: |
80 |
+ Keyworded for ~*-linux |
81 |
+ |
82 |
+*xia2-0.3.1.6 (22 Apr 2010) |
83 |
+ |
84 |
+ 22 Apr 2010; Justin Lecher <jlec@g.o> |
85 |
+ +files/0.3.1.6-fix-syntax.patch, +xia2-0.3.1.6.ebuild: |
86 |
+ Version Bump #316579, fixes for PYTHON ABIs things |
87 |
+ |
88 |
+*xia2-0.3.1.0 (06 Feb 2010) |
89 |
+ |
90 |
+ 06 Feb 2010; Justin Lecher (jlec) <jlec@g.o> |
91 |
+ +files/0.3.1.0-fix-syntax.patch, +xia2-0.3.1.0.ebuild, +metadata.xml: |
92 |
+ Splitted xia2 from ccp4 |
93 |
+ |
94 |
|
95 |
diff --git a/sci-chemistry/xia2/files/xia2-0.3.6.0-fix-syntax.patch b/sci-chemistry/xia2/files/xia2-0.3.6.0-fix-syntax.patch |
96 |
new file mode 100644 |
97 |
index 0000000..83741af |
98 |
--- /dev/null |
99 |
+++ b/sci-chemistry/xia2/files/xia2-0.3.6.0-fix-syntax.patch |
100 |
@@ -0,0 +1,28 @@ |
101 |
+diff --git a/xia2-0.3.3.0/Applications/xia2find.py b/xia2-0.3.3.0/Applications/xia2find.py |
102 |
+index 1a3b0e2..e0b8a1e 100755 |
103 |
+--- a/Applications/xia2find.py |
104 |
++++ b/Applications/xia2find.py |
105 |
+@@ -38,7 +38,7 @@ from Schema.Sweep import SweepFactory |
106 |
+ from Experts.FindImages import image2template_directory |
107 |
+ |
108 |
+ known_image_extensions = ['img', 'mccd', 'mar2300', 'mar1200', 'mar3450', |
109 |
+- 'osc', 'cbf', 'mar2000']] |
110 |
++ 'osc', 'cbf', 'mar2000'] |
111 |
+ known_sweeps = { } |
112 |
+ |
113 |
+ def is_image_name(file): |
114 |
+diff --git a/core/Python/Examples/CCP4/Cad.py b/core/Python/Examples/CCP4/Cad.py |
115 |
+index 88f9218..5fb6f2a 100644 |
116 |
+--- a/core/Python/Examples/CCP4/Cad.py |
117 |
++++ b/core/Python/Examples/CCP4/Cad.py |
118 |
+@@ -49,8 +49,8 @@ def Cad(DriverType = None): |
119 |
+ self.add_command_line(hklin) |
120 |
+ |
121 |
+ self.set_task('Rewriting reflections %s => %s' % |
122 |
+- ` (os.path.split(hklin)[-1], |
123 |
+- ` os.path.split(self.getHklout())[-1])) |
124 |
++ (os.path.split(hklin)[-1], |
125 |
++ os.path.split(self.getHklout())[-1])) |
126 |
+ |
127 |
+ self.start() |
128 |
+ |
129 |
|
130 |
diff --git a/sci-chemistry/xia2/metadata.xml b/sci-chemistry/xia2/metadata.xml |
131 |
new file mode 100644 |
132 |
index 0000000..4bf6dbc |
133 |
--- /dev/null |
134 |
+++ b/sci-chemistry/xia2/metadata.xml |
135 |
@@ -0,0 +1,8 @@ |
136 |
+<?xml version="1.0" encoding="UTF-8"?> |
137 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
138 |
+<pkgmetadata> |
139 |
+ <herd>sci</herd> |
140 |
+ <maintainer> |
141 |
+ <email>sci@g.o</email> |
142 |
+ </maintainer> |
143 |
+</pkgmetadata> |
144 |
|
145 |
diff --git a/sci-chemistry/xia2/xia2-0.3.6.0.ebuild b/sci-chemistry/xia2/xia2-0.3.6.0.ebuild |
146 |
new file mode 100644 |
147 |
index 0000000..6a5f2dc |
148 |
--- /dev/null |
149 |
+++ b/sci-chemistry/xia2/xia2-0.3.6.0.ebuild |
150 |
@@ -0,0 +1,78 @@ |
151 |
+# Copyright 1999-2013 Gentoo Foundation |
152 |
+# Distributed under the terms of the GNU General Public License v2 |
153 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/xia2/xia2-0.3.4.0.ebuild,v 1.1 2012/02/28 20:57:14 jlec Exp $ |
154 |
+ |
155 |
+EAPI=5 |
156 |
+ |
157 |
+PYTHON_COMPAT=( python{2_6,2_7} ) |
158 |
+ |
159 |
+inherit eutils python-r1 |
160 |
+ |
161 |
+DESCRIPTION="An automated data reduction system for crystallography" |
162 |
+HOMEPAGE="http://www.ccp4.ac.uk/xia/" |
163 |
+SRC_URI="http://www.ccp4.ac.uk/${PN}/${P}.tar.bz2" |
164 |
+ |
165 |
+LICENSE="BSD" |
166 |
+SLOT="0" |
167 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
168 |
+IUSE="" |
169 |
+ |
170 |
+RDEPEND=" |
171 |
+ >=sci-chemistry/ccp4-apps-6.1.2 |
172 |
+ sci-chemistry/mosflm |
173 |
+ sci-chemistry/pointless |
174 |
+ >=sci-libs/ccp4-libs-6.1.2 |
175 |
+ sci-libs/cctbx" |
176 |
+DEPEND="${RDEPEND}" |
177 |
+ |
178 |
+src_prepare() { |
179 |
+ find . -name '*.bat' -delete || die |
180 |
+ |
181 |
+ epatch "${FILESDIR}"/${P}-fix-syntax.patch |
182 |
+} |
183 |
+ |
184 |
+src_install() { |
185 |
+ local bin |
186 |
+ dohtml html/* |
187 |
+ rm -rf html || die |
188 |
+ |
189 |
+ dodoc readme.txt |
190 |
+ rm -f *txt setup.* || die |
191 |
+ |
192 |
+ installation() { |
193 |
+ python_moduleinto ${PN} |
194 |
+ python_domodule * |
195 |
+ } |
196 |
+ |
197 |
+ python_foreach_impl installation |
198 |
+ |
199 |
+ insinto /usr/share/ccp4/${PN} |
200 |
+ doins -r * |
201 |
+ |
202 |
+ cat >> "${T}"/23XIA <<- EOF |
203 |
+ XIA2_ROOT="${EPREFIX}/usr/share/ccp4/${PN}" |
204 |
+ XIA2CORE_ROOT="${EPREFIX}/usr/share/ccp4/${PN}/core" |
205 |
+ EOF |
206 |
+ |
207 |
+ doenvd "${T}"/23XIA |
208 |
+ |
209 |
+ cd Applications || die |
210 |
+ rm __init__.py || die |
211 |
+ |
212 |
+ sed \ |
213 |
+ -e '1i#!/usr/bin/python' \ |
214 |
+ -i xia2hdr.py || die |
215 |
+ |
216 |
+ for bin in *.py; do |
217 |
+ python_foreach_impl python_newscript ${bin} ${bin#.py} |
218 |
+ done |
219 |
+ |
220 |
+ dobin xia2html x1335 pydiffdump2xds pychef cbfdump aimless2gnuplot |
221 |
+} |
222 |
+ |
223 |
+pkg_postinst() { |
224 |
+ echo "" |
225 |
+ elog "In order to use the package, you need to" |
226 |
+ elog "\t source ${EPREFIX}/etc/profile" |
227 |
+ echo "" |
228 |
+} |