summaryrefslogtreecommitdiff
path: root/dev-python/apsw
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/apsw
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/apsw')
-rw-r--r--dev-python/apsw/Manifest8
-rw-r--r--dev-python/apsw/apsw-3.19.3_p1.ebuild42
-rw-r--r--dev-python/apsw/apsw-3.20.1_p1.ebuild42
-rw-r--r--dev-python/apsw/files/apsw-3.6.20.1-fix_tests.patch11
-rw-r--r--dev-python/apsw/metadata.xml17
5 files changed, 120 insertions, 0 deletions
diff --git a/dev-python/apsw/Manifest b/dev-python/apsw/Manifest
new file mode 100644
index 000000000000..667a9b84aee9
--- /dev/null
+++ b/dev-python/apsw/Manifest
@@ -0,0 +1,8 @@
+AUX apsw-3.6.20.1-fix_tests.patch 340 SHA256 bb8c5b2af794f3905b9ae614d00a7a357eb9ab8b92e33046e5aa6a03ebcf1ffa SHA512 386cae12d949a6f4dd55dc7e3e1bc176c43c5001f10acc75261c92fbe14bb09c0e054dfa4087d285496dec4cbd4a9add5733742dbfa82c6e10ee1c8d0f43fb0a WHIRLPOOL 13df8b0ea95a9512e0d0d37161292b28b6e3919eedbbec86a195fe3770d9627389acba0caf0da7c6b8e98a2fd28ce7837e8d39ca0163da9f9b3aa54fd3e87e2f
+DIST apsw-3.19.3_p1.zip 678966 SHA256 355b66379e9e44c1f32bc67421e4ad0a348a19bf279a4256a49d0eb83fff404e SHA512 9f9e05c865a19e7b6e6b37e6228027c027ba683be2d5ff7a1767bb3bbeb090bf66879a0eead4fc9e34fc4d84c1edc98137b2839f84ffab9bd36330d05435ab4e WHIRLPOOL 6703b13f42711f95a86a1c4a0e20bfc378823c24ee78c1ad7bb4e956bd9a927abe777a0c8c9b81c7d24130b76ba2019e048465e0cc59575a8e419f1b97847d7a
+DIST apsw-3.20.1_p1.zip 680035 SHA256 3ea97084f76049328a5d40eee8c6c86ae303e5be66d2900b521bbc6ebfefaf0a SHA512 12284a99efba13abe417a786939e2ab10d677014feb9393e41cc7b127fb974cb961f371c142904bbe48a96038d49605c885fa43739a14ef8e11fb37ea274ce92 WHIRLPOOL d679e4c016d2041c95c9e331e02864ac4eb9308748ca1122b6faf4acaaad087840702cffbe01d21c4e4345d505750911a6d0611d469c94af995416de4af2dbf8
+EBUILD apsw-3.19.3_p1.ebuild 1055 SHA256 f3c5ca4984145e0948802abdd21402febe9b2da3fc86e28ce001dc7a7ae7cd77 SHA512 f8a332998543699139d5ca8357f5cb9c7ea5ea7c07dddb142058a906bb28005f451136cb8c7774bf47ba4bd7c8e76091e35843206f53434632cf0ba275f615ef WHIRLPOOL c1fd817530a1de4b879602b7a25da42b905ef03e7edda51ab41400ccced9b3df0c83099b67bad7a7d88cd31231d375cb899822611fcbea20786c5698547714a2
+EBUILD apsw-3.20.1_p1.ebuild 1057 SHA256 5f605c5f64f987667c43957d25c0841fa79c41de2aafec742373b525b4314a7a SHA512 f818ef35546e3d46a2f42f0506cedb4d3aedcdca46a151a56cc8b68ee8958cbfdd82a874c78bb1a8d79db144d85509602009985c2367fcd1df64c2c6cdce2b53 WHIRLPOOL 37c350ffe5fb4e34518c5b5b1484eda0f870e73eca522f67875dcb938194f7795f734a995efe4323204ecf8836dfe43b4437b282a9cba54a0a1827f15d25d84c
+MISC ChangeLog 5313 SHA256 65f4be6509df48baff9a5b1790470cbd46e00f4f33334f00ab69c07040c2a1ec SHA512 d2532cac95e9ecd456148a346e096e4a9665d0e4d7740238f8010eda4c6da306f163eea8c5283549d68922e0e2fa67937d7ab64e788f6f9ceccd977c2035a7d2 WHIRLPOOL a657737d6b73232ec5a6988956b944c27c24f676e0f808ffc35446ad0ad769348594fcf7e31c88cc3e5f53c88e510a09b5ffd4a1402e84cffb6c83d862616ab5
+MISC ChangeLog-2015 11038 SHA256 12295b0f2f48036852f2425413c2ba912ad450efd2220255be9cd09ee373c648 SHA512 fb1ee0d203ec3fe0842412f2ddf8fa1c400fbaeef6872cbb097b5ed4b16ad25055f200e14b08ff06db1710b0ab183b0e8006dcff4d0f3016714247ab02d6fb79 WHIRLPOOL 241a136b92309e23e5f0c5670a59325eda7c5eb31dc32374af77b75f3e97eef34bbe8b35287bd1df566b211dfdd9f1b12427d0f2bf9d4aa66bcb3241f7bcd4a4
+MISC metadata.xml 677 SHA256 462ad1f1be64fa8477a19a24bfaa4ad9cc1a69de7d702cec5a6f577c3df17b60 SHA512 970eb7e730f147bbe24fbe377f6b9a1557f56d536ce462aef5ccba23059295c4c8d88bb384a7b7ec3f401a512e04134ebe19efa03473a90841d7c6246e2eb244 WHIRLPOOL 5c2ecf0e1eff13fef9e1bed6432a762db95351f2cf5250591fc4158470cb8b2568d0b22d6d4bf2e28287b8fb4165d906fa3ae856bf4c0be9089019c05ba34dba
diff --git a/dev-python/apsw/apsw-3.19.3_p1.ebuild b/dev-python/apsw/apsw-3.19.3_p1.ebuild
new file mode 100644
index 000000000000..21e24d9891e4
--- /dev/null
+++ b/dev-python/apsw/apsw-3.19.3_p1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+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/apsw-3.20.1_p1.ebuild b/dev-python/apsw/apsw-3.20.1_p1.ebuild
new file mode 100644
index 000000000000..f2bb6b9990b9
--- /dev/null
+++ b/dev-python/apsw/apsw-3.20.1_p1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+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..bd25419f6171
--- /dev/null
+++ b/dev-python/apsw/metadata.xml
@@ -0,0 +1,17 @@
+<?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>
+</pkgmetadata>