dev-python/traits: version bump to 4.6.0
authorHorea Christian <horea.christ@yandex.com>
Wed, 12 Apr 2017 17:19:41 +0000 (19:19 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 16 Apr 2017 06:56:24 +0000 (08:56 +0200)
Closes: https://github.com/gentoo/gentoo/pull/4412

dev-python/traits/Manifest
dev-python/traits/metadata.xml
dev-python/traits/traits-4.6.0.ebuild [new file with mode: 0644]

index 7fb3adc76758f403155ef37ac33fba0f415c6e9b..0cbc58b65a869e120e0673de99d44b8ab63be214 100644 (file)
@@ -1 +1,2 @@
 DIST traits-4.5.0.tar.gz 4853612 SHA256 5293a8786030b0b243e059f52004355b6939d7c0f1be2eb5a605b63cca484c84 SHA512 d506b4395395898eb824896d299bfcde609e100025cf9a55cd7d7c47615545efd3b007e46549e564fbfb2d5882b36ae676843f211f168b2557c504849c5ef582 WHIRLPOOL fc9a1c41d09579df7cbb63ba17696b343bda707f0f95a2a5dd289b36fa4ded8088ea46f03259f616d9f081ff20fbce208adbc7913e0466ee6de56bc7e08718ae
+DIST traits-4.6.0.tar.gz 434937 SHA256 5d82345e0a34b88e394964eea1be47419530027aef7f0b20ad315b6ec6c68370 SHA512 0fce336696e4cbb1d4ba63a07ad42867cb179a9efa6c348623036bd6d2eb791302539ae89994b11acd5a9f1be42a0febeb517db1716342b78aa71ca1277fde99 WHIRLPOOL 4edddc716e2af68d000f7b81e49d8a77b6e9c3b34875634efc5fa611a89e732fb2ed3088db790e7f9915c721200753b3a3c71b95570b1889427618edfebffaca
index b66607e5b628a7835162f64a9a15f8d75203405b..434824c9e0157fba9bc85893349d8bcbe4e89029 100644 (file)
@@ -1,25 +1,33 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer type="project">
-  <email>python@gentoo.org</email>
-  <name>Python</name>
-</maintainer>
-<longdescription lang="en">
-  The traits package from the Enthought Tool Suite provides a
-  metaclass with special attributes that are called traits. A trait
-  is a type definition that can be used for normal Python object
-  attributes, giving the attributes some additional characteristics:
-    * Initialization: A trait attribute can have a default value
-    * Validation: A trait attribute is manifestly typed.
-    * Delegation: The value of a trait attribute can be contained in another
-      object
-    * Notification: Setting the value of a trait attribute can fired
-      callbacks
-    * Visualization: With the TraitsUI package, GUIs can be generated
-      automatically from traited objects.
-</longdescription>
-<upstream>
-  <remote-id type="pypi">traits</remote-id>
-</upstream>
+       <maintainer type="person">
+               <email>horea.christ@gmail.com</email>
+               <name>Horea Christian</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>python@gentoo.org</email>
+               <name>Python</name>
+       </maintainer>
+       <longdescription lang="en">
+               The traits package from the Enthought Tool Suite provides a
+               metaclass with special attributes that are called traits. A trait
+               is a type definition that can be used for normal Python object
+               attributes, giving the attributes some additional characteristics:
+                       * Initialization: A trait attribute can have a default value
+                       * Validation: A trait attribute is manifestly typed.
+                       * Delegation: The value of a trait attribute can be contained in 
+                       another object
+                       * Notification: Setting the value of a trait attribute can fired
+                       callbacks
+                       * Visualization: With the TraitsUI package, GUIs can be 
+                       generated automatically from traited objects.
+       </longdescription>
+       <upstream>
+               <remote-id type="pypi">traits</remote-id>
+       </upstream>
 </pkgmetadata>
diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild
new file mode 100644 (file)
index 0000000..480101a
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1 virtualx
+
+DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python"
+HOMEPAGE="http://code.enthought.com/projects/traits/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
+
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( ${RDEPEND} )"
+
+python_prepare() {
+       if python_is_python3; then
+               einfo "Converting tests to Python 3 syntax"
+               2to3 -w -n --no-diffs traits/testing || die
+       fi
+}
+
+python_prepare_all() {
+       sed -i -e "s/'-O3'//g" setup.py || die
+       distutils-r1_python_prepare_all
+}
+
+python_compile() {
+       python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
+       distutils-r1_python_compile
+}
+
+python_test() {
+       cd "${BUILD_DIR}"/lib || die
+       nosetests || die
+}