From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 19E071382C5 for ; Sun, 3 Jan 2021 03:38:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0553AE082D; Sun, 3 Jan 2021 03:38:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 95605E082B for ; Sun, 3 Jan 2021 03:38:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4EF18340F6D for ; Sun, 3 Jan 2021 03:38:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C7F2F48A for ; Sun, 3 Jan 2021 03:38:22 +0000 (UTC) From: "Horea Christian" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horea Christian" Message-ID: <1609645082.a46c4413e84ced35887a9c412473726b321df4e7.chymera@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/traits/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/traits/traits-6.0.0.ebuild X-VCS-Directories: dev-python/traits/ X-VCS-Committer: chymera X-VCS-Committer-Name: Horea Christian X-VCS-Revision: a46c4413e84ced35887a9c412473726b321df4e7 X-VCS-Branch: master Date: Sun, 3 Jan 2021 03:38:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c69f6e24-760f-4e3a-ac3d-c6f325615466 X-Archives-Hash: 36af632ec4cdb6593c0b6cc5ab6cd48b commit: a46c4413e84ced35887a9c412473726b321df4e7 Author: Horea Christian chymera eu> AuthorDate: Sun Jan 3 03:37:51 2021 +0000 Commit: Horea Christian gmail com> CommitDate: Sun Jan 3 03:38:02 2021 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a46c4413 dev-python/traits: keeping second version 6.0.0 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Horea Christian chymera.eu> dev-python/traits/traits-6.0.0.ebuild | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/dev-python/traits/traits-6.0.0.ebuild b/dev-python/traits/traits-6.0.0.ebuild new file mode 100644 index 000000000..ba9a4980b --- /dev/null +++ b/dev-python/traits/traits-6.0.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" +HOMEPAGE="http://docs.enthought.com/traits/ + https://github.com/enthought/traits + https://pypi.org/project/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? ( + dev-python/nose[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +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 + ${EPYTHON} -m unittest discover || die +}