From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 72F0A158089 for ; Tue, 7 Nov 2023 19:22:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 029232BC026; Tue, 7 Nov 2023 19:22:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DA9482BC026 for ; Tue, 7 Nov 2023 19:22:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2FF85335D31 for ; Tue, 7 Nov 2023 19:22:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 688E31336 for ; Tue, 7 Nov 2023 19:22:52 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1699384967.f214406f165628a2872f41d7ade9f227aea12971.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pdfrw/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pdfrw/Manifest dev-python/pdfrw/pdfrw-0.4_p1-r1.ebuild X-VCS-Directories: dev-python/pdfrw/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f214406f165628a2872f41d7ade9f227aea12971 X-VCS-Branch: master Date: Tue, 7 Nov 2023 19:22:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0e3a22c4-5a1a-4f55-942d-d9b09a35b97a X-Archives-Hash: b485b789968a2938a0958d8c1270afaa commit: f214406f165628a2872f41d7ade9f227aea12971 Author: Michał Górny gentoo org> AuthorDate: Tue Nov 7 19:18:30 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Nov 7 19:22:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f214406f dev-python/pdfrw: Modernize, PEP517, py3.12 Closes: https://bugs.gentoo.org/909927 Signed-off-by: Michał Górny gentoo.org> dev-python/pdfrw/Manifest | 1 + dev-python/pdfrw/pdfrw-0.4_p1-r1.ebuild | 67 +++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/dev-python/pdfrw/Manifest b/dev-python/pdfrw/Manifest index 17ba1dd8c366..9825bf87acf8 100644 --- a/dev-python/pdfrw/Manifest +++ b/dev-python/pdfrw/Manifest @@ -1,2 +1,3 @@ +DIST pdfrw-0.4-1.gh.tar.gz 143615 BLAKE2B 281dc94c762dcc776e2c9c84609b59ca32387510bcfbec39271a6073533f9ad5d416cf4250b3dcd8564973d197ce090719c5561f58b972c89d463b90723ac8e6 SHA512 f2ef6a966cb1b947425679e6c16e658b5d1dbc13d62fb2e1edc278508b03f6c6847b3c83dab8bcd7df3438e587df066bc16b653461ae402bb8688ddb05f4e886 DIST pdfrw-0.4-1.tar.gz 143615 BLAKE2B 281dc94c762dcc776e2c9c84609b59ca32387510bcfbec39271a6073533f9ad5d416cf4250b3dcd8564973d197ce090719c5561f58b972c89d463b90723ac8e6 SHA512 f2ef6a966cb1b947425679e6c16e658b5d1dbc13d62fb2e1edc278508b03f6c6847b3c83dab8bcd7df3438e587df066bc16b653461ae402bb8688ddb05f4e886 DIST pdfrw-static_pdfs-d646009a0e3e71daf13a52ab1029e2230920ebf4.tar.gz 25243391 BLAKE2B 5c491d56c9731352907787bbe10b8b3ac362f0c7892ddcd15a1299d3b2b4bb604662f6231aa22478290992a345e769af2e2c2459a25a16c370ea05fa68101f80 SHA512 9bf1d5ddc8f55b40b50041e745579406bb0036fb7795ac40064aad7cdf592869051ba84a5ab080042e237690bb2f1811b86b2a4424535aa4c367f6e29a0c34eb diff --git a/dev-python/pdfrw/pdfrw-0.4_p1-r1.ebuild b/dev-python/pdfrw/pdfrw-0.4_p1-r1.ebuild new file mode 100644 index 000000000000..957493f44d34 --- /dev/null +++ b/dev-python/pdfrw/pdfrw-0.4_p1-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +PDFS_COMMIT=d646009a0e3e71daf13a52ab1029e2230920ebf4 +DESCRIPTION="PDF file reader/writer library" +HOMEPAGE=" + https://github.com/sarnold/pdfrw/ + https://pypi.org/project/pdfrw/ +" + +if [[ ${PV} = 9999* ]]; then + EGIT_REPO_URI="https://github.com/sarnold/pdfrw.git" + EGIT_BRANCH="main" + inherit git-r3 +else + MY_PV="${PV/_p/-}" + MY_P="${PN}-${MY_PV}" + SRC_URI=" + https://github.com/sarnold/pdfrw/archive/${MY_PV}.tar.gz + -> ${MY_P}.gh.tar.gz + test? ( + https://github.com/pmaupin/static_pdfs/archive/${PDFS_COMMIT}.tar.gz + -> pdfrw-static_pdfs-${PDFS_COMMIT}.tar.gz + ) + " + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + S=${WORKDIR}/${MY_P} +fi + +LICENSE="BSD MIT" +SLOT="0" +IUSE="crypt" + +RDEPEND=" + crypt? ( + dev-python/pycryptodome[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + test? ( + dev-python/reportlab[${PYTHON_USEDEP}] + ) +" + +# unittest would be sufficient but its output is unreadable +distutils_enable_tests pytest + +src_unpack() { + default + if use test; then + mv "static_pdfs-${PDFS_COMMIT}"/* "${MY_P}"/tests/static_pdfs || die + fi +} + +src_prepare() { + eapply "${FILESDIR}/pdfrw-fix-import-collections-warning.patch" + eapply "${FILESDIR}/pdfrw-static-fix-import-collections-warning.patch" + + distutils-r1_src_prepare +}