1 |
jlec 10/02/27 09:39:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ccpn-2.1.3.1_p100227.ebuild |
5 |
Removed: ccpn-2.1.3.1_p100225.ebuild |
6 |
Log: |
7 |
Todays Python updates |
8 |
(Portage version: 2.2_rc63/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.12 sci-chemistry/ccpn/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ChangeLog?rev=1.12&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ChangeLog?rev=1.12&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ChangeLog?r1=1.11&r2=1.12 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v |
20 |
retrieving revision 1.11 |
21 |
retrieving revision 1.12 |
22 |
diff -u -r1.11 -r1.12 |
23 |
--- ChangeLog 26 Feb 2010 10:07:40 -0000 1.11 |
24 |
+++ ChangeLog 27 Feb 2010 09:39:12 -0000 1.12 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sci-chemistry/ccpn |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.11 2010/02/26 10:07:40 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.12 2010/02/27 09:39:12 jlec Exp $ |
30 |
+ |
31 |
+*ccpn-2.1.3.1_p100227 (27 Feb 2010) |
32 |
+ |
33 |
+ 27 Feb 2010; Justin Lecher (jlec) <jlec@g.o> |
34 |
+ -ccpn-2.1.3.1_p100225.ebuild, +ccpn-2.1.3.1_p100227.ebuild: |
35 |
+ Todays Python updates |
36 |
|
37 |
*ccpn-2.1.3.1_p100226-r1 (26 Feb 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-chemistry/ccpn/ccpn-2.1.3.1_p100227.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.3.1_p100227.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.3.1_p100227.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ccpn-2.1.3.1_p100227.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/ccpn/ccpn-2.1.3.1_p100227.ebuild,v 1.1 2010/02/27 09:39:12 jlec Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
PYTHON_DEPEND="2:2.5" |
55 |
SUPPORT_PYTHON_ABIS="1" |
56 |
PYTHON_USE_WITH="ssl tk" |
57 |
|
58 |
inherit eutils portability python toolchain-funcs versionator |
59 |
|
60 |
PATCHSET="${PV##*_p}" |
61 |
MY_PN="${PN}mr" |
62 |
MY_PV="$(replace_version_separator 3 _ ${PV%%_p*})" |
63 |
|
64 |
DESCRIPTION="The Collaborative Computing Project for NMR" |
65 |
SRC_URI="http://www.bio.cam.ac.uk/ccpn/download/${MY_PN}/analysis${MY_PV}.tar.gz" |
66 |
[[ -n ${PATCHSET} ]] && SRC_URI="${SRC_URI} http://dev.gentooexperimental.org/~jlec/distfiles/ccpn-update-${PATCHSET}.patch.bz2" |
67 |
HOMEPAGE="http://www.ccpn.ac.uk/ccpn" |
68 |
|
69 |
SLOT="0" |
70 |
LICENSE="|| ( CCPN LGPL-2.1 )" |
71 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
72 |
IUSE="+opengl" |
73 |
|
74 |
RDEPEND=" |
75 |
dev-lang/tk |
76 |
dev-python/numpy |
77 |
dev-tcltk/tix |
78 |
opengl? ( virtual/glut )" |
79 |
DEPEND="${RDEPEND}" |
80 |
RESTRICT_PYTHON_ABIS="2.4 3.*" |
81 |
|
82 |
RESTRICT="mirror" |
83 |
S="${WORKDIR}"/${MY_PN}/${MY_PN}$(get_version_component_range 1-2 ${PV}) |
84 |
|
85 |
src_prepare() { |
86 |
[[ -n ${PATCHSET} ]] && \ |
87 |
epatch "${WORKDIR}"/ccpn-update-${PATCHSET}.patch |
88 |
|
89 |
epatch "${FILESDIR}"/${MY_PV}-parallel.patch |
90 |
epatch "${FILESDIR}"/${MY_PV}-dynamics.patch |
91 |
|
92 |
local tk_ver |
93 |
local myconf |
94 |
|
95 |
tk_ver="$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2)" |
96 |
|
97 |
if use opengl; then |
98 |
GLUT_NEED_INIT="-DNEED_GLUT_INIT" |
99 |
IGNORE_GL_FLAG="" |
100 |
GL_FLAG="-DUSE_GL_FALSE" |
101 |
GL_DIR="${EPREFIX}/usr" |
102 |
GL_LIB="-lglut -lGLU -lGL" |
103 |
GL_INCLUDE_FLAGS="-I\$(GL_DIR)/include" |
104 |
GL_LIB_FLAGS="-L\$(GL_DIR)/$(get_libdir)" |
105 |
|
106 |
else |
107 |
IGNORE_GL_FLAG="-DIGNORE_GL" |
108 |
GL_FLAG="-DUSE_GL_FALSE" |
109 |
fi |
110 |
|
111 |
GLUT_NOT_IN_GL="" |
112 |
GLUT_FLAG="\$(GLUT_NEED_INIT) \$(GLUT_NOT_IN_GL)" |
113 |
|
114 |
python_copy_sources --no-link |
115 |
|
116 |
preparation() { |
117 |
sed \ |
118 |
-e "s:/usr:${EPREFIX}/usr:g" \ |
119 |
-e "s:^\(CC =\).*:\1 $(tc-getCC):g" \ |
120 |
-e "s:^\(OPT_FLAG =\).*:\1 ${CFLAGS}:g" \ |
121 |
-e "s:^\(LINK_FLAGS =.*\):\1 ${LDFLAGS}:g" \ |
122 |
-e "s:^\(IGNORE_GL_FLAG =\).*:\1 ${IGNORE_GL_FLAG}:g" \ |
123 |
-e "s:^\(GL_FLAG =\).*:\1 ${GL_FLAG}:g" \ |
124 |
-e "s:^\(GLUT_NEED_INIT =\).*:\1 ${GLUT_NEED_INIT}:g" \ |
125 |
-e "s:^\(GLUT_NOT_IN_GL =\).*:\1:g" \ |
126 |
-e "s:^\(X11_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
127 |
-e "s:^\(TCL_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
128 |
-e "s:^\(TK_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
129 |
-e "s:^\(PYTHON_INCLUDE_FLAGS =\).*:\1 -I\$(PYTHON_DIR)/include/python$(python_get_version):g" \ |
130 |
-e "s:^\(PYTHON_LIB =\).*:\1 -lpython$(python_get_version):g" \ |
131 |
-e "s:^\(GL_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
132 |
c/environment_default.txt > c/environment.txt |
133 |
} |
134 |
python_execute_function -s preparation |
135 |
} |
136 |
|
137 |
src_compile() { |
138 |
building() { |
139 |
emake -C c all links |
140 |
} |
141 |
python_execute_function -s building |
142 |
} |
143 |
|
144 |
src_install() { |
145 |
local libdir |
146 |
local tkver |
147 |
|
148 |
libdir=$(get_libdir) |
149 |
tkver=$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2) |
150 |
|
151 |
for wrapper in analysis dangle dataShifter eci formatConverter pipe2azara; do |
152 |
sed -e "s:gentoo_sitedir:${EPREFIX}/$(python_get_sitedir -f):g" \ |
153 |
-e "s:gentoolibdir:${EPREFIX}/usr/${libdir}:g" \ |
154 |
-e "s:gentootk:${EPREFIX}/usr/${libdir}/tk${tkver}:g" \ |
155 |
-e "s:gentootcl:${EPREFIX}/usr/${libdir}/tclk${tkver}:g" \ |
156 |
-e "s:gentoopython:${EPREFIX}/usr/bin/python:g" \ |
157 |
"${FILESDIR}"/${wrapper} > "${T}"/${wrapper} || die "Fail fix ${wrapper}" |
158 |
dobin "${T}"/${wrapper} || die "Failed to install ${wrapper}" |
159 |
done |
160 |
|
161 |
installation() { |
162 |
local in_path |
163 |
local files |
164 |
|
165 |
in_path=$(python_get_sitedir)/${PN} |
166 |
|
167 |
for i in python/memops/format/compatibility/{Converters,part2/Converters2}.py; do |
168 |
sed \ |
169 |
-e 's:#from __future__:from __future__:g' \ |
170 |
-i ${i} |
171 |
done |
172 |
|
173 |
insinto ${in_path} |
174 |
|
175 |
dodir ${in_path}/c |
176 |
|
177 |
ebegin "Installing main files" |
178 |
doins -r data model python || die "main files installation failed" |
179 |
eend |
180 |
|
181 |
dohtml -r doc/* || die |
182 |
dosym ../../../../share/doc/${PF}/html ${in_path}/doc || die |
183 |
|
184 |
einfo "Adjusting permissions" |
185 |
|
186 |
files="ccpnmr/c/ContourFile.so |
187 |
ccpnmr/c/ContourLevels.so |
188 |
ccpnmr/c/ContourStyle.so |
189 |
ccpnmr/c/PeakList.so |
190 |
ccpnmr/c/SliceFile.so |
191 |
ccpnmr/c/WinPeakList.so |
192 |
ccpnmr/c/AtomCoordList.so |
193 |
ccpnmr/c/AtomCoord.so |
194 |
ccpnmr/c/Bacus.so |
195 |
ccpnmr/c/CloudUtil.so |
196 |
ccpnmr/c/DistConstraintList.so |
197 |
ccpnmr/c/DistConstraint.so |
198 |
ccpnmr/c/DistForce.so |
199 |
ccpnmr/c/Dynamics.so |
200 |
ccpnmr/c/Midge.so |
201 |
ccp/c/StructAtom.so |
202 |
ccp/c/StructBond.so |
203 |
ccp/c/StructStructure.so |
204 |
ccp/c/StructUtil.so |
205 |
memops/c/BlockFile.so |
206 |
memops/c/FitMethod.so |
207 |
memops/c/GlHandler.so |
208 |
memops/c/MemCache.so |
209 |
memops/c/PdfHandler.so |
210 |
memops/c/PsHandler.so |
211 |
memops/c/ShapeFile.so |
212 |
memops/c/StoreFile.so |
213 |
memops/c/StoreHandler.so |
214 |
memops/c/TkHandler.so" |
215 |
|
216 |
for FILE in ${files}; do |
217 |
fperms 755 ${in_path}/python/${FILE} |
218 |
done |
219 |
} |
220 |
python_execute_function -s installation |
221 |
} |
222 |
|
223 |
pkg_postinst() { |
224 |
python_mod_optimize ${PN} |
225 |
} |
226 |
|
227 |
pkg_postrm() { |
228 |
python_mod_cleanup ${PN} |
229 |
} |