Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/chaco: ChangeLog chaco-3.4.0.ebuild
Date: Sun, 30 Jan 2011 21:46:27
Message-Id: 20110130214617.E9BAE20054@flycatcher.gentoo.org
1 arfrever 11/01/30 21:46:17
2
3 Modified: ChangeLog
4 Added: chaco-3.4.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha19_p24/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.10 dev-python/chaco/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chaco/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chaco/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chaco/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/chaco/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 18 Oct 2010 14:51:00 -0000 1.9
24 +++ ChangeLog 30 Jan 2011 21:46:17 -0000 1.10
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/chaco
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/chaco/ChangeLog,v 1.9 2010/10/18 14:51:00 arfrever Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/chaco/ChangeLog,v 1.10 2011/01/30 21:46:17 arfrever Exp $
31 +
32 +*chaco-3.4.0 (30 Jan 2011)
33 +
34 + 30 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
35 + -chaco-3.3.2.ebuild, +chaco-3.4.0.ebuild:
36 + Version bump.
37
38 *chaco-3.3.2 (18 Oct 2010)
39
40
41
42
43 1.1 dev-python/chaco/chaco-3.4.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chaco/chaco-3.4.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/chaco/chaco-3.4.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: chaco-3.4.0.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-python/chaco/chaco-3.4.0.ebuild,v 1.1 2011/01/30 21:46:17 arfrever Exp $
53
54 EAPI="3"
55 PYTHON_DEPEND="2"
56 SUPPORT_PYTHON_ABIS="1"
57 RESTRICT_PYTHON_ABIS="3.* *-jython"
58 DISTUTILS_SRC_TEST="setup.py"
59
60 inherit distutils virtualx
61
62 MY_PN="Chaco"
63 MY_P="${MY_PN}-${PV}"
64
65 DESCRIPTION="Interactive plotting toolkit"
66 HOMEPAGE="http://code.enthought.com/projects/chaco/ http://pypi.python.org/pypi/Chaco"
67 SRC_URI="http://www.enthought.com/repo/ETS/${MY_P}.tar.gz"
68
69 LICENSE="BSD"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86"
72 IUSE="doc examples test"
73
74 RDEPEND=">=dev-python/enable-3.4.0
75 >=dev-python/enthoughtbase-3.1.0
76 dev-python/numpy"
77 DEPEND="${RDEPEND}
78 dev-python/setuptools
79 doc? (
80 dev-python/sphinx
81 media-fonts/font-cursor-misc
82 media-fonts/font-misc-misc
83 x11-apps/xhost
84 )
85 test? (
86 dev-python/coverage
87 dev-python/nose
88 media-fonts/font-cursor-misc
89 media-fonts/font-misc-misc
90 x11-apps/xhost
91 )"
92
93 S="${WORKDIR}/${MY_P}"
94
95 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
96
97 DOCS="docs/*.txt"
98 PYTHON_MODNAME="enthought"
99
100 src_prepare() {
101 distutils_src_prepare
102
103 # "${S}/enthought/chaco2/tests and "${S}/enthought/chaco2/shell/tests" do not exist.
104 sed \
105 -e "s:,enthought/chaco2/tests::" \
106 -e "s:,enthought/chaco2/shell/tests::" \
107 -i setup.cfg || die "sed setup.cfg failed"
108
109 # Disable failing test.
110 sed -e "s/test_draw_border_simple/_&/" -i enthought/chaco/tests/border_test_case.py
111 }
112
113 src_compile() {
114 distutils_src_compile
115
116 if use doc; then
117 einfo "Generation of documentation"
118 pushd docs > /dev/null
119 doc_generation() {
120 emake html || die "Generation of documentation failed"
121 }
122 maketype="doc_generation" virtualmake
123 popd > /dev/null
124 fi
125 }
126
127 src_test() {
128 maketype="distutils_src_test" virtualmake
129 }
130
131 src_install() {
132 find -name "*LICENSE.txt" -delete
133 distutils_src_install
134
135 if use doc; then
136 pushd docs/build/html > /dev/null
137 insinto /usr/share/doc/${PF}/html
138 doins -r [a-z]* _images _static || die "Installation of documentation failed"
139 popd > /dev/null
140 fi
141
142 if use examples; then
143 insinto /usr/share/doc/${PF}/examples
144 doins -r examples/* || die "Installation of examples failed"
145 fi
146 }