1 |
commit: ac62378495e33e41e1ae532b799efa96b2f5a64f |
2 |
Author: Kacper Kowalik (Xarthisius) <xarthisius <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 11 19:23:42 2012 +0000 |
4 |
Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 11 19:23:42 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/python.git;a=commit;h=ac623784 |
7 |
|
8 |
[dev-python/traits] version bump, fix tests and docs build, remove tests during src_install, drop virtualx dependency |
9 |
|
10 |
--- |
11 |
dev-python/traits/Manifest | 1 + |
12 |
dev-python/traits/metadata.xml | 19 +++++++++ |
13 |
dev-python/traits/traits-4.2.0.ebuild | 66 +++++++++++++++++++++++++++++++++ |
14 |
3 files changed, 86 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/traits/Manifest b/dev-python/traits/Manifest |
17 |
new file mode 100644 |
18 |
index 0000000..4ebe552 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/traits/Manifest |
21 |
@@ -0,0 +1 @@ |
22 |
+DIST traits-4.2.0.tar.gz 4838020 SHA256 ca90fe98f0cf33db8fec0d696cfe624e690907a6f70b9ec42081e51dddd420f5 SHA512 5b93010363e737fe180c9fbb8fa8322a6f7be1ab5fe8ebcda12a0b4d2c5d4c64262d4372abf8cfb2622a6e8ff6f030cd62f806c86bb02420c87631b7c0733c07 WHIRLPOOL f0a485b0317913b67b570793c79db6b085287d400f034623d385a803bec23a557de322d186bf424c8ceab2cb7604fab87d5cef5cdb7a0e2a6e6735e19b941f36 |
23 |
|
24 |
diff --git a/dev-python/traits/metadata.xml b/dev-python/traits/metadata.xml |
25 |
new file mode 100644 |
26 |
index 0000000..490c40a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/traits/metadata.xml |
29 |
@@ -0,0 +1,19 @@ |
30 |
+<?xml version="1.0" encoding="UTF-8"?> |
31 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
32 |
+<pkgmetadata> |
33 |
+ <herd>python</herd> |
34 |
+ <longdescription lang="en"> |
35 |
+ The traits package from the Enthought Tool Suite provides a |
36 |
+ metaclass with special attributes that are called traits. A trait |
37 |
+ is a type definition that can be used for normal Python object |
38 |
+ attributes, giving the attributes some additional characteristics: |
39 |
+ * Initialization: A trait attribute can have a default value |
40 |
+ * Validation: A trait attribute is manifestly typed. |
41 |
+ * Delegation: The value of a trait attribute can be contained in another |
42 |
+ object |
43 |
+ * Notification: Setting the value of a trait attribute can fired |
44 |
+ callbacks |
45 |
+ * Visualization: With the TraitsUI package, GUIs can be generated |
46 |
+ automatically from traited objects. |
47 |
+ </longdescription> |
48 |
+</pkgmetadata> |
49 |
|
50 |
diff --git a/dev-python/traits/traits-4.2.0.ebuild b/dev-python/traits/traits-4.2.0.ebuild |
51 |
new file mode 100644 |
52 |
index 0000000..cb3f194 |
53 |
--- /dev/null |
54 |
+++ b/dev-python/traits/traits-4.2.0.ebuild |
55 |
@@ -0,0 +1,66 @@ |
56 |
+# Copyright 1999-2012 Gentoo Foundation |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/traits/traits-4.1.0.ebuild,v 1.3 2012/06/01 13:02:22 ago Exp $ |
59 |
+ |
60 |
+EAPI=4 |
61 |
+ |
62 |
+PYTHON_DEPEND="2" |
63 |
+SUPPORT_PYTHON_ABIS="1" |
64 |
+RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*" |
65 |
+DISTUTILS_SRC_TEST="nosetests" |
66 |
+ |
67 |
+inherit distutils |
68 |
+ |
69 |
+DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" |
70 |
+HOMEPAGE="http://code.enthought.com/projects/traits/ http://pypi.python.org/pypi/traits" |
71 |
+SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="BSD" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
76 |
+IUSE="doc examples test" |
77 |
+ |
78 |
+RDEPEND="dev-python/numpy" |
79 |
+DEPEND="dev-python/setuptools |
80 |
+ doc? ( dev-python/sphinx ) |
81 |
+ test? ( dev-python/numpy )" |
82 |
+ |
83 |
+DOCS="docs/*.txt" |
84 |
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ sed -i -e "s/'-O3'//g" setup.py || die |
88 |
+ find -name "*LICENSE*.txt" -delete |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ distutils_src_compile |
93 |
+ if use doc ; then |
94 |
+ pushd docs &> /dev/null |
95 |
+ PYTHONPATH="$(ls -d ../build-$(PYTHON -f --ABI)/lib.*)" sphinx-build -b html -d build/doctrees source build/html |
96 |
+ popd &> /dev/null |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+src_test() { |
101 |
+ testing() { |
102 |
+ nosetests -P -s $(ls -d build-${PYTHON_ABI}/lib*) -v |
103 |
+ } |
104 |
+ python_execute_function testing |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ distutils_src_install |
109 |
+ |
110 |
+ delete_tests() { |
111 |
+ rm -rf "${ED}$(python_get_sitedir)/${PN}/tests" |
112 |
+ } |
113 |
+ python_execute_function -q delete_tests |
114 |
+ |
115 |
+ use doc && dohtml -r docs/build/html/* |
116 |
+ |
117 |
+ if use examples; then |
118 |
+ insinto /usr/share/doc/${PF} |
119 |
+ doins -r examples |
120 |
+ fi |
121 |
+} |