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