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/apsw/
Date: Sun, 30 May 2021 17:32:33
Message-Id: 1622393966.4bd082dcbaa5201a00383fd0e679f6b4c03f203d.mgorny@gentoo
1 commit: 4bd082dcbaa5201a00383fd0e679f6b4c03f203d
2 Author: Zamarin Arthur <arthurzam <AT> gmail <DOT> com>
3 AuthorDate: Sat May 22 17:53:15 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 30 16:59:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bd082dc
7
8 dev-python/apsw: add 3.35.4_p1, bump to python 3.10
9
10 fix direct CC call
11 passes tests
12
13 Closes: https://bugs.gentoo.org/704606
14 Closes: https://bugs.gentoo.org/723726
15 Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com>
16 Closes: https://github.com/gentoo/gentoo/pull/20936
17 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
18
19 dev-python/apsw/Manifest | 1 +
20 dev-python/apsw/apsw-3.35.4_p1.ebuild | 46 +++++++++++++++++++++++++++++++++++
21 2 files changed, 47 insertions(+)
22
23 diff --git a/dev-python/apsw/Manifest b/dev-python/apsw/Manifest
24 index 69937f18959..a1fb0606925 100644
25 --- a/dev-python/apsw/Manifest
26 +++ b/dev-python/apsw/Manifest
27 @@ -1 +1,2 @@
28 DIST apsw-3.32.2_p1.zip 679785 BLAKE2B fb58a60f95a677a805b0347a0d8876e49c657092deeadb60a057f4afc62031313faf5a86b600d1d306e42f305c9af599d2439a7051e400cbba2d9185c213d5d1 SHA512 718de699c43eec139747f63c3c26da206aa20f104ec1c478009d29cedff7a432138726131b2458ecd3a67675254af77e94e50e8e96a208600fe2a94aa9d924c7
29 +DIST apsw-3.35.4_p1.zip 685034 BLAKE2B 5845e5fcb286c587367955c33fbee9aa4b0687af666f1d50f35f5dec8e756a0fbcf0fdbd120dd3c7a78df1f05d8eae5a973a8a71fc8a6f4271fff7d83b399013 SHA512 f420560e5821bd6305705ee6c14174f1770f4811edcfe152cb1f2ceae4295f13c82552386a7ef42c5ce88165e88bd2080b4dc2809484598522914d99f2469135
30
31 diff --git a/dev-python/apsw/apsw-3.35.4_p1.ebuild b/dev-python/apsw/apsw-3.35.4_p1.ebuild
32 new file mode 100644
33 index 00000000000..9c4c56abd92
34 --- /dev/null
35 +++ b/dev-python/apsw/apsw-3.35.4_p1.ebuild
36 @@ -0,0 +1,46 @@
37 +# Copyright 1999-2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +PYTHON_COMPAT=( python3_{7..10} )
43 +
44 +inherit distutils-r1
45 +
46 +MY_PV=${PV/_p/-r}
47 +MY_P=${PN}-${MY_PV}
48 +
49 +DESCRIPTION="APSW - Another Python SQLite Wrapper"
50 +HOMEPAGE="https://github.com/rogerbinns/apsw/"
51 +SRC_URI="https://github.com/rogerbinns/apsw/releases/download/${MY_PV}/${MY_P}.zip -> ${P}.zip"
52 +S="${WORKDIR}/${MY_P}"
53 +
54 +LICENSE="ZLIB"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
57 +IUSE="doc"
58 +
59 +RDEPEND=">=dev-db/sqlite-${PV%_p*}"
60 +DEPEND="${RDEPEND}"
61 +BDEPEND="app-arch/unzip"
62 +
63 +PATCHES=( "${FILESDIR}/${PN}-3.6.20.1-fix_tests.patch" )
64 +
65 +python_prepare_all() {
66 + sed -e 's/"gcc/os.environ.get("CC", "gcc") + "/' -i setup.py || die
67 + distutils-r1_python_prepare_all
68 +}
69 +
70 +python_compile() {
71 + distutils-r1_python_compile --enable=load_extension
72 +}
73 +
74 +python_test() {
75 + esetup.py build_test_extension
76 + "${EPYTHON}" tests.py -v || die "Tests failed under ${EPYTHON}"
77 +}
78 +
79 +python_install_all() {
80 + use doc && local HTML_DOCS=( doc/. )
81 + distutils-r1_python_install_all
82 +}