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 AACBC138336 for ; Tue, 30 Oct 2018 09:33:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32CAFE0899; Tue, 30 Oct 2018 09:33:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 086E3E0899 for ; Tue, 30 Oct 2018 09:33:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 3EC7B335CC8 for ; Tue, 30 Oct 2018 09:33:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D025452 for ; Tue, 30 Oct 2018 09:33:09 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1540891938.b0236ec7c52e3b15f1c97cdeab7844325ded1f1b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/regex/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/regex/regex-2017.04.05-r1.ebuild X-VCS-Directories: dev-python/regex/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b0236ec7c52e3b15f1c97cdeab7844325ded1f1b X-VCS-Branch: master Date: Tue, 30 Oct 2018 09:33:09 +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-Archives-Salt: 1b282f69-4258-4bd5-954c-45228888dddc X-Archives-Hash: c3abc1652b9d29018492dae58a98c43b commit: b0236ec7c52e3b15f1c97cdeab7844325ded1f1b Author: Nils Freydank posteo de> AuthorDate: Sat Oct 27 17:54:10 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Oct 30 09:32:18 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0236ec7 dev-python/regex: Add pypy3 support Signed-off-by: Nils Freydank posteo.de> Package-Manager: Portage-2.3.51, Repoman-2.3.11 Pull-Request: https://github.com/gentoo/gentoo/pull/10166 Signed-off-by: Michał Górny gentoo.org> dev-python/regex/regex-2017.04.05-r1.ebuild | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/dev-python/regex/regex-2017.04.05-r1.ebuild b/dev-python/regex/regex-2017.04.05-r1.ebuild new file mode 100644 index 00000000000..f67aa62e686 --- /dev/null +++ b/dev-python/regex/regex-2017.04.05-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 ) + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="Alternative regular expression module to replace re" +HOMEPAGE="https://bitbucket.org/mrabarnett/mrab-regex" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd" +IUSE="doc" + +DOCS=( README docs/UnicodeProperties.txt ) + +python_compile() { + if ! python_is_python3; then + local CFLAGS=${CFLAGS} + append-cflags -fno-strict-aliasing + fi + distutils-r1_python_compile +} + +python_test() { + local msg="tests failed under ${EPYTHON}" + # https://bitbucket.org/mrabarnett/mrab-regex/issue/145/1-fail-in-testsuite-under-pypy + einfo "There is one trivial fail of test test_empty_array under pypy" + + if python_is_python3; then + "${PYTHON}" Python3/test_regex.py || die "${msg}" + else + "${PYTHON}" Python2/test_regex.py || die "${msg}" + fi +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/Features.html ) + + distutils-r1_python_install_all +}