1 |
commit: 3876f8017ea895e349f5beb4dde8364b9d79e979 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 6 13:48:18 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 6 14:38:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3876f801 |
7 |
|
8 |
dev-python/qrcode: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/qrcode/Manifest | 1 - |
13 |
dev-python/qrcode/files/qrcode-5.1-unicode.patch | 34 -------------------- |
14 |
dev-python/qrcode/qrcode-5.1-r1.ebuild | 41 ------------------------ |
15 |
3 files changed, 76 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/qrcode/Manifest b/dev-python/qrcode/Manifest |
18 |
index 33b3e69372f..c3b31a21768 100644 |
19 |
--- a/dev-python/qrcode/Manifest |
20 |
+++ b/dev-python/qrcode/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST qrcode-5.1.tar.gz 22259 BLAKE2B 1aad710fbfdaa1c1be505038ceedbf02de8bcb2a37ead59265ff03af63b96d6cd740672cb2bd3a8f3b67eb981ed791cf2d53050c02d1499e6efcf1fcce2903c1 SHA512 67a7bb51fe2386f3b1ac0b799d3850d3ca4f61286fdc809654df3f5a1071b503707a9a3e82e595b7611dd9d7b7e74b36e19b86942fb5ad94c256cd7ca9aa02f3 |
23 |
DIST qrcode-6.1.tar.gz 29363 BLAKE2B 5f31035b6c548c710d0d8198428612fc52417be7af5b5f412a42d264cb6a3ba96de65651049390107cc77e886df2b139942266aba579896f05692177b394ea11 SHA512 4831553932442f5535cba15d5958a656b399112f0f379c28ad9b610c33d88ec6d0613dc7047a2315606e49f027bfd13a15a332ce86b80040d56e1114a0f62251 |
24 |
|
25 |
diff --git a/dev-python/qrcode/files/qrcode-5.1-unicode.patch b/dev-python/qrcode/files/qrcode-5.1-unicode.patch |
26 |
deleted file mode 100644 |
27 |
index 2d628c68e5a..00000000000 |
28 |
--- a/dev-python/qrcode/files/qrcode-5.1-unicode.patch |
29 |
+++ /dev/null |
30 |
@@ -1,34 +0,0 @@ |
31 |
-From 0a9f17d3afb0ff01f68c2276ec0844d329a6add9 Mon Sep 17 00:00:00 2001 |
32 |
-From: Chris Beaven <smileychris@×××××.com> |
33 |
-Date: Mon, 3 Nov 2014 10:56:14 -0600 |
34 |
-Subject: [PATCH] Fix script piping to stdout in Python 3 |
35 |
- |
36 |
-Fixes #66 |
37 |
---- |
38 |
- qrcode/console_scripts.py | 13 ++++++++++++- |
39 |
- 1 file changed, 12 insertions(+), 1 deletion(-) |
40 |
- |
41 |
-diff --git a/qrcode/console_scripts.py b/qrcode/console_scripts.py |
42 |
-index d215993..c51463b 100755 |
43 |
---- a/qrcode/console_scripts.py |
44 |
-+++ b/qrcode/console_scripts.py |
45 |
-@@ -57,7 +57,18 @@ def main(args=sys.argv[1:]): |
46 |
- return |
47 |
- |
48 |
- img = qr.make_image(image_factory=image_factory) |
49 |
-- img.save(sys.stdout) |
50 |
-+ |
51 |
-+ sys.stdout.flush() |
52 |
-+ if sys.version_info[0] >= 3: |
53 |
-+ buff = sys.stdout.buffer |
54 |
-+ else: |
55 |
-+ if sys.platform == 'win32': |
56 |
-+ import os |
57 |
-+ import msvcrt |
58 |
-+ msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) |
59 |
-+ buff = sys.stdout |
60 |
-+ |
61 |
-+ img.save(buff) |
62 |
- |
63 |
- |
64 |
- if __name__ == "__main__": |
65 |
|
66 |
diff --git a/dev-python/qrcode/qrcode-5.1-r1.ebuild b/dev-python/qrcode/qrcode-5.1-r1.ebuild |
67 |
deleted file mode 100644 |
68 |
index 2a2e7529533..00000000000 |
69 |
--- a/dev-python/qrcode/qrcode-5.1-r1.ebuild |
70 |
+++ /dev/null |
71 |
@@ -1,41 +0,0 @@ |
72 |
-# Copyright 1999-2020 Gentoo Authors |
73 |
-# Distributed under the terms of the GNU General Public License v2 |
74 |
- |
75 |
-EAPI=5 |
76 |
- |
77 |
-PYTHON_COMPAT=( python3_6 ) |
78 |
- |
79 |
-inherit distutils-r1 |
80 |
- |
81 |
-DESCRIPTION="QR Code generator on top of PIL" |
82 |
-HOMEPAGE="https://pypi.org/project/qrcode/" |
83 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
84 |
- |
85 |
-LICENSE="BSD" |
86 |
-SLOT="0" |
87 |
-KEYWORDS="amd64 ~arm ~arm64 x86" |
88 |
-IUSE="test" |
89 |
-RESTRICT="!test? ( test )" |
90 |
- |
91 |
-# optional deps: |
92 |
-# - pillow and lxml for svg backend, set as hard deps |
93 |
-RDEPEND=" |
94 |
- dev-python/six[${PYTHON_USEDEP}] |
95 |
- dev-python/lxml[${PYTHON_USEDEP}] |
96 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
97 |
-DEPEND=" |
98 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
99 |
- test? ( ${RDEPEND} )" |
100 |
- |
101 |
-PATCHES=( |
102 |
- "${FILESDIR}"/${P}-unicode.patch |
103 |
-) |
104 |
- |
105 |
-python_test() { |
106 |
- "${PYTHON}" -m unittest discover > /dev/tty | less || die "Testing failed with ${EPYTHON}" |
107 |
-} |
108 |
- |
109 |
-src_install() { |
110 |
- distutils-r1_src_install |
111 |
- doman doc/qr.1 |
112 |
-} |