Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/enable/
Date: Wed, 25 Apr 2018 19:17:08
Message-Id: 1524683819.6de8d7a38bcef7ad3b3a717b44409ec44b558393.pacho@gentoo
1 commit: 6de8d7a38bcef7ad3b3a717b44409ec44b558393
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 25 19:16:48 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 25 19:16:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6de8d7a3
7
8 dev-python/enable: Version bump
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 dev-python/enable/Manifest | 1 +
13 dev-python/enable/enable-4.7.1.ebuild | 75 +++++++++++++++++++++++++++++++++++
14 2 files changed, 76 insertions(+)
15
16 diff --git a/dev-python/enable/Manifest b/dev-python/enable/Manifest
17 index 9f250de258b..4f4928116dc 100644
18 --- a/dev-python/enable/Manifest
19 +++ b/dev-python/enable/Manifest
20 @@ -1,2 +1,3 @@
21 DIST enable-4.4.1.tar.gz 2507048 BLAKE2B e3414a0505acafece3242a40400aab9ea00062bb605baa500f604df875b1caacd446c30189a23bac856c6cb39067f120be6e89ac9c95a05e92dc882d839a7e4b SHA512 72c879f19e26a4311b900cb4665969b9f806ce47b23c214a25e3ec308cc5300b6d71084a793215b05302fbeba09e13a4561e661c3bddb700d529bd31cfeb4dff
22 DIST enable-4.5.1.tar.gz 2571975 BLAKE2B dfd294f80e22fa89243057f405fe83ecadeb3768cae5a103e62219cfc62ecb5bd3acf1bd2d575da3276e8111c5c5330fa88e1ed06c6eb67a04974a57dd0cbd98 SHA512 1095a4490f4918756dd33864aaba2636c294c3b177d3f500d98a355ec86ef86ab211d33cdec95c2d37e7e1df41622acf2c8ecf524a1d93cc39797804c49e6971
23 +DIST enable-4.7.1.tar.gz 2728889 BLAKE2B 2952c1772ea902b2a040a5dbc1ade4fcb41f38da41cb9cfd3a574d16397fcceedb5d2216e19bd14ca9881ff27efa93ec0fe4b94db8f3baedf174fe062c825f1e SHA512 49ca414d1273fb5ddcb1732e621f91a5ac49ff02d63b5b36b8d9e28dd737eb4a312f35345fc29db555db1c6e0e8c9bf2204f8662b43a2761db6c2d656c6b2140
24
25 diff --git a/dev-python/enable/enable-4.7.1.ebuild b/dev-python/enable/enable-4.7.1.ebuild
26 new file mode 100644
27 index 00000000000..1672c3a01ef
28 --- /dev/null
29 +++ b/dev-python/enable/enable-4.7.1.ebuild
30 @@ -0,0 +1,75 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python2_7 )
36 +
37 +inherit distutils-r1 virtualx flag-o-matic
38 +
39 +DESCRIPTION="Enthought Tool Suite: Drawing and interaction packages"
40 +HOMEPAGE="http://docs.enthought.com/enable/
41 + https://pypi.org/project/enable
42 + https://github.com/enthought/enable"
43 +SRC_URI="https://github.com/enthought/enable/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="doc examples test"
49 +
50 +RDEPEND="
51 + dev-python/apptools[${PYTHON_USEDEP}]
52 + dev-python/kiwisolver[${PYTHON_USEDEP}]
53 + dev-python/numpy[${PYTHON_USEDEP}]
54 + dev-python/reportlab[${PYTHON_USEDEP}]
55 + >=dev-python/traitsui-4[${PYTHON_USEDEP}]
56 + media-libs/freetype:2
57 + virtual/opengl
58 + virtual/glu
59 + x11-libs/libX11
60 +"
61 +DEPEND="${RDEPEND}
62 + dev-python/setuptools[${PYTHON_USEDEP}]
63 + dev-lang/swig:0
64 + dev-python/cython[${PYTHON_USEDEP}]
65 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
66 + test? (
67 + dev-python/fonttools[${PYTHON_USEDEP}]
68 + dev-python/hypothesis[${PYTHON_USEDEP}]
69 + dev-python/mock[${PYTHON_USEDEP}]
70 + dev-python/nose[${PYTHON_USEDEP}]
71 + dev-python/pyface[${PYTHON_USEDEP}]
72 + media-fonts/font-cursor-misc
73 + media-fonts/font-misc-misc
74 + )
75 +"
76 +
77 +DISTUTILS_IN_SOURCE_BUILD=1
78 +
79 +python_prepare_all() {
80 + append-cflags -fno-strict-aliasing
81 +
82 + sed -e 's:html_favicon = "et.ico":html_favicon = "_static/et.ico":' \
83 + -i docs/source/conf.py || die
84 +
85 + distutils-r1_python_prepare_all
86 +}
87 +
88 +python_compile_all() {
89 + use doc && emake -C docs html
90 +}
91 +
92 +python_test() {
93 + pushd "${BUILD_DIR}"/lib > /dev/null
94 + # https://github.com/enthought/enable/issues/158
95 + PYTHONPATH=.:kiva \
96 + virtx nosetests --verbose
97 + popd > /dev/null
98 +}
99 +
100 +python_install_all() {
101 + use doc && local HTML_DOCS=( docs/build/html/. )
102 +
103 + use examples && local EXAMPLES=( examples/. )
104 + distutils-r1_python_install_all
105 +}