1 |
jlec 11/06/29 05:51:29 |
2 |
|
3 |
Modified: ccpn-2.1.5_p110602.ebuild ChangeLog metadata.xml |
4 |
ccpn-2.2.1_p110602.ebuild |
5 |
ccpn-2.1.3.1_p100806.ebuild |
6 |
Added: ccpn-2.1.5_p110629.ebuild ccpn-2.2.1_p110629.ebuild |
7 |
Removed: ccpn-2.1.5_p110217.ebuild ccpn-2.2.1_p110226.ebuild |
8 |
ccpn-2.1.5_p110401.ebuild ccpn-2.1.5_p110226.ebuild |
9 |
ccpn-2.2.1_p110308.ebuild ccpn-2.2.1_p110527.ebuild |
10 |
ccpn-2.1.5_p110202.ebuild ccpn-2.1.5_p110505.ebuild |
11 |
ccpn-2.1.5_p110526.ebuild ccpn-2.2.1_p110222.ebuild |
12 |
ccpn-2.2.1_p110526.ebuild ccpn-2.1.5_p110308.ebuild |
13 |
ccpn-2.1.5_p110222.ebuild ccpn-2.1.5_p110527.ebuild |
14 |
ccpn-2.2.1_p110401.ebuild ccpn-2.2.1_p110505.ebuild |
15 |
Log: |
16 |
Cleaned old, python patches, fixed sed strings |
17 |
|
18 |
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64) |
19 |
|
20 |
Revision Changes Path |
21 |
1.2 sci-chemistry/ccpn/ccpn-2.1.5_p110602.ebuild |
22 |
|
23 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110602.ebuild?rev=1.2&view=markup |
24 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110602.ebuild?rev=1.2&content-type=text/plain |
25 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110602.ebuild?r1=1.1&r2=1.2 |
26 |
|
27 |
Index: ccpn-2.1.5_p110602.ebuild |
28 |
=================================================================== |
29 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110602.ebuild,v |
30 |
retrieving revision 1.1 |
31 |
retrieving revision 1.2 |
32 |
diff -u -r1.1 -r1.2 |
33 |
--- ccpn-2.1.5_p110602.ebuild 2 Jun 2011 07:36:19 -0000 1.1 |
34 |
+++ ccpn-2.1.5_p110602.ebuild 29 Jun 2011 05:51:28 -0000 1.2 |
35 |
@@ -1,6 +1,6 @@ |
36 |
# Copyright 1999-2011 Gentoo Foundation |
37 |
# Distributed under the terms of the GNU General Public License v2 |
38 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110602.ebuild,v 1.1 2011/06/02 07:36:19 jlec Exp $ |
39 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110602.ebuild,v 1.2 2011/06/29 05:51:28 jlec Exp $ |
40 |
|
41 |
EAPI="3" |
42 |
|
43 |
@@ -81,23 +81,23 @@ |
44 |
rm -rf data model doc license || die |
45 |
|
46 |
sed \ |
47 |
- -e "s:/usr:${EPREFIX}/usr:g" \ |
48 |
- -e "s:^\(CC =\).*:\1 $(tc-getCC):g" \ |
49 |
- -e "s:^\(OPT_FLAG =\).*:\1 ${CFLAGS}:g" \ |
50 |
- -e "s:^\(LINK_FLAGS =.*\):\1 ${LDFLAGS}:g" \ |
51 |
- -e "s:^\(IGNORE_GL_FLAG =\).*:\1 ${IGNORE_GL_FLAG}:g" \ |
52 |
- -e "s:^\(GL_FLAG =\).*:\1 ${GL_FLAG}:g" \ |
53 |
- -e "s:^\(GL_DIR =\).*:\1 ${GL_DIR}:g" \ |
54 |
- -e "s:^\(GL_LIB =\).*:\1 ${GL_LIB}:g" \ |
55 |
- -e "s:^\(GL_LIB_FLAGS =\).*:\1 ${GL_LIB_FLAGS}:g" \ |
56 |
- -e "s:^\(GL_INCLUDE_FLAGS =\).*:\1 ${GL_INCLUDE_FLAGS}:g" \ |
57 |
- -e "s:^\(GLUT_NEED_INIT =\).*:\1 ${GLUT_NEED_INIT}:g" \ |
58 |
- -e "s:^\(GLUT_NOT_IN_GL =\).*:\1:g" \ |
59 |
- -e "s:^\(X11_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
60 |
- -e "s:^\(TCL_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
61 |
- -e "s:^\(TK_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
62 |
- -e "s:^\(PYTHON_INCLUDE_FLAGS =\).*:\1 -I${EPREFIX}/$(python_get_includedir):g" \ |
63 |
- -e "s:^\(PYTHON_LIB =\).*:\1 $(python_get_library -l):g" \ |
64 |
+ -e "s|/usr|${EPREFIX}/usr|g" \ |
65 |
+ -e "s|^\(CC =\).*|\1 $(tc-getCC)|g" \ |
66 |
+ -e "s|^\(OPT_FLAG =\).*|\1 ${CFLAGS}|g" \ |
67 |
+ -e "s|^\(LINK_FLAGS =.*\)|\1 ${LDFLAGS}|g" \ |
68 |
+ -e "s|^\(IGNORE_GL_FLAG =\).*|\1 ${IGNORE_GL_FLAG}|g" \ |
69 |
+ -e "s|^\(GL_FLAG =\).*|\1 ${GL_FLAG}|g" \ |
70 |
+ -e "s|^\(GL_DIR =\).*|\1 ${GL_DIR}|g" \ |
71 |
+ -e "s|^\(GL_LIB =\).*|\1 ${GL_LIB}|g" \ |
72 |
+ -e "s|^\(GL_LIB_FLAGS =\).*|\1 ${GL_LIB_FLAGS}|g" \ |
73 |
+ -e "s|^\(GL_INCLUDE_FLAGS =\).*|\1 ${GL_INCLUDE_FLAGS}|g" \ |
74 |
+ -e "s|^\(GLUT_NEED_INIT =\).*|\1 ${GLUT_NEED_INIT}|g" \ |
75 |
+ -e "s|^\(GLUT_NOT_IN_GL =\).*|\1|g" \ |
76 |
+ -e "s|^\(X11_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
77 |
+ -e "s|^\(TCL_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
78 |
+ -e "s|^\(TK_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
79 |
+ -e "s|^\(PYTHON_INCLUDE_FLAGS =\).*|\1 -I${EPREFIX}/$(python_get_includedir)|g" \ |
80 |
+ -e "s|^\(PYTHON_LIB =\).*|\1 $(python_get_library -l)|g" \ |
81 |
c/environment_default.txt > c/environment.txt |
82 |
} |
83 |
|
84 |
@@ -119,12 +119,12 @@ |
85 |
use extendnmr && _wrapper="${_wrapper} extendNmr" |
86 |
for wrapper in ${_wrapper}; do |
87 |
sed \ |
88 |
- -e "s:gentoo_sitedir:${EPREFIX}$(python_get_sitedir):g" \ |
89 |
- -e "s:gentoolibdir:${EPREFIX}/usr/${libdir}:g" \ |
90 |
- -e "s:gentootk:${EPREFIX}/usr/${libdir}/tk${tkver}:g" \ |
91 |
- -e "s:gentootcl:${EPREFIX}/usr/${libdir}/tclk${tkver}:g" \ |
92 |
- -e "s:gentoopython:${EPREFIX}/usr/bin/python:g" \ |
93 |
- -e "s://:/:g" \ |
94 |
+ -e "s|gentoo_sitedir|${EPREFIX}$(python_get_sitedir)|g" \ |
95 |
+ -e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \ |
96 |
+ -e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \ |
97 |
+ -e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \ |
98 |
+ -e "s|gentoopython|${EPREFIX}/usr/bin/python|g" \ |
99 |
+ -e "s|//|/|g" \ |
100 |
"${FILESDIR}"/${wrapper} > "${T}"/${wrapper} || die "Fail fix ${wrapper}" |
101 |
dobin "${T}"/${wrapper} || die "Failed to install ${wrapper}" |
102 |
done |
103 |
@@ -140,7 +140,7 @@ |
104 |
|
105 |
for i in python/memops/format/compatibility/{Converters,part2/Converters2}.py; do |
106 |
sed \ |
107 |
- -e 's:#from __future__:from __future__:g' \ |
108 |
+ -e 's|#from __future__|from __future__|g' \ |
109 |
-i ${i} || die |
110 |
done |
111 |
|
112 |
|
113 |
|
114 |
|
115 |
1.65 sci-chemistry/ccpn/ChangeLog |
116 |
|
117 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ChangeLog?rev=1.65&view=markup |
118 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ChangeLog?rev=1.65&content-type=text/plain |
119 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ChangeLog?r1=1.64&r2=1.65 |
120 |
|
121 |
Index: ChangeLog |
122 |
=================================================================== |
123 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v |
124 |
retrieving revision 1.64 |
125 |
retrieving revision 1.65 |
126 |
diff -u -r1.64 -r1.65 |
127 |
--- ChangeLog 2 Jun 2011 07:36:19 -0000 1.64 |
128 |
+++ ChangeLog 29 Jun 2011 05:51:28 -0000 1.65 |
129 |
@@ -1,6 +1,22 @@ |
130 |
# ChangeLog for sci-chemistry/ccpn |
131 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
132 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.64 2011/06/02 07:36:19 jlec Exp $ |
133 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.65 2011/06/29 05:51:28 jlec Exp $ |
134 |
+ |
135 |
+*ccpn-2.2.1_p110629 (29 Jun 2011) |
136 |
+*ccpn-2.1.5_p110629 (29 Jun 2011) |
137 |
+ |
138 |
+ 29 Jun 2011; Justin Lecher <jlec@g.o> ccpn-2.1.3.1_p100806.ebuild, |
139 |
+ -ccpn-2.1.5_p110202.ebuild, -ccpn-2.1.5_p110217.ebuild, |
140 |
+ -ccpn-2.1.5_p110222.ebuild, -ccpn-2.1.5_p110226.ebuild, |
141 |
+ -ccpn-2.1.5_p110308.ebuild, -ccpn-2.1.5_p110401.ebuild, |
142 |
+ -ccpn-2.1.5_p110505.ebuild, -ccpn-2.1.5_p110526.ebuild, |
143 |
+ -ccpn-2.1.5_p110527.ebuild, ccpn-2.1.5_p110602.ebuild, |
144 |
+ +ccpn-2.1.5_p110629.ebuild, -ccpn-2.2.1_p110222.ebuild, |
145 |
+ -ccpn-2.2.1_p110226.ebuild, -ccpn-2.2.1_p110308.ebuild, |
146 |
+ -ccpn-2.2.1_p110401.ebuild, -ccpn-2.2.1_p110505.ebuild, |
147 |
+ -ccpn-2.2.1_p110526.ebuild, -ccpn-2.2.1_p110527.ebuild, |
148 |
+ ccpn-2.2.1_p110602.ebuild, +ccpn-2.2.1_p110629.ebuild, metadata.xml: |
149 |
+ Cleaned old, python patches, fixed sed strings |
150 |
|
151 |
*ccpn-2.2.1_p110602 (02 Jun 2011) |
152 |
*ccpn-2.1.5_p110602 (02 Jun 2011) |
153 |
|
154 |
|
155 |
|
156 |
1.3 sci-chemistry/ccpn/metadata.xml |
157 |
|
158 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/metadata.xml?rev=1.3&view=markup |
159 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/metadata.xml?rev=1.3&content-type=text/plain |
160 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/metadata.xml?r1=1.2&r2=1.3 |
161 |
|
162 |
Index: metadata.xml |
163 |
=================================================================== |
164 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/metadata.xml,v |
165 |
retrieving revision 1.2 |
166 |
retrieving revision 1.3 |
167 |
diff -u -r1.2 -r1.3 |
168 |
--- metadata.xml 20 Oct 2010 07:04:45 -0000 1.2 |
169 |
+++ metadata.xml 29 Jun 2011 05:51:28 -0000 1.3 |
170 |
@@ -1,11 +1,11 @@ |
171 |
<?xml version="1.0" encoding="UTF-8"?> |
172 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
173 |
<pkgmetadata> |
174 |
-<herd>sci-chemistry</herd> |
175 |
-<maintainer> |
176 |
- <email>jlec@g.o</email> |
177 |
-</maintainer> |
178 |
-<use> |
179 |
- <flag name='extendnmr'>Install needed packages for extendNMR support</flag> |
180 |
-</use> |
181 |
+ <herd>sci-chemistry</herd> |
182 |
+ <maintainer> |
183 |
+ <email>jlec@g.o</email> |
184 |
+ </maintainer> |
185 |
+ <use> |
186 |
+ <flag name="extendnmr">Install needed packages for extendNMR support</flag> |
187 |
+ </use> |
188 |
</pkgmetadata> |
189 |
|
190 |
|
191 |
|
192 |
1.2 sci-chemistry/ccpn/ccpn-2.2.1_p110602.ebuild |
193 |
|
194 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110602.ebuild?rev=1.2&view=markup |
195 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110602.ebuild?rev=1.2&content-type=text/plain |
196 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110602.ebuild?r1=1.1&r2=1.2 |
197 |
|
198 |
Index: ccpn-2.2.1_p110602.ebuild |
199 |
=================================================================== |
200 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110602.ebuild,v |
201 |
retrieving revision 1.1 |
202 |
retrieving revision 1.2 |
203 |
diff -u -r1.1 -r1.2 |
204 |
--- ccpn-2.2.1_p110602.ebuild 2 Jun 2011 07:36:19 -0000 1.1 |
205 |
+++ ccpn-2.2.1_p110602.ebuild 29 Jun 2011 05:51:28 -0000 1.2 |
206 |
@@ -1,6 +1,6 @@ |
207 |
# Copyright 1999-2011 Gentoo Foundation |
208 |
# Distributed under the terms of the GNU General Public License v2 |
209 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110602.ebuild,v 1.1 2011/06/02 07:36:19 jlec Exp $ |
210 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110602.ebuild,v 1.2 2011/06/29 05:51:28 jlec Exp $ |
211 |
|
212 |
EAPI="3" |
213 |
|
214 |
@@ -81,23 +81,23 @@ |
215 |
rm -rf data model doc license || die |
216 |
|
217 |
sed \ |
218 |
- -e "s:/usr:${EPREFIX}/usr:g" \ |
219 |
- -e "s:^\(CC =\).*:\1 $(tc-getCC):g" \ |
220 |
- -e "s:^\(OPT_FLAG =\).*:\1 ${CFLAGS}:g" \ |
221 |
- -e "s:^\(LINK_FLAGS =.*\):\1 ${LDFLAGS}:g" \ |
222 |
- -e "s:^\(IGNORE_GL_FLAG =\).*:\1 ${IGNORE_GL_FLAG}:g" \ |
223 |
- -e "s:^\(GL_FLAG =\).*:\1 ${GL_FLAG}:g" \ |
224 |
- -e "s:^\(GL_DIR =\).*:\1 ${GL_DIR}:g" \ |
225 |
- -e "s:^\(GL_LIB =\).*:\1 ${GL_LIB}:g" \ |
226 |
- -e "s:^\(GL_LIB_FLAGS =\).*:\1 ${GL_LIB_FLAGS}:g" \ |
227 |
- -e "s:^\(GL_INCLUDE_FLAGS =\).*:\1 ${GL_INCLUDE_FLAGS}:g" \ |
228 |
- -e "s:^\(GLUT_NEED_INIT =\).*:\1 ${GLUT_NEED_INIT}:g" \ |
229 |
- -e "s:^\(GLUT_NOT_IN_GL =\).*:\1:g" \ |
230 |
- -e "s:^\(X11_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
231 |
- -e "s:^\(TCL_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
232 |
- -e "s:^\(TK_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
233 |
- -e "s:^\(PYTHON_INCLUDE_FLAGS =\).*:\1 -I${EPREFIX}/$(python_get_includedir):g" \ |
234 |
- -e "s:^\(PYTHON_LIB =\).*:\1 $(python_get_library -l):g" \ |
235 |
+ -e "s|/usr|${EPREFIX}/usr|g" \ |
236 |
+ -e "s|^\(CC =\).*|\1 $(tc-getCC)|g" \ |
237 |
+ -e "s|^\(OPT_FLAG =\).*|\1 ${CFLAGS}|g" \ |
238 |
+ -e "s|^\(LINK_FLAGS =.*\)|\1 ${LDFLAGS}|g" \ |
239 |
+ -e "s|^\(IGNORE_GL_FLAG =\).*|\1 ${IGNORE_GL_FLAG}|g" \ |
240 |
+ -e "s|^\(GL_FLAG =\).*|\1 ${GL_FLAG}|g" \ |
241 |
+ -e "s|^\(GL_DIR =\).*|\1 ${GL_DIR}|g" \ |
242 |
+ -e "s|^\(GL_LIB =\).*|\1 ${GL_LIB}|g" \ |
243 |
+ -e "s|^\(GL_LIB_FLAGS =\).*|\1 ${GL_LIB_FLAGS}|g" \ |
244 |
+ -e "s|^\(GL_INCLUDE_FLAGS =\).*|\1 ${GL_INCLUDE_FLAGS}|g" \ |
245 |
+ -e "s|^\(GLUT_NEED_INIT =\).*|\1 ${GLUT_NEED_INIT}|g" \ |
246 |
+ -e "s|^\(GLUT_NOT_IN_GL =\).*|\1|g" \ |
247 |
+ -e "s|^\(X11_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
248 |
+ -e "s|^\(TCL_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
249 |
+ -e "s|^\(TK_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
250 |
+ -e "s|^\(PYTHON_INCLUDE_FLAGS =\).*|\1 -I${EPREFIX}/$(python_get_includedir)|g" \ |
251 |
+ -e "s|^\(PYTHON_LIB =\).*|\1 $(python_get_library -l)|g" \ |
252 |
c/environment_default.txt > c/environment.txt |
253 |
} |
254 |
|
255 |
@@ -119,12 +119,12 @@ |
256 |
use extendnmr && _wrapper="${_wrapper} extendNmr" |
257 |
for wrapper in ${_wrapper}; do |
258 |
sed \ |
259 |
- -e "s:gentoo_sitedir:${EPREFIX}$(python_get_sitedir):g" \ |
260 |
- -e "s:gentoolibdir:${EPREFIX}/usr/${libdir}:g" \ |
261 |
- -e "s:gentootk:${EPREFIX}/usr/${libdir}/tk${tkver}:g" \ |
262 |
- -e "s:gentootcl:${EPREFIX}/usr/${libdir}/tclk${tkver}:g" \ |
263 |
- -e "s:gentoopython:${EPREFIX}/usr/bin/python:g" \ |
264 |
- -e "s://:/:g" \ |
265 |
+ -e "s|gentoo_sitedir|${EPREFIX}$(python_get_sitedir)|g" \ |
266 |
+ -e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \ |
267 |
+ -e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \ |
268 |
+ -e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \ |
269 |
+ -e "s|gentoopython|${EPREFIX}/usr/bin/python|g" \ |
270 |
+ -e "s|//|/|g" \ |
271 |
"${FILESDIR}"/${wrapper} > "${T}"/${wrapper} || die "Fail fix ${wrapper}" |
272 |
dobin "${T}"/${wrapper} || die "Failed to install ${wrapper}" |
273 |
done |
274 |
@@ -140,7 +140,7 @@ |
275 |
|
276 |
for i in python/memops/format/compatibility/{Converters,part2/Converters2}.py; do |
277 |
sed \ |
278 |
- -e 's:#from __future__:from __future__:g' \ |
279 |
+ -e 's|#from __future__|from __future__|g' \ |
280 |
-i ${i} || die |
281 |
done |
282 |
|
283 |
|
284 |
|
285 |
|
286 |
1.4 sci-chemistry/ccpn/ccpn-2.1.3.1_p100806.ebuild |
287 |
|
288 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.3.1_p100806.ebuild?rev=1.4&view=markup |
289 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.3.1_p100806.ebuild?rev=1.4&content-type=text/plain |
290 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.3.1_p100806.ebuild?r1=1.3&r2=1.4 |
291 |
|
292 |
Index: ccpn-2.1.3.1_p100806.ebuild |
293 |
=================================================================== |
294 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.3.1_p100806.ebuild,v |
295 |
retrieving revision 1.3 |
296 |
retrieving revision 1.4 |
297 |
diff -u -r1.3 -r1.4 |
298 |
--- ccpn-2.1.3.1_p100806.ebuild 30 Sep 2010 20:04:11 -0000 1.3 |
299 |
+++ ccpn-2.1.3.1_p100806.ebuild 29 Jun 2011 05:51:28 -0000 1.4 |
300 |
@@ -1,6 +1,6 @@ |
301 |
-# Copyright 1999-2010 Gentoo Foundation |
302 |
+# Copyright 1999-2011 Gentoo Foundation |
303 |
# Distributed under the terms of the GNU General Public License v2 |
304 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.3.1_p100806.ebuild,v 1.3 2010/09/30 20:04:11 maekke Exp $ |
305 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.3.1_p100806.ebuild,v 1.4 2011/06/29 05:51:28 jlec Exp $ |
306 |
|
307 |
EAPI="3" |
308 |
PYTHON_DEPEND="2:2.5" |
309 |
@@ -70,23 +70,23 @@ |
310 |
|
311 |
preparation() { |
312 |
sed \ |
313 |
- -e "s:/usr:${EPREFIX}/usr:g" \ |
314 |
- -e "s:^\(CC =\).*:\1 $(tc-getCC):g" \ |
315 |
- -e "s:^\(OPT_FLAG =\).*:\1 ${CFLAGS}:g" \ |
316 |
- -e "s:^\(LINK_FLAGS =.*\):\1 ${LDFLAGS}:g" \ |
317 |
- -e "s:^\(IGNORE_GL_FLAG =\).*:\1 ${IGNORE_GL_FLAG}:g" \ |
318 |
- -e "s:^\(GL_FLAG =\).*:\1 ${GL_FLAG}:g" \ |
319 |
- -e "s:^\(GL_DIR =\).*:\1 ${GL_DIR}:g" \ |
320 |
- -e "s:^\(GL_LIB =\).*:\1 ${GL_LIB}:g" \ |
321 |
- -e "s:^\(GL_LIB_FLAGS =\).*:\1 ${GL_LIB_FLAGS}:g" \ |
322 |
- -e "s:^\(GL_INCLUDE_FLAGS =\).*:\1 ${GL_INCLUDE_FLAGS}:g" \ |
323 |
- -e "s:^\(GLUT_NEED_INIT =\).*:\1 ${GLUT_NEED_INIT}:g" \ |
324 |
- -e "s:^\(GLUT_NOT_IN_GL =\).*:\1:g" \ |
325 |
- -e "s:^\(X11_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
326 |
- -e "s:^\(TCL_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
327 |
- -e "s:^\(TK_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
328 |
- -e "s:^\(PYTHON_INCLUDE_FLAGS =\).*:\1 -I\$(PYTHON_DIR)/include/python$(python_get_version):g" \ |
329 |
- -e "s:^\(PYTHON_LIB =\).*:\1 -lpython$(python_get_version):g" \ |
330 |
+ -e "s|/usr|${EPREFIX}/usr|g" \ |
331 |
+ -e "s|^\(CC =\).*|\1 $(tc-getCC)|g" \ |
332 |
+ -e "s|^\(OPT_FLAG =\).*|\1 ${CFLAGS}|g" \ |
333 |
+ -e "s|^\(LINK_FLAGS =.*\)|\1 ${LDFLAGS}|g" \ |
334 |
+ -e "s|^\(IGNORE_GL_FLAG =\).*|\1 ${IGNORE_GL_FLAG}|g" \ |
335 |
+ -e "s|^\(GL_FLAG =\).*|\1 ${GL_FLAG}|g" \ |
336 |
+ -e "s|^\(GL_DIR =\).*|\1 ${GL_DIR}|g" \ |
337 |
+ -e "s|^\(GL_LIB =\).*|\1 ${GL_LIB}|g" \ |
338 |
+ -e "s|^\(GL_LIB_FLAGS =\).*|\1 ${GL_LIB_FLAGS}|g" \ |
339 |
+ -e "s|^\(GL_INCLUDE_FLAGS =\).*|\1 ${GL_INCLUDE_FLAGS}|g" \ |
340 |
+ -e "s|^\(GLUT_NEED_INIT =\).*|\1 ${GLUT_NEED_INIT}|g" \ |
341 |
+ -e "s|^\(GLUT_NOT_IN_GL =\).*|\1|g" \ |
342 |
+ -e "s|^\(X11_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
343 |
+ -e "s|^\(TCL_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
344 |
+ -e "s|^\(TK_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
345 |
+ -e "s|^\(PYTHON_INCLUDE_FLAGS =\).*|\1 -I\$(PYTHON_DIR)/include/python$(python_get_version)|g" \ |
346 |
+ -e "s|^\(PYTHON_LIB =\).*|\1 -lpython$(python_get_version)|g" \ |
347 |
c/environment_default.txt > c/environment.txt |
348 |
} |
349 |
python_execute_function -s preparation |
350 |
@@ -107,11 +107,11 @@ |
351 |
tkver=$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2) |
352 |
|
353 |
for wrapper in analysis dangle dataShifter eci formatConverter pipe2azara; do |
354 |
- sed -e "s:gentoo_sitedir:${EPREFIX}/$(python_get_sitedir -f):g" \ |
355 |
- -e "s:gentoolibdir:${EPREFIX}/usr/${libdir}:g" \ |
356 |
- -e "s:gentootk:${EPREFIX}/usr/${libdir}/tk${tkver}:g" \ |
357 |
- -e "s:gentootcl:${EPREFIX}/usr/${libdir}/tclk${tkver}:g" \ |
358 |
- -e "s:gentoopython:${EPREFIX}/usr/bin/python:g" \ |
359 |
+ sed -e "s|gentoo_sitedir|${EPREFIX}/$(python_get_sitedir -f)|g" \ |
360 |
+ -e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \ |
361 |
+ -e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \ |
362 |
+ -e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \ |
363 |
+ -e "s|gentoopython|${EPREFIX}/usr/bin/python|g" \ |
364 |
"${FILESDIR}"/${wrapper} > "${T}"/${wrapper} || die "Fail fix ${wrapper}" |
365 |
dobin "${T}"/${wrapper} || die "Failed to install ${wrapper}" |
366 |
done |
367 |
@@ -124,7 +124,7 @@ |
368 |
|
369 |
for i in python/memops/format/compatibility/{Converters,part2/Converters2}.py; do |
370 |
sed \ |
371 |
- -e 's:#from __future__:from __future__:g' \ |
372 |
+ -e 's|#from __future__|from __future__|g' \ |
373 |
-i ${i} |
374 |
done |
375 |
|
376 |
|
377 |
|
378 |
|
379 |
1.1 sci-chemistry/ccpn/ccpn-2.1.5_p110629.ebuild |
380 |
|
381 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110629.ebuild?rev=1.1&view=markup |
382 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110629.ebuild?rev=1.1&content-type=text/plain |
383 |
|
384 |
Index: ccpn-2.1.5_p110629.ebuild |
385 |
=================================================================== |
386 |
# Copyright 1999-2011 Gentoo Foundation |
387 |
# Distributed under the terms of the GNU General Public License v2 |
388 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.5_p110629.ebuild,v 1.1 2011/06/29 05:51:28 jlec Exp $ |
389 |
|
390 |
EAPI="3" |
391 |
|
392 |
PYTHON_DEPEND="2:2.5" |
393 |
PYTHON_USE_WITH="ssl tk" |
394 |
|
395 |
inherit eutils portability python toolchain-funcs versionator |
396 |
|
397 |
PATCHSET="${PV##*_p}" |
398 |
MY_PN="${PN}mr" |
399 |
MY_PV="$(replace_version_separator 3 _ ${PV%%_p*})" |
400 |
MY_MAJOR="$(get_version_component_range 1-3)" |
401 |
|
402 |
DESCRIPTION="The Collaborative Computing Project for NMR" |
403 |
HOMEPAGE="http://www.ccpn.ac.uk/ccpn" |
404 |
SRC_URI="http://www.bio.cam.ac.uk/ccpn/download/${MY_PN}/analysis${MY_PV}.tar.gz" |
405 |
[[ -n ${PATCHSET} ]] && SRC_URI="${SRC_URI} http://dev.gentoo.org/~jlec/distfiles/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch.bz2" |
406 |
|
407 |
SLOT="0" |
408 |
LICENSE="|| ( CCPN LGPL-2.1 )" |
409 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
410 |
IUSE="extendnmr +opengl" |
411 |
|
412 |
RDEPEND=" |
413 |
dev-lang/tk[threads] |
414 |
>=dev-python/numpy-1.4 |
415 |
>=dev-tcltk/tix-8.4.3 |
416 |
=sci-libs/ccpn-data-"${MY_MAJOR}"* |
417 |
x11-libs/libXext |
418 |
x11-libs/libX11 |
419 |
opengl? ( |
420 |
media-libs/freeglut |
421 |
dev-python/pyglet )" |
422 |
# We need to fix this |
423 |
# sci-chemistry/mdd |
424 |
DEPEND="${RDEPEND}" |
425 |
PDEPEND=" |
426 |
extendnmr? ( |
427 |
sci-chemistry/aria |
428 |
sci-chemistry/prodecomp )" |
429 |
|
430 |
RESTRICT="mirror" |
431 |
|
432 |
S="${WORKDIR}"/${MY_PN}/${MY_PN}$(get_version_component_range 1-2 ${PV}) |
433 |
|
434 |
pkg_setup() { |
435 |
python_set_active_version 2 |
436 |
} |
437 |
|
438 |
src_prepare() { |
439 |
[[ -n ${PATCHSET} ]] && \ |
440 |
epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch |
441 |
|
442 |
epatch "${FILESDIR}"/${MY_PV}-parallel.patch |
443 |
|
444 |
local tk_ver |
445 |
local myconf |
446 |
|
447 |
tk_ver="$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2)" |
448 |
|
449 |
if use opengl; then |
450 |
GLUT_NEED_INIT="-DNEED_GLUT_INIT" |
451 |
IGNORE_GL_FLAG="" |
452 |
GL_FLAG="-DUSE_GL_TRUE" |
453 |
GL_DIR="${EPREFIX}/usr" |
454 |
GL_LIB="-lglut -lGLU -lGL" |
455 |
GL_INCLUDE_FLAGS="-I\$(GL_DIR)/include" |
456 |
GL_LIB_FLAGS="-L\$(GL_DIR)/$(get_libdir)" |
457 |
|
458 |
else |
459 |
IGNORE_GL_FLAG="-DIGNORE_GL" |
460 |
GL_FLAG="-DUSE_GL_FALSE" |
461 |
fi |
462 |
|
463 |
GLUT_NOT_IN_GL="" |
464 |
GLUT_FLAG="\$(GLUT_NEED_INIT) \$(GLUT_NOT_IN_GL)" |
465 |
|
466 |
rm -rf data model doc license || die |
467 |
|
468 |
sed \ |
469 |
-e "s|/usr|${EPREFIX}/usr|g" \ |
470 |
-e "s|^\(CC =\).*|\1 $(tc-getCC)|g" \ |
471 |
-e "s|^\(OPT_FLAG =\).*|\1 ${CFLAGS}|g" \ |
472 |
-e "s|^\(LINK_FLAGS =.*\)|\1 ${LDFLAGS}|g" \ |
473 |
-e "s|^\(IGNORE_GL_FLAG =\).*|\1 ${IGNORE_GL_FLAG}|g" \ |
474 |
-e "s|^\(GL_FLAG =\).*|\1 ${GL_FLAG}|g" \ |
475 |
-e "s|^\(GL_DIR =\).*|\1 ${GL_DIR}|g" \ |
476 |
-e "s|^\(GL_LIB =\).*|\1 ${GL_LIB}|g" \ |
477 |
-e "s|^\(GL_LIB_FLAGS =\).*|\1 ${GL_LIB_FLAGS}|g" \ |
478 |
-e "s|^\(GL_INCLUDE_FLAGS =\).*|\1 ${GL_INCLUDE_FLAGS}|g" \ |
479 |
-e "s|^\(GLUT_NEED_INIT =\).*|\1 ${GLUT_NEED_INIT}|g" \ |
480 |
-e "s|^\(GLUT_NOT_IN_GL =\).*|\1|g" \ |
481 |
-e "s|^\(X11_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
482 |
-e "s|^\(TCL_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
483 |
-e "s|^\(TK_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
484 |
-e "s|^\(PYTHON_INCLUDE_FLAGS =\).*|\1 -I${EPREFIX}/$(python_get_includedir)|g" \ |
485 |
-e "s|^\(PYTHON_LIB =\).*|\1 $(python_get_library -l)|g" \ |
486 |
c/environment_default.txt > c/environment.txt |
487 |
} |
488 |
|
489 |
src_compile() { |
490 |
emake -C c all links || die |
491 |
} |
492 |
|
493 |
src_install() { |
494 |
local libdir |
495 |
local tkver |
496 |
local _wrapper |
497 |
|
498 |
find . -name "*.pyc" -type d -delete |
499 |
|
500 |
libdir=$(get_libdir) |
501 |
tkver=$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2) |
502 |
|
503 |
_wrapper="analysis dangle dataShifter depositionFileImporter eci formatConverter pipe2azara" |
504 |
use extendnmr && _wrapper="${_wrapper} extendNmr" |
505 |
for wrapper in ${_wrapper}; do |
506 |
sed \ |
507 |
-e "s|gentoo_sitedir|${EPREFIX}$(python_get_sitedir)|g" \ |
508 |
-e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \ |
509 |
-e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \ |
510 |
-e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \ |
511 |
-e "s|gentoopython|${EPREFIX}/usr/bin/python|g" \ |
512 |
-e "s|//|/|g" \ |
513 |
"${FILESDIR}"/${wrapper} > "${T}"/${wrapper} || die "Fail fix ${wrapper}" |
514 |
dobin "${T}"/${wrapper} || die "Failed to install ${wrapper}" |
515 |
done |
516 |
|
517 |
local in_path |
518 |
local files |
519 |
local pydocs |
520 |
|
521 |
pydocs="$(find python -name doc -type d)" |
522 |
rm -rf ${pydocs} || die |
523 |
|
524 |
in_path=$(python_get_sitedir)/${PN} |
525 |
|
526 |
for i in python/memops/format/compatibility/{Converters,part2/Converters2}.py; do |
527 |
sed \ |
528 |
-e 's|#from __future__|from __future__|g' \ |
529 |
-i ${i} || die |
530 |
done |
531 |
|
532 |
insinto ${in_path} |
533 |
|
534 |
dodir ${in_path}/c |
535 |
|
536 |
ebegin "Installing main files" |
537 |
doins -r python || die "main files installation failed" |
538 |
eend |
539 |
dosym ../../../..//share/doc/ccpn-data-${MY_MAJOR}/html ${in_path}/doc || die |
540 |
for i in ${pydocs}; do |
541 |
dosym /usr/share/doc/ccpn-data-${MY_MAJOR}/html/${i} ${in_path}/${i} |
542 |
done |
543 |
|
544 |
dosym /usr/share/ccpn/data ${in_path}/data |
545 |
dosym /usr/share/ccpn/model ${in_path}/model |
546 |
|
547 |
einfo "Adjusting permissions" |
548 |
|
549 |
files=" |
550 |
cambridge/c/BayesPeakSeparator.so |
551 |
ccp/c/StructUtil.so |
552 |
ccp/c/StructStructure.so |
553 |
ccp/c/StructBond.so |
554 |
ccp/c/StructAtom.so |
555 |
ccpnmr/c/DyAtomCoord.so |
556 |
ccpnmr/c/DyDistConstraint.so |
557 |
ccpnmr/c/DyDistForce.so |
558 |
ccpnmr/c/AtomCoordList.so |
559 |
ccpnmr/c/DyAtomCoordList.so |
560 |
ccpnmr/c/ContourStyle.so |
561 |
ccpnmr/c/ContourLevels.so |
562 |
ccpnmr/c/SliceFile.so |
563 |
ccpnmr/c/PeakCluster.so |
564 |
ccpnmr/c/Dynamics.so |
565 |
ccpnmr/c/Bacus.so |
566 |
ccpnmr/c/Midge.so |
567 |
ccpnmr/c/DyDistConstraintList.so |
568 |
ccpnmr/c/WinPeakList.so |
569 |
ccpnmr/c/PeakList.so |
570 |
ccpnmr/c/DistConstraint.so |
571 |
ccpnmr/c/CloudUtil.so |
572 |
ccpnmr/c/DistForce.so |
573 |
ccpnmr/c/DistConstraintList.so |
574 |
ccpnmr/c/AtomCoord.so |
575 |
ccpnmr/c/DyDynamics.so |
576 |
ccpnmr/c/ContourFile.so |
577 |
memops/c/ShapeFile.so |
578 |
memops/c/BlockFile.so |
579 |
memops/c/PdfHandler.so |
580 |
memops/c/MemCache.so |
581 |
memops/c/FitMethod.so |
582 |
memops/c/PsHandler.so |
583 |
memops/c/GlHandler.so |
584 |
memops/c/StoreFile.so |
585 |
memops/c/StoreHandler.so |
586 |
memops/c/TkHandler.so" |
587 |
for FILE in ${files}; do |
588 |
fperms 755 ${in_path}/python/${FILE} |
589 |
done |
590 |
} |
591 |
|
592 |
pkg_postinst() { |
593 |
python_mod_optimize ${PN} |
594 |
} |
595 |
|
596 |
pkg_postrm() { |
597 |
python_mod_cleanup ${PN} |
598 |
} |
599 |
|
600 |
|
601 |
|
602 |
1.1 sci-chemistry/ccpn/ccpn-2.2.1_p110629.ebuild |
603 |
|
604 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110629.ebuild?rev=1.1&view=markup |
605 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110629.ebuild?rev=1.1&content-type=text/plain |
606 |
|
607 |
Index: ccpn-2.2.1_p110629.ebuild |
608 |
=================================================================== |
609 |
# Copyright 1999-2011 Gentoo Foundation |
610 |
# Distributed under the terms of the GNU General Public License v2 |
611 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.2.1_p110629.ebuild,v 1.1 2011/06/29 05:51:28 jlec Exp $ |
612 |
|
613 |
EAPI="3" |
614 |
|
615 |
PYTHON_DEPEND="2:2.5" |
616 |
PYTHON_USE_WITH="ssl tk" |
617 |
|
618 |
inherit eutils portability python toolchain-funcs versionator |
619 |
|
620 |
PATCHSET="${PV##*_p}" |
621 |
MY_PN="${PN}mr" |
622 |
MY_PV="$(replace_version_separator 3 _ ${PV%%_p*})" |
623 |
MY_MAJOR="$(get_version_component_range 1-3)" |
624 |
|
625 |
DESCRIPTION="The Collaborative Computing Project for NMR" |
626 |
SRC_URI="http://www.bio.cam.ac.uk/ccpn/download/${MY_PN}/analysis${MY_PV}.tar.gz" |
627 |
[[ -n ${PATCHSET} ]] && SRC_URI="${SRC_URI} http://dev.gentoo.org/~jlec/distfiles/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch.bz2" |
628 |
HOMEPAGE="http://www.ccpn.ac.uk/ccpn" |
629 |
|
630 |
SLOT="0" |
631 |
LICENSE="|| ( CCPN LGPL-2.1 )" |
632 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
633 |
IUSE="extendnmr +opengl" |
634 |
|
635 |
RDEPEND=" |
636 |
dev-lang/tk[threads] |
637 |
>=dev-python/numpy-1.4 |
638 |
>=dev-tcltk/tix-8.4.3 |
639 |
=sci-libs/ccpn-data-"${MY_MAJOR}"* |
640 |
x11-libs/libXext |
641 |
x11-libs/libX11 |
642 |
opengl? ( |
643 |
media-libs/freeglut |
644 |
dev-python/pyglet )" |
645 |
# We need to fix this |
646 |
# sci-chemistry/mdd |
647 |
DEPEND="${RDEPEND}" |
648 |
PDEPEND=" |
649 |
extendnmr? ( |
650 |
sci-chemistry/aria |
651 |
sci-chemistry/prodecomp )" |
652 |
|
653 |
RESTRICT="mirror" |
654 |
|
655 |
S="${WORKDIR}"/${MY_PN}/${MY_PN}$(get_version_component_range 1-2 ${PV}) |
656 |
|
657 |
pkg_setup() { |
658 |
python_set_active_version 2 |
659 |
} |
660 |
|
661 |
src_prepare() { |
662 |
[[ -n ${PATCHSET} ]] && \ |
663 |
epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch |
664 |
|
665 |
epatch "${FILESDIR}"/${MY_PV}-parallel.patch |
666 |
|
667 |
local tk_ver |
668 |
local myconf |
669 |
|
670 |
tk_ver="$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2)" |
671 |
|
672 |
if use opengl; then |
673 |
GLUT_NEED_INIT="-DNEED_GLUT_INIT" |
674 |
IGNORE_GL_FLAG="" |
675 |
GL_FLAG="-DUSE_GL_TRUE" |
676 |
GL_DIR="${EPREFIX}/usr" |
677 |
GL_LIB="-lglut -lGLU -lGL" |
678 |
GL_INCLUDE_FLAGS="-I\$(GL_DIR)/include" |
679 |
GL_LIB_FLAGS="-L\$(GL_DIR)/$(get_libdir)" |
680 |
|
681 |
else |
682 |
IGNORE_GL_FLAG="-DIGNORE_GL" |
683 |
GL_FLAG="-DUSE_GL_FALSE" |
684 |
fi |
685 |
|
686 |
GLUT_NOT_IN_GL="" |
687 |
GLUT_FLAG="\$(GLUT_NEED_INIT) \$(GLUT_NOT_IN_GL)" |
688 |
|
689 |
rm -rf data model doc license || die |
690 |
|
691 |
sed \ |
692 |
-e "s|/usr|${EPREFIX}/usr|g" \ |
693 |
-e "s|^\(CC =\).*|\1 $(tc-getCC)|g" \ |
694 |
-e "s|^\(OPT_FLAG =\).*|\1 ${CFLAGS}|g" \ |
695 |
-e "s|^\(LINK_FLAGS =.*\)|\1 ${LDFLAGS}|g" \ |
696 |
-e "s|^\(IGNORE_GL_FLAG =\).*|\1 ${IGNORE_GL_FLAG}|g" \ |
697 |
-e "s|^\(GL_FLAG =\).*|\1 ${GL_FLAG}|g" \ |
698 |
-e "s|^\(GL_DIR =\).*|\1 ${GL_DIR}|g" \ |
699 |
-e "s|^\(GL_LIB =\).*|\1 ${GL_LIB}|g" \ |
700 |
-e "s|^\(GL_LIB_FLAGS =\).*|\1 ${GL_LIB_FLAGS}|g" \ |
701 |
-e "s|^\(GL_INCLUDE_FLAGS =\).*|\1 ${GL_INCLUDE_FLAGS}|g" \ |
702 |
-e "s|^\(GLUT_NEED_INIT =\).*|\1 ${GLUT_NEED_INIT}|g" \ |
703 |
-e "s|^\(GLUT_NOT_IN_GL =\).*|\1|g" \ |
704 |
-e "s|^\(X11_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
705 |
-e "s|^\(TCL_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
706 |
-e "s|^\(TK_LIB_FLAGS =\).*|\1 -L${EPREFIX}/usr/$(get_libdir)|g" \ |
707 |
-e "s|^\(PYTHON_INCLUDE_FLAGS =\).*|\1 -I${EPREFIX}/$(python_get_includedir)|g" \ |
708 |
-e "s|^\(PYTHON_LIB =\).*|\1 $(python_get_library -l)|g" \ |
709 |
c/environment_default.txt > c/environment.txt |
710 |
} |
711 |
|
712 |
src_compile() { |
713 |
emake -C c all links || die |
714 |
} |
715 |
|
716 |
src_install() { |
717 |
local libdir |
718 |
local tkver |
719 |
local _wrapper |
720 |
|
721 |
find . -name "*.pyc" -type d -delete |
722 |
|
723 |
libdir=$(get_libdir) |
724 |
tkver=$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2) |
725 |
|
726 |
_wrapper="analysis dangle dataShifter depositionFileImporter eci formatConverter pipe2azara xeasy2azara" |
727 |
use extendnmr && _wrapper="${_wrapper} extendNmr" |
728 |
for wrapper in ${_wrapper}; do |
729 |
sed \ |
730 |
-e "s|gentoo_sitedir|${EPREFIX}$(python_get_sitedir)|g" \ |
731 |
-e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \ |
732 |
-e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \ |
733 |
-e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \ |
734 |
-e "s|gentoopython|${EPREFIX}/usr/bin/python|g" \ |
735 |
-e "s|//|/|g" \ |
736 |
"${FILESDIR}"/${wrapper} > "${T}"/${wrapper} || die "Fail fix ${wrapper}" |
737 |
dobin "${T}"/${wrapper} || die "Failed to install ${wrapper}" |
738 |
done |
739 |
|
740 |
local in_path |
741 |
local files |
742 |
local pydocs |
743 |
|
744 |
pydocs="$(find python -name doc -type d)" |
745 |
rm -rf ${pydocs} || die |
746 |
|
747 |
in_path=$(python_get_sitedir)/${PN} |
748 |
|
749 |
for i in python/memops/format/compatibility/{Converters,part2/Converters2}.py; do |
750 |
sed \ |
751 |
-e 's|#from __future__|from __future__|g' \ |
752 |
-i ${i} || die |
753 |
done |
754 |
|
755 |
insinto ${in_path} |
756 |
|
757 |
dodir ${in_path}/c |
758 |
|
759 |
ebegin "Installing main files" |
760 |
doins -r python || die "main files installation failed" |
761 |
eend |
762 |
dosym ../../../..//share/doc/ccpn-data-${MY_MAJOR}/html ${in_path}/doc || die |
763 |
for i in ${pydocs}; do |
764 |
dosym /usr/share/doc/ccpn-data-${MY_MAJOR}/html/${i} ${in_path}/${i} |
765 |
done |
766 |
|
767 |
dosym /usr/share/ccpn/data ${in_path}/data |
768 |
dosym /usr/share/ccpn/model ${in_path}/model |
769 |
|
770 |
einfo "Adjusting permissions" |
771 |
|
772 |
files=" |
773 |
cambridge/c/BayesPeakSeparator.so |
774 |
ccp/c/StructUtil.so |
775 |
ccp/c/StructStructure.so |
776 |
ccp/c/StructBond.so |
777 |
ccp/c/StructAtom.so |
778 |
ccpnmr/c/DyAtomCoord.so |
779 |
ccpnmr/c/DyDistConstraint.so |
780 |
ccpnmr/c/DyDistForce.so |
781 |
ccpnmr/c/AtomCoordList.so |
782 |
ccpnmr/c/DyAtomCoordList.so |
783 |
ccpnmr/c/ContourStyle.so |
784 |
ccpnmr/c/ContourLevels.so |
785 |
ccpnmr/c/SliceFile.so |
786 |
ccpnmr/c/PeakCluster.so |
787 |
ccpnmr/c/Dynamics.so |
788 |
ccpnmr/c/Bacus.so |
789 |
ccpnmr/c/Midge.so |
790 |
ccpnmr/c/DyDistConstraintList.so |
791 |
ccpnmr/c/WinPeakList.so |
792 |
ccpnmr/c/PeakList.so |
793 |
ccpnmr/c/DistConstraint.so |
794 |
ccpnmr/c/CloudUtil.so |
795 |
ccpnmr/c/DistForce.so |
796 |
ccpnmr/c/DistConstraintList.so |
797 |
ccpnmr/c/AtomCoord.so |
798 |
ccpnmr/c/DyDynamics.so |
799 |
ccpnmr/c/ContourFile.so |
800 |
memops/c/ShapeFile.so |
801 |
memops/c/BlockFile.so |
802 |
memops/c/PdfHandler.so |
803 |
memops/c/MemCache.so |
804 |
memops/c/FitMethod.so |
805 |
memops/c/PsHandler.so |
806 |
memops/c/GlHandler.so |
807 |
memops/c/StoreFile.so |
808 |
memops/c/StoreHandler.so |
809 |
memops/c/TkHandler.so" |
810 |
for FILE in ${files}; do |
811 |
fperms 755 ${in_path}/python/${FILE} |
812 |
done |
813 |
} |
814 |
|
815 |
pkg_postinst() { |
816 |
python_mod_optimize ${PN} |
817 |
} |
818 |
|
819 |
pkg_postrm() { |
820 |
python_mod_cleanup ${PN} |
821 |
} |