diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-11-03 08:36:22 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-11-03 08:36:22 +0000 |
commit | f65628136faa35d0c4d3b5e7332275c7b35fcd96 (patch) | |
tree | 021998302365c5652e37824b6c26d4d969a62055 /dev-python/regex | |
parent | 70b82ae359a5538711e103b0e8dfb92654296644 (diff) |
gentoo resync : 03.11.2018
Diffstat (limited to 'dev-python/regex')
-rw-r--r-- | dev-python/regex/Manifest | 1 | ||||
-rw-r--r-- | dev-python/regex/regex-2017.04.05-r1.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/regex/Manifest b/dev-python/regex/Manifest index 373551548247..312df356fa1a 100644 --- a/dev-python/regex/Manifest +++ b/dev-python/regex/Manifest @@ -1,3 +1,4 @@ DIST regex-2017.04.05.tar.gz 601638 BLAKE2B a7c094887b602f24e68c51c92098604c462d506b13f064beaebdec081fd28d39dac9934fface0de0444dc6145af5f4c0e8ab2cd3b65ecfc2c1ca522682b3bf95 SHA512 4c3e440e11f57e2323892e10fbed7f2c89b35771fdc970164ba69bb154dde535f6edb51a0997c924eb776c61e5efd1d04001abd343110518a89b5b7bf148ae49 +EBUILD regex-2017.04.05-r1.ebuild 1184 BLAKE2B 2378d8c31032546ded0a4091d970bd96cdea3851fc577dcf1a3e43ecf49305d94e719b2d901a67e2d6ccf0f6ee8e3c7749ae9b20e8efd4f2e345f479d04cfd2f SHA512 652c9fa3fd40a77575a68d5c33e900714143e289dbb469a98b1a879aa5afad77c94100087ef4aff4b98ef72324f3c65d2aaee35e6f7841c0103530fcbdbc90bb EBUILD regex-2017.04.05.ebuild 1215 BLAKE2B 56f7410004a7a3798dccf5b5c06630acbc4665e9cc164eaf65b474cc494c672752ea7bab3ed295d5324a0eca706111ba5fcee6c2fd7f70ff6ddc467fbe5f7fc3 SHA512 1611d6b3b476f2ecc39d08024bb06b305b8ede16fa7652650409efdbf5d7c7a17744b686f788e484f7cf406631aab62dbe6d2ccbe25b2979eb452aae406ffb14 MISC metadata.xml 384 BLAKE2B 4928f66b54b5e4de6a8b913207ec6e46c124e55510eac304a7fd46c6ca63cce60704757e9289bf35d2d58e9ddcd4aa98d751a079c79f09dda9206553096e0561 SHA512 3db0a8abe7036cd9d0fd8b1450598436dbb30581806380ad51c3d0f49d129325aba1bad9700d14adffc7cfd199c4ec3377e6eb0225244bfc82368bbb50548e07 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 000000000000..f67aa62e686e --- /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 +} |