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