Gentoo Archives: gentoo-commits

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