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/coot: ChangeLog coot-0.6.2.ebuild metadata.xml coot-0.6.1.ebuild
Date: Tue, 28 Jun 2011 17:14:28
Message-Id: 20110628170128.D932120057@flycatcher.gentoo.org
1 jlec 11/06/28 17:01:28
2
3 Modified: ChangeLog metadata.xml coot-0.6.1.ebuild
4 Added: coot-0.6.2.ebuild
5 Log:
6 Version Bump
7
8 (Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.37 sci-chemistry/coot/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/ChangeLog?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/ChangeLog?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/ChangeLog?r1=1.36&r2=1.37
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -u -r1.36 -r1.37
23 --- ChangeLog 2 Mar 2011 09:57:12 -0000 1.36
24 +++ ChangeLog 28 Jun 2011 17:01:28 -0000 1.37
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sci-chemistry/coot
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v 1.36 2011/03/02 09:57:12 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v 1.37 2011/06/28 17:01:28 jlec Exp $
30 +
31 +*coot-0.6.2 (28 Jun 2011)
32 +
33 + 28 Jun 2011; Justin Lecher <jlec@g.o>
34 + +files/0.6.2-clipper-config.patch, +files/0.6.2-gl.patch,
35 + +files/0.6.2-mmdb-config.patch, coot-0.6.1.ebuild, +coot-0.6.2.ebuild,
36 + metadata.xml:
37 + Version Bump
38
39 02 Mar 2011; Justin Lecher <jlec@g.o> coot-0.6.1.ebuild:
40 Correct Slots for gtk 3 introduction to tree
41
42
43
44 1.7 sci-chemistry/coot/metadata.xml
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/metadata.xml?rev=1.7&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/metadata.xml?rev=1.7&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/metadata.xml?r1=1.6&r2=1.7
49
50 Index: metadata.xml
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/coot/metadata.xml,v
53 retrieving revision 1.6
54 retrieving revision 1.7
55 diff -u -r1.6 -r1.7
56 --- metadata.xml 6 Feb 2010 00:15:00 -0000 1.6
57 +++ metadata.xml 28 Jun 2011 17:01:28 -0000 1.7
58 @@ -1,5 +1,5 @@
59 <?xml version="1.0" encoding="UTF-8"?>
60 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
61 <pkgmetadata>
62 -<herd>sci-chemistry</herd>
63 + <herd>sci-chemistry</herd>
64 </pkgmetadata>
65
66
67
68 1.13 sci-chemistry/coot/coot-0.6.1.ebuild
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/coot-0.6.1.ebuild?rev=1.13&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/coot-0.6.1.ebuild?rev=1.13&content-type=text/plain
72 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/coot-0.6.1.ebuild?r1=1.12&r2=1.13
73
74 Index: coot-0.6.1.ebuild
75 ===================================================================
76 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.6.1.ebuild,v
77 retrieving revision 1.12
78 retrieving revision 1.13
79 diff -u -r1.12 -r1.13
80 --- coot-0.6.1.ebuild 2 Mar 2011 09:57:12 -0000 1.12
81 +++ coot-0.6.1.ebuild 28 Jun 2011 17:01:28 -0000 1.13
82 @@ -1,8 +1,8 @@
83 # Copyright 1999-2011 Gentoo Foundation
84 # Distributed under the terms of the GNU General Public License v2
85 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.6.1.ebuild,v 1.12 2011/03/02 09:57:12 jlec Exp $
86 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.6.1.ebuild,v 1.13 2011/06/28 17:01:28 jlec Exp $
87
88 -EAPI="3"
89 +EAPI=3
90
91 PYTHON_DEPEND="2"
92
93 @@ -89,13 +89,13 @@
94 # Yes, this is broken behavior.
95 econf \
96 --includedir='${prefix}/include/coot' \
97 - --with-gtkcanvas-prefix="${EPREFIX}"/usr \
98 - --with-clipper-prefix="${EPREFIX}"/usr \
99 - --with-mmdb-prefix="${EPREFIX}"/usr \
100 - --with-ssmlib-prefix="${EPREFIX}"/usr \
101 - --with-gtkgl-prefix="${EPREFIX}"/usr \
102 + --with-gtkcanvas-prefix="${EPREFIX}/usr" \
103 + --with-clipper-prefix="${EPREFIX}/usr" \
104 + --with-mmdb-prefix="${EPREFIX}/usr" \
105 + --with-ssmlib-prefix="${EPREFIX}/usr" \
106 + --with-gtkgl-prefix="${EPREFIX}/usr" \
107 --with-guile \
108 - --with-python="${EPREFIX}"/usr \
109 + --with-python="${EPREFIX}/usr" \
110 --with-guile-gtk \
111 --with-gtk2 \
112 --with-pygtk
113 @@ -149,5 +149,6 @@
114 einfo "CLIBD_MON ${CLIBD_MON}"
115 einfo "SYMINFO ${SYMINFO}"
116
117 + "${S}"/src/coot-real --no-graphics --script python-tests/coot_unittest.py || die
118 "${S}"/src/coot-real --no-graphics --script command-line-greg.scm || die
119 }
120
121
122
123 1.1 sci-chemistry/coot/coot-0.6.2.ebuild
124
125 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/coot-0.6.2.ebuild?rev=1.1&view=markup
126 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/coot-0.6.2.ebuild?rev=1.1&content-type=text/plain
127
128 Index: coot-0.6.2.ebuild
129 ===================================================================
130 # Copyright 1999-2011 Gentoo Foundation
131 # Distributed under the terms of the GNU General Public License v2
132 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.6.2.ebuild,v 1.1 2011/06/28 17:01:28 jlec Exp $
133
134 EAPI=3
135
136 PYTHON_DEPEND="2"
137
138 inherit autotools base eutils python toolchain-funcs versionator
139
140 MY_S2_PV=$(replace_version_separator 2 - ${PV})
141 MY_S2_P=${PN}-${MY_S2_PV/pre1/pre-1}
142 MY_S_P=${MY_S2_P}-${PR/r/revision-}
143 MY_PV=${PV}
144 MY_P=${PN}-${MY_PV}
145
146 DESCRIPTION="Crystallographic Object-Oriented Toolkit for model building, completion and validation"
147 HOMEPAGE="http://www.biop.ox.ac.uk/coot/"
148 SRC_URI="
149 http://www.biop.ox.ac.uk/coot/software/source/releases/${MY_P}.tar.gz
150 test? ( http://dev.gentoo.org/~jlec/distfiles/greg-data-${PV}.tar.gz )"
151
152 SLOT="0"
153 LICENSE="GPL-3"
154 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
155 IUSE="+openmp test"
156
157 SCIDEPS="
158 >=sci-libs/ccp4-libs-6.1
159 >=sci-libs/clipper-20090520
160 >=sci-libs/coot-data-2
161 >=sci-libs/gsl-1.3
162 sci-libs/mmdb
163 sci-chemistry/reduce
164 sci-chemistry/refmac
165 sci-chemistry/probe"
166
167 XDEPS="
168 gnome-base/libgnomecanvas
169 gnome-base/librsvg:2
170 media-libs/libpng
171 media-libs/freeglut
172 x11-libs/gtk+:2
173 x11-libs/gtkglext"
174
175 SCHEMEDEPS="
176 dev-scheme/net-http
177 dev-scheme/guile-gui
178 >=dev-scheme/guile-lib-0.1.6
179 dev-scheme/guile-www
180 >=x11-libs/guile-gtk-2.1"
181
182 RDEPEND="
183 ${SCIDEPS}
184 ${XDEPS}
185 ${SCHEMEDEPS}
186 dev-python/pygtk:2
187 >=dev-libs/gmp-4.2.2-r2
188 >=net-misc/curl-7.19.6
189 net-dns/libidn"
190 DEPEND="${RDEPEND}
191 dev-lang/swig
192 sys-devel/bc
193 test? ( dev-scheme/greg )"
194
195 S="${WORKDIR}/${MY_P}"
196
197 pkg_setup() {
198 if use openmp; then
199 tc-has-openmp || die "Please use an OPENMP capable compiler"
200 fi
201 python_set_active_version 2
202 }
203
204 PATCHES=(
205 "${FILESDIR}"/${PV}-clipper-config.patch
206 "${FILESDIR}"/${PV}-gl.patch
207 "${FILESDIR}"/${PV}-mmdb-config.patch
208 )
209
210 src_prepare() {
211 base_src_prepare
212
213 eautoreconf
214 }
215
216 src_configure() {
217 # All the --with's are used to activate various parts.
218 # Yes, this is broken behavior.
219 econf \
220 --includedir='${prefix}/include/coot' \
221 --with-gtkcanvas-prefix="${EPREFIX}/usr" \
222 --with-ssmlib-prefix="${EPREFIX}/usr" \
223 --with-gtkgl-prefix="${EPREFIX}/usr" \
224 --with-guile \
225 --with-python="${EPREFIX}/usr" \
226 --with-guile-gtk \
227 --with-gtk2 \
228 --with-pygtk \
229 $(use_enable openmp)
230 }
231
232 src_compile() {
233 emake || die "emake failed"
234 python_convert_shebangs $(python_get_version) src/coot_gtk2.py
235 cp "${S}"/src/coot_gtk2.py python/coot.py || die
236 }
237
238 src_test() {
239 source "${EPREFIX}/etc/profile.d/40ccp4.setup.sh"
240 mkdir "${T}"/coot_test
241
242 export COOT_STANDARD_RESIDUES="${S}/standard-residues.pdb"
243 export COOT_SCHEME_DIR="${S}/scheme/"
244 export COOT_RESOURCES_FILE="${S}/cootrc"
245 export COOT_PIXMAPS_DIR="${S}/pixmaps"
246 export COOT_DATA_DIR="${S}"
247 export COOT_PYTHON_DIR="${S}/python"
248 export PYTHONPATH="${COOT_PYTHON_DIR}:${PYTHONPATH}"
249 export PYTHONHOME="${EPREFIX}"/usr
250 export CCP4_SCR="${T}"/coot_test
251 export CLIBD_MON="${EPREFIX}/usr/share/ccp4/data/monomers/"
252 export SYMINFO="${S}/syminfo.lib"
253
254 export COOT_TEST_DATA_DIR="${WORKDIR}/data/greg-data"
255
256 cat > command-line-greg.scm <<- EOF
257 (use-modules (ice-9 greg))
258 (set! greg-tools (list "greg-tests"))
259 (set! greg-debug #t)
260 (set! greg-verbose 5)
261 (let ((r (greg-test-run)))
262 (if r
263 (coot-real-exit 0)
264 (coot-real-exit 1)))
265 EOF
266
267 einfo "Running test with following paths ..."
268 einfo "COOT_STANDARD_RESIDUES $COOT_STANDARD_RESIDUES"
269 einfo "COOT_SCHEME_DIR $COOT_SCHEME_DIR"
270 einfo "COOT_RESOURCES_FILE $COOT_RESOURCES_FILE"
271 einfo "COOT_PIXMAPS_DIR $COOT_PIXMAPS_DIR"
272 einfo "COOT_DATA_DIR $COOT_DATA_DIR"
273 einfo "COOT_PYTHON_DIR $COOT_PYTHON_DIR"
274 einfo "PYTHONPATH $PYTHONPATH"
275 einfo "PYTHONHOME $PYTHONHOME"
276 einfo "CCP4_SCR ${CCP4_SCR}"
277 einfo "CLIBD_MON ${CLIBD_MON}"
278 einfo "SYMINFO ${SYMINFO}"
279
280 "${S}"/src/coot-real --no-graphics --script python-tests/coot_unittest.py || die
281 "${S}"/src/coot-real --no-graphics --script command-line-greg.scm || die
282 }