1 |
commit: 432dd627ca2ea22e15fed71b177ef6c57173e305 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 1 22:04:41 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 2 06:18:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=432dd627 |
7 |
|
8 |
dev-python/pyblake2: Clean old up |
9 |
|
10 |
dev-python/pyblake2/Manifest | 1 - |
11 |
dev-python/pyblake2/pyblake2-1.0.1.ebuild | 52 ------------------------------- |
12 |
2 files changed, 53 deletions(-) |
13 |
|
14 |
diff --git a/dev-python/pyblake2/Manifest b/dev-python/pyblake2/Manifest |
15 |
index fc28c70727e..a4ccf78d2fb 100644 |
16 |
--- a/dev-python/pyblake2/Manifest |
17 |
+++ b/dev-python/pyblake2/Manifest |
18 |
@@ -1,3 +1,2 @@ |
19 |
DIST pyblake2-0.9.3.tar.gz 130641 BLAKE2B 5165f104b5d6bc10bf8b72177b4ad08db55e1a92ad1f04efae2c3d73b6f3f52a0962cfb23832a5f5c1ed9d75c7c3a04be9c37643e381abfc7a2f843fefb43151 SHA512 6336a7f7e79bd3e6ff7f8ff4d279ae170e86f1464b9fa9e7ea7f0dbbac6fcc044caf225111e065f9cd9cdeea0f81fae8d373e1f65be3e418929f53fad063205e |
20 |
-DIST pyblake2-1.0.1.tar.gz 128037 BLAKE2B cdee6ea650b152ba8d41698b6c08e95a33b4ccf209df3829038f39845a8734f31810e5362b41519ce4196edc2daeea8656e7df414fb06dc52afdfea01f1f689b SHA512 66311aa1cd60942d395c1cd8b996f66f1cb2380f36be471244152a885cee115a8e341a34309520d8b1254eb30d5e1b39b83f89d7eace9353c8ee9e919f4a3881 |
21 |
DIST pyblake2-1.1.0.tar.gz 125855 BLAKE2B 46af4c24882040bbdd221f90e06652918798e4555c0a7307a596ca4c9ed3147f00297269a44d174782c2b0402eac03ecf5387b1c5a16efb57d036730b58b2630 SHA512 e13c7e4f3a35155cbf531e337895349ec01f0ac36908a4e746cecec063601adfc8a73a7961a9c310d01d3231f44f08d2cc92e891e9cb87659bc7170b9fee6102 |
22 |
|
23 |
diff --git a/dev-python/pyblake2/pyblake2-1.0.1.ebuild b/dev-python/pyblake2/pyblake2-1.0.1.ebuild |
24 |
deleted file mode 100644 |
25 |
index 6fa0b27728e..00000000000 |
26 |
--- a/dev-python/pyblake2/pyblake2-1.0.1.ebuild |
27 |
+++ /dev/null |
28 |
@@ -1,52 +0,0 @@ |
29 |
-# Copyright 1999-2017 Gentoo Foundation |
30 |
-# Distributed under the terms of the GNU General Public License v2 |
31 |
- |
32 |
-EAPI=6 |
33 |
- |
34 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) |
35 |
-inherit distutils-r1 flag-o-matic toolchain-funcs |
36 |
- |
37 |
-DESCRIPTION="BLAKE2 hash function extension module" |
38 |
-HOMEPAGE="https://github.com/dchest/pyblake2 https://pypi.python.org/pypi/pyblake2" |
39 |
-SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" |
40 |
- |
41 |
-# pyblake2 itself allows more licenses but blake2 allows the following three |
42 |
-LICENSE="|| ( CC0-1.0 openssl Apache-2.0 )" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
45 |
- |
46 |
-blake2_impl() { |
47 |
- local code=' |
48 |
-#if defined(__XOP__) |
49 |
- HAVE_XOP |
50 |
-#elif defined(__AVX__) |
51 |
- HAVE_AVX |
52 |
-#elif defined(__SSSE3__) |
53 |
- HAVE_SSSE3 |
54 |
-#elif defined(__SSE2__) |
55 |
- HAVE_SSE2 |
56 |
-#endif |
57 |
-' |
58 |
- local res=$($(tc-getCC) -E -P ${CFLAGS} - <<<"${code}") |
59 |
- |
60 |
- case ${res} in |
61 |
- *HAVE_XOP*) echo XOP;; |
62 |
- # this does not actually do anything but implicitly enabled SSE4.1... |
63 |
- *HAVE_AVX*) echo AVX;; |
64 |
- *HAVE_SSSE3*) echo SSSE3;; |
65 |
- # note: SSE2 is 2.5x slower than pure REGS, so we ignore it |
66 |
- #*HAVE_SSE2*) echo SSE2;; |
67 |
- *) echo REGS;; |
68 |
- esac |
69 |
-} |
70 |
- |
71 |
-python_prepare_all() { |
72 |
- # uncomment the implementation of choice |
73 |
- sed -i -e "/BLAKE2_COMPRESS_$(blake2_impl)/s:^#::" setup.py || die |
74 |
- |
75 |
- distutils-r1_python_prepare_all |
76 |
-} |
77 |
- |
78 |
-python_test() { |
79 |
- "${EPYTHON}" test/test.py || die "Tests fail with ${EPYTHON}" |
80 |
-} |