diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/apsw | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/apsw')
| -rw-r--r-- | dev-python/apsw/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/apsw/apsw-3.25.2_p1.ebuild | 42 | ||||
| -rw-r--r-- | dev-python/apsw/files/apsw-3.6.20.1-fix_tests.patch | 11 | ||||
| -rw-r--r-- | dev-python/apsw/metadata.xml | 18 |
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/apsw/Manifest b/dev-python/apsw/Manifest new file mode 100644 index 000000000000..fb007b559fff --- /dev/null +++ b/dev-python/apsw/Manifest @@ -0,0 +1 @@ +DIST apsw-3.25.2_p1.zip 682975 BLAKE2B f9f471378cddd7da1c06158b7a041d9377da4d4123846318c0cfc24167734bc1813f667e64c4c6bf643c6a618c9cabf58301dfbaad0998082d764212ea369fff SHA512 073b2fe9170fb00ac6f2ba52eb638d64d79875ba74b09f0307fa2c075e714bb91465fd2edd46341dac5cedc0bee0a1099888b6c1cee706fc04fa6b9ad99c47d7 diff --git a/dev-python/apsw/apsw-3.25.2_p1.ebuild b/dev-python/apsw/apsw-3.25.2_p1.ebuild new file mode 100644 index 000000000000..1cf991929222 --- /dev/null +++ b/dev-python/apsw/apsw-3.25.2_p1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{3_6,3_7} ) + +inherit distutils-r1 flag-o-matic + +MY_PV=${PV/_p/-r} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="APSW - Another Python SQLite Wrapper" +HOMEPAGE="https://github.com/rogerbinns/apsw/" +SRC_URI="https://github.com/rogerbinns/apsw/releases/download/${MY_PV}/${MY_P}.zip -> ${P}.zip" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc64 x86" +IUSE="doc" + +RDEPEND=">=dev-db/sqlite-${PV%_p*}" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${MY_P} + +PATCHES=( "${FILESDIR}/${PN}-3.6.20.1-fix_tests.patch" ) + +python_compile() { + python_is_python3 || append-cflags -fno-strict-aliasing + distutils-r1_python_compile --enable=load_extension +} + +python_test() { + "${PYTHON}" setup.py build_test_extension || die "Building of test loadable extension failed" + "${PYTHON}" tests.py -v || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/apsw/files/apsw-3.6.20.1-fix_tests.patch b/dev-python/apsw/files/apsw-3.6.20.1-fix_tests.patch new file mode 100644 index 000000000000..e252bf3f26a6 --- /dev/null +++ b/dev-python/apsw/files/apsw-3.6.20.1-fix_tests.patch @@ -0,0 +1,11 @@ +--- a/tests.py ++++ b/tests.py +@@ -5480,7 +5480,7 @@ + testnasty() + + # What happens if db cannot be opened? +- s.process_args(args=["/"]) ++ s.process_args(args=["src"]) + reset() + cmd("select * from sqlite_master;\n.bail on\nselect 3;\n") + self.assertRaises(apsw.CantOpenError, s.cmdloop) diff --git a/dev-python/apsw/metadata.xml b/dev-python/apsw/metadata.xml new file mode 100644 index 000000000000..3f58895ea8b8 --- /dev/null +++ b/dev-python/apsw/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription> + APSW provides an SQLite 3 wrapper that provides the thinnest layer over SQLite 3 possible. + Everything you can do from the C API to SQLite 3, you can do from Python. + Although APSW looks vaguely similar to the DBAPI, it is not compliant with that API and instead + works the way SQLite 3 does. + </longdescription> + <upstream> + <remote-id type="github">rogerbinns/apsw</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
