diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-26 00:09:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-26 00:09:36 +0100 |
commit | b1c81de4fadbd00897700a7321f03b390d952b2e (patch) | |
tree | e6cc812351d4f105c110cfc363ebb497e996f47a /dev-python/pycups | |
parent | 7c59acba5699c9c58090a7a738669669a7307023 (diff) |
gentoo resync : 26.08.2021
Diffstat (limited to 'dev-python/pycups')
-rw-r--r-- | dev-python/pycups/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pycups/files/pycups-2.0.1-py3.10.patch | 24 | ||||
-rw-r--r-- | dev-python/pycups/metadata.xml | 24 | ||||
-rw-r--r-- | dev-python/pycups/pycups-2.0.1.ebuild | 34 |
4 files changed, 75 insertions, 12 deletions
diff --git a/dev-python/pycups/Manifest b/dev-python/pycups/Manifest index abca1b106582..ba8c672a4334 100644 --- a/dev-python/pycups/Manifest +++ b/dev-python/pycups/Manifest @@ -1,3 +1,6 @@ +AUX pycups-2.0.1-py3.10.patch 576 BLAKE2B de0c617d24d18290c23fa7938a62db451dff69075ef180a781c285a7b6a6b4c6fdeb4010a0994c56dcff5c21cc902a59cede52aadc523b9d642c49cde0272a89 SHA512 31f025e9ee09530836a6efac6d7cbb39d2311fe4264dc245dc8f80314a3d03416395f66759f505d63119975a443a286b703b6e21f68dd0eedf320595d8ce68c4 DIST pycups-1.9.73.tar.bz2 52732 BLAKE2B a6c9750970548ba85cdef4041f716491e9b0cf4273cb5381bca8e57deab457affaa62eccf74d36eb3f8b047e5142c952e56e7e624f85ed7959a769f568824f26 SHA512 ee893d64f1645b71805ac358c4a3cc594f6285f04272ff0558aa60cbc90fafdbac30b623ffcc3a6b739218d9fd7a6a6e1d8cb186a5582f2cc30a518ed4dde810 +DIST pycups-2.0.1.tar.gz 62968 BLAKE2B c9d955b89f2e9746827721c875dfc97538bb4575ee3f78c41a94f06b361cd3d22c14d453bfbea210160026d33c6e161b1d14c4dffeaddd644c260779f56e1db7 SHA512 fdebf1cac8cc4fffb8a76a938aa91965dae4a3dcdb6d8ee26e8e6054809d26dd3fb20b10c2351fb9265c03b16d6bde011815111c452ccb058518372f22d9d617 EBUILD pycups-1.9.73-r2.ebuild 652 BLAKE2B efab5b0d6cf764fc587f38c58ad9f151425c3c279a7096dc9599de82d961a377d42c1f5b6cd10f2c46f50a05584334adf2fe27a82b705815d33bf499f83865bc SHA512 5d075d080f51d210462b8d5e904a735cc9e83d86de80d83bbc0413dd342cd724c4af67b07774f171724046cc71dd00442d91e65ac870b0f7098e141a1c4ee3d2 -MISC metadata.xml 456 BLAKE2B ea7d7af9ed2baa3cb5270b3da9c5e1c6dc64d1391e0b280ddd1a6e3e8f3317808eb3906e1c9551615ac2218b89685b9ccbfb4d4656e80eeb54cf2d8dec2149c7 SHA512 c8318d150b07e8a369037201bcb9a99a7bc8c406a2a2889f4a1af62166313d4db740e8546f78f0de1e80cddf774f8818e49a4d3e99e906456ffc2f46a562e7ea +EBUILD pycups-2.0.1.ebuild 796 BLAKE2B 8bcc13fba78f4eb834b63e48b716d7b97ee6921b30ce6ab7bd5cd907fa69894d6da2b3ebf63534afb0da4370399518ff53f04a803ed24290049436bd740545c4 SHA512 be670284f5f6809bdb29ad064f8d7350e4cb0668e1be84e60336e228575cb60b2737be4a2b5e1ae360395eb84c6021d4d3b4434d421de60a9376d11279402fed +MISC metadata.xml 566 BLAKE2B d215b6553f5fbc4a4ca6427a454e3cd8564829a57b4455642dac82af52918fff9d92fcb15b4a29c6edce2162a43633842755c17a256b9df0d306d708cf8ba725 SHA512 9a4a153324575e4da6a744082e12313773e7615673a8d68a82740560334333bb76b496167a9e0923b5924aede8834ebf0a80f64232f917f03338a0a27f753870 diff --git a/dev-python/pycups/files/pycups-2.0.1-py3.10.patch b/dev-python/pycups/files/pycups-2.0.1-py3.10.patch new file mode 100644 index 000000000000..557b485fbafe --- /dev/null +++ b/dev-python/pycups/files/pycups-2.0.1-py3.10.patch @@ -0,0 +1,24 @@ +From 8cbf6d40a0132764ad51e7416aa7034966875091 Mon Sep 17 00:00:00 2001 +From: Zdenek Dohnal <zdohnal@redhat.com> +Date: Mon, 28 Jun 2021 13:17:45 +0200 +Subject: [PATCH] cupsipp.h: define PY_SSIZE_T_CLEAN + +Fixes traceback during IPPRequest.writeIO with Python 3.10 +--- + NEWS | 2 ++ + cupsipp.h | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/cupsipp.h b/cupsipp.h +index 2a15ce6..b890198 100644 +--- a/cupsipp.h ++++ b/cupsipp.h +@@ -21,6 +21,8 @@ + #ifndef HAVE_CUPSIPP_H + #define HAVE_CUPSIPP_H + ++#define PY_SSIZE_T_CLEAN ++ + #include <Python.h> + #include <cups/ipp.h> + diff --git a/dev-python/pycups/metadata.xml b/dev-python/pycups/metadata.xml index 5080ddafb1fd..b349df59ee54 100644 --- a/dev-python/pycups/metadata.xml +++ b/dev-python/pycups/metadata.xml @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>reavertm@gentoo.org</email> - <name>Maciej Mrozowski</name> - </maintainer> - <maintainer type="project"> - <email>printing@gentoo.org</email> - <name>Gentoo Printing Project</name> - </maintainer> - <upstream> - <remote-id type="pypi">pycups</remote-id> - </upstream> + <maintainer type="person"> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> + </maintainer> + <maintainer type="project"> + <email>printing@gentoo.org</email> + <name>Gentoo Printing Project</name> + </maintainer> + <upstream> + <remote-id type="pypi">pycups</remote-id> + <remote-id type="github">OpenPrinting/pycups</remote-id> + <bugs-to>https://github.com/OpenPrinting/pycups/issues</bugs-to> + </upstream> </pkgmetadata> diff --git a/dev-python/pycups/pycups-2.0.1.ebuild b/dev-python/pycups/pycups-2.0.1.ebuild new file mode 100644 index 000000000000..46c50c1509fc --- /dev/null +++ b/dev-python/pycups/pycups-2.0.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +DISTUTILS_USE_SETUPTOOLS=no +inherit distutils-r1 + +DESCRIPTION="Python bindings for the CUPS API" +HOMEPAGE="https://github.com/OpenPrinting/pycups" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="examples" + +RDEPEND="net-print/cups" +DEPEND="${RDEPEND}" + +PATCHES=( + # https://github.com/OpenPrinting/pycups/commit/8cbf6d40a0132764ad51e7416aa7034966875091 + "${FILESDIR}/${P}-py3.10.patch" +) + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} |