Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/apsw/
Date: Thu, 23 Jun 2022 05:41:52
Message-Id: 1655962898.da975336a864f624adb8931df83fdf0a4e64bd1c.sam@gentoo
1 commit: da975336a864f624adb8931df83fdf0a4e64bd1c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 23 05:41:38 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 23 05:41:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da975336
7
8 dev-python/apsw: restore extension to fix Calibre
9
10 Closes: https://bugs.gentoo.org/851741
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-python/apsw/apsw-3.38.5_p1-r1.ebuild | 54 ++++++++++++++++++++++++++++++++
14 1 file changed, 54 insertions(+)
15
16 diff --git a/dev-python/apsw/apsw-3.38.5_p1-r1.ebuild b/dev-python/apsw/apsw-3.38.5_p1-r1.ebuild
17 new file mode 100644
18 index 000000000000..f58c16a0974a
19 --- /dev/null
20 +++ b/dev-python/apsw/apsw-3.38.5_p1-r1.ebuild
21 @@ -0,0 +1,54 @@
22 +# Copyright 1999-2022 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +DISTUTILS_USE_PEP517=setuptools
28 +PYTHON_COMPAT=( python3_{8..11} )
29 +
30 +inherit distutils-r1
31 +
32 +MY_PV=${PV/_p/-r}
33 +MY_P=${PN}-${MY_PV}
34 +
35 +DESCRIPTION="APSW - Another Python SQLite Wrapper"
36 +HOMEPAGE="
37 + https://github.com/rogerbinns/apsw/
38 + https://pypi.org/project/apsw/
39 +"
40 +SRC_URI="
41 + https://github.com/rogerbinns/apsw/archive/${MY_PV}.tar.gz
42 + -> ${MY_P}.gh.tar.gz
43 +"
44 +S=${WORKDIR}/${MY_P}
45 +
46 +LICENSE="ZLIB"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
49 +IUSE="doc"
50 +
51 +DEPEND="
52 + >=dev-db/sqlite-${PV%_p*}:3
53 +"
54 +RDEPEND="
55 + ${DEPEND}
56 +"
57 +
58 +PATCHES=(
59 + "${FILESDIR}/${PN}-3.6.20.1-fix_tests.patch"
60 +)
61 +
62 +python_compile() {
63 + # Needed for e.g. bug #851741
64 + distutils-r1_python_compile --enable=load_extension
65 +}
66 +
67 +python_test() {
68 + esetup.py build_test_extension
69 + "${EPYTHON}" tests.py -v || die "Tests failed under ${EPYTHON}"
70 +}
71 +
72 +python_install_all() {
73 + use doc && local HTML_DOCS=( doc/. )
74 + distutils-r1_python_install_all
75 +}