Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyPDF2/
Date: Mon, 30 May 2022 07:22:20
Message-Id: 1653895236.a9c71e98b48ad96101e178b982b56a99e5858ffb.mgorny@gentoo
1 commit: a9c71e98b48ad96101e178b982b56a99e5858ffb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 05:43:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 07:20:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9c71e98
7
8 dev-python/PyPDF2: Bump to 1.28.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/PyPDF2/Manifest | 1 +
13 dev-python/PyPDF2/PyPDF2-1.28.4.ebuild | 51 ++++++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest
17 index 42847775933c..0740dbbba47b 100644
18 --- a/dev-python/PyPDF2/Manifest
19 +++ b/dev-python/PyPDF2/Manifest
20 @@ -2,5 +2,6 @@ DIST PyPDF2-1.27.12.gh.tar.gz 3430850 BLAKE2B a0cb344f616d628b7c39dc360234057ce6
21 DIST PyPDF2-1.28.1.gh.tar.gz 4260569 BLAKE2B 69b925a463c262ab207dd768160ea9083b14eed6a25a234d09e472ce812039aeb899674a0216b20ead3a4814cc3ec83ee320c99b84d109d8a320b925b7654ffa SHA512 22dec520e256420b618d5611f44f52752ad3c7ccee325991f4817e88ba69d01bf705708877a0df450297c3231725f72e03c4d8b33ced29fd7445c0ac2701dc2b
22 DIST PyPDF2-1.28.2.gh.tar.gz 4260541 BLAKE2B 16cf7358dbd201e54853022b341fa7501b691d258380ac02464ae410d045a454785e03507b48f05b2ed92dc7a437cdc7703ba2417ca0c6d3c43846d3daaa00fa SHA512 3f69e983fcd83485cb76a957ee5ae436468bb9d04db821271cbb1f37c1f796ea974dd8dd425e0b4f9867e19fe14861355f9f5f8349a52ef8f7f829832f0694ca
23 DIST PyPDF2-1.28.3.gh.tar.gz 4261567 BLAKE2B 8f76d23d1c30c42e78585b6ced44726c9c6a701f52b08a7130e3923e63a058f69525442d06e85db4de4345b6c4a14ce97d5e7fbec4431b01d5ca86ba759482c4 SHA512 0a7b54759b0ce6a5383364ea1014e8c3bf80c180ab533b905dc676df8d0307ad6ae46007033b8c23f2c7986d45086d98485631f867d562e70cc09c52862142d9
24 +DIST PyPDF2-1.28.4.gh.tar.gz 4397029 BLAKE2B 2db9aacc55d06e961708ee455562e28f59bbc3fd973547feb1e596df52872fa2fb7a424e2159e7c0c2cacd3c6bdff987f72fec7db41422a0aae4aa33a60f1cb6 SHA512 a93406f9a0e177f0ad1d92430f212abbc7b7486b86f37b281e68595de125e0fcdfbf73fc7d66490698d8355875659633c3785e8c2725e52ef9d615441b5aa517
25 DIST PyPDF2-sample-files-41b5cd4f774f8fbd8ac42d93b9962f0376352a15.gh.tar.gz 5406287 BLAKE2B 8ddad01235bdb55cee596d9114e5b6c3b153919bcff5203d229311243516f3595cb36dcca87cae27514a8231d72daa94782115795bff8c1c3d046236811c21e0 SHA512 6c38d5ee0e1c5c0ffdd78f7c2fe56dbf357a1e82d2af642a10264a6102ae8fb95cba6d2f76b26df6a33a5d84cfd5111885d39c1747cf95a5ce545f26bdb37263
26 DIST PyPDF2-sample-files-41b5cd4f774f8fbd8ac42d93b9962f0376352a15.tar.gz 5406287 BLAKE2B 8ddad01235bdb55cee596d9114e5b6c3b153919bcff5203d229311243516f3595cb36dcca87cae27514a8231d72daa94782115795bff8c1c3d046236811c21e0 SHA512 6c38d5ee0e1c5c0ffdd78f7c2fe56dbf357a1e82d2af642a10264a6102ae8fb95cba6d2f76b26df6a33a5d84cfd5111885d39c1747cf95a5ce545f26bdb37263
27
28 diff --git a/dev-python/PyPDF2/PyPDF2-1.28.4.ebuild b/dev-python/PyPDF2/PyPDF2-1.28.4.ebuild
29 new file mode 100644
30 index 000000000000..8835d6159d71
31 --- /dev/null
32 +++ b/dev-python/PyPDF2/PyPDF2-1.28.4.ebuild
33 @@ -0,0 +1,51 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +DISTUTILS_USE_PEP517=setuptools
40 +PYTHON_COMPAT=( python3_{8..11} )
41 +
42 +inherit distutils-r1
43 +
44 +SAMPLE_COMMIT=41b5cd4f774f8fbd8ac42d93b9962f0376352a15
45 +DESCRIPTION="Python library to work with PDF files"
46 +HOMEPAGE="
47 + https://pypi.org/project/PyPDF2/
48 + https://github.com/py-pdf/PyPDF2/
49 +"
50 +SRC_URI="
51 + https://github.com/py-pdf/PyPDF2/archive/${PV}.tar.gz
52 + -> ${P}.gh.tar.gz
53 + test? (
54 + https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz
55 + -> ${PN}-sample-files-${SAMPLE_COMMIT}.gh.tar.gz
56 + )
57 +"
58 +
59 +LICENSE="BSD-2"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
62 +IUSE="examples"
63 +
64 +BDEPEND="
65 + dev-python/pillow[${PYTHON_USEDEP}]
66 +"
67 +
68 +distutils_enable_tests pytest
69 +
70 +src_unpack() {
71 + default
72 + if use test; then
73 + mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die
74 + fi
75 +}
76 +
77 +src_install() {
78 + if use examples; then
79 + docinto examples
80 + dodoc -r Sample_Code/.
81 + docompress -x /usr/share/doc/${PF}/examples
82 + fi
83 + distutils-r1_src_install
84 +}