summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-06 14:48:18 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-06 15:38:21 +0100
commit3876f8017ea895e349f5beb4dde8364b9d79e979 (patch)
tree55818fa6e6883a7e770b85e70bfa3ef657f6da37 /dev-python/qrcode
parentdev-libs/nss-pem: initial import to remove pem use from dev-libs/nss (diff)
downloadgentoo-3876f8017ea895e349f5beb4dde8364b9d79e979.tar.gz
gentoo-3876f8017ea895e349f5beb4dde8364b9d79e979.tar.bz2
gentoo-3876f8017ea895e349f5beb4dde8364b9d79e979.zip
dev-python/qrcode: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/qrcode')
-rw-r--r--dev-python/qrcode/Manifest1
-rw-r--r--dev-python/qrcode/files/qrcode-5.1-unicode.patch34
-rw-r--r--dev-python/qrcode/qrcode-5.1-r1.ebuild41
3 files changed, 0 insertions, 76 deletions
diff --git a/dev-python/qrcode/Manifest b/dev-python/qrcode/Manifest
index 33b3e69372f4..c3b31a21768b 100644
--- a/dev-python/qrcode/Manifest
+++ b/dev-python/qrcode/Manifest
@@ -1,2 +1 @@
-DIST qrcode-5.1.tar.gz 22259 BLAKE2B 1aad710fbfdaa1c1be505038ceedbf02de8bcb2a37ead59265ff03af63b96d6cd740672cb2bd3a8f3b67eb981ed791cf2d53050c02d1499e6efcf1fcce2903c1 SHA512 67a7bb51fe2386f3b1ac0b799d3850d3ca4f61286fdc809654df3f5a1071b503707a9a3e82e595b7611dd9d7b7e74b36e19b86942fb5ad94c256cd7ca9aa02f3
DIST qrcode-6.1.tar.gz 29363 BLAKE2B 5f31035b6c548c710d0d8198428612fc52417be7af5b5f412a42d264cb6a3ba96de65651049390107cc77e886df2b139942266aba579896f05692177b394ea11 SHA512 4831553932442f5535cba15d5958a656b399112f0f379c28ad9b610c33d88ec6d0613dc7047a2315606e49f027bfd13a15a332ce86b80040d56e1114a0f62251
diff --git a/dev-python/qrcode/files/qrcode-5.1-unicode.patch b/dev-python/qrcode/files/qrcode-5.1-unicode.patch
deleted file mode 100644
index 2d628c68e5a6..000000000000
--- a/dev-python/qrcode/files/qrcode-5.1-unicode.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 0a9f17d3afb0ff01f68c2276ec0844d329a6add9 Mon Sep 17 00:00:00 2001
-From: Chris Beaven <smileychris@gmail.com>
-Date: Mon, 3 Nov 2014 10:56:14 -0600
-Subject: [PATCH] Fix script piping to stdout in Python 3
-
-Fixes #66
----
- qrcode/console_scripts.py | 13 ++++++++++++-
- 1 file changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/qrcode/console_scripts.py b/qrcode/console_scripts.py
-index d215993..c51463b 100755
---- a/qrcode/console_scripts.py
-+++ b/qrcode/console_scripts.py
-@@ -57,7 +57,18 @@ def main(args=sys.argv[1:]):
- return
-
- img = qr.make_image(image_factory=image_factory)
-- img.save(sys.stdout)
-+
-+ sys.stdout.flush()
-+ if sys.version_info[0] >= 3:
-+ buff = sys.stdout.buffer
-+ else:
-+ if sys.platform == 'win32':
-+ import os
-+ import msvcrt
-+ msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
-+ buff = sys.stdout
-+
-+ img.save(buff)
-
-
- if __name__ == "__main__":
diff --git a/dev-python/qrcode/qrcode-5.1-r1.ebuild b/dev-python/qrcode/qrcode-5.1-r1.ebuild
deleted file mode 100644
index 2a2e7529533f..000000000000
--- a/dev-python/qrcode/qrcode-5.1-r1.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python3_6 )
-
-inherit distutils-r1
-
-DESCRIPTION="QR Code generator on top of PIL"
-HOMEPAGE="https://pypi.org/project/qrcode/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-# optional deps:
-# - pillow and lxml for svg backend, set as hard deps
-RDEPEND="
- dev-python/six[${PYTHON_USEDEP}]
- dev-python/lxml[${PYTHON_USEDEP}]
- dev-python/pillow[${PYTHON_USEDEP}]"
-DEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( ${RDEPEND} )"
-
-PATCHES=(
- "${FILESDIR}"/${P}-unicode.patch
-)
-
-python_test() {
- "${PYTHON}" -m unittest discover > /dev/tty | less || die "Testing failed with ${EPYTHON}"
-}
-
-src_install() {
- distutils-r1_src_install
- doman doc/qr.1
-}