summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-10-31 18:43:12 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-10-31 18:43:12 +0000
commitf3dff1a534c970e6560d0db0304b887ae9bb62ec (patch)
tree0fdd772923fc53ede0001291e61a6df3b1ec21f0 /dev-python/pysqlite
parentStable on amd64 wrt bug #342847 (diff)
downloadhistorical-f3dff1a534c970e6560d0db0304b887ae9bb62ec.tar.gz
historical-f3dff1a534c970e6560d0db0304b887ae9bb62ec.tar.bz2
historical-f3dff1a534c970e6560d0db0304b887ae9bb62ec.zip
Enable support for loadable sqlite extensions (bug #335505).
Package-Manager: portage-2.2.0_alpha2_p3/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pysqlite')
-rw-r--r--dev-python/pysqlite/ChangeLog8
-rw-r--r--dev-python/pysqlite/Manifest3
-rw-r--r--dev-python/pysqlite/pysqlite-2.6.0-r1.ebuild64
3 files changed, 73 insertions, 2 deletions
diff --git a/dev-python/pysqlite/ChangeLog b/dev-python/pysqlite/ChangeLog
index 578f93acca9a..77c6cc0347cb 100644
--- a/dev-python/pysqlite/ChangeLog
+++ b/dev-python/pysqlite/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pysqlite
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pysqlite/ChangeLog,v 1.122 2010/05/11 21:16:58 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pysqlite/ChangeLog,v 1.123 2010/10/31 18:43:12 arfrever Exp $
+
+*pysqlite-2.6.0-r1 (31 Oct 2010)
+
+ 31 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +pysqlite-2.6.0-r1.ebuild:
+ Enable support for loadable sqlite extensions (bug #335505).
11 May 2010; Brent Baude <ranger@gentoo.org> pysqlite-2.6.0.ebuild:
stable ppc64, bug 313159
diff --git a/dev-python/pysqlite/Manifest b/dev-python/pysqlite/Manifest
index 6a2638ce55c7..0eb20065b78b 100644
--- a/dev-python/pysqlite/Manifest
+++ b/dev-python/pysqlite/Manifest
@@ -1,6 +1,7 @@
DIST pysqlite-1.0.1.tar.gz 41099 RMD160 b608b81de56d1b549e03cd8d97e8c929fbe598c0 SHA1 720458a0ebb5b4fa145a3048444611a450204122 SHA256 9ceed0af9e94b2f8701d4f36d7e86715d8ca64283e0b311e1816c031c3658f08
DIST pysqlite-2.6.0.tar.gz 74456 RMD160 4aa208fc78cc0395c5872c609a5b0f713e064129 SHA1 d26bdb1027b03c4385c30dd89cc2f317694c558d SHA256 354290bd1b18bb69e11946b2d913fd9b15c2a4aa7de2e8565d299492db773721
EBUILD pysqlite-1.0.1.ebuild 875 RMD160 eeeece77e76573f65c7252aa8fbb4dc1077180e0 SHA1 bbdccfc4e7f80f8154432d110fd2da01fbb8e388 SHA256 88408b3a006df95ef3d6261e36f84843a0eb5548774419ef8e4f4e9477235baa
+EBUILD pysqlite-2.6.0-r1.ebuild 1845 RMD160 5ea7e1a160a100ea9f9c58056cc6b418dc0df6f7 SHA1 c07ad74505aaa9565fefbad29e404bdee37ce24f SHA256 82131586085c7395e442c89d14f37087212323bac38fa38f33b3a1432d40c097
EBUILD pysqlite-2.6.0.ebuild 1585 RMD160 81e695325f438445a2485dd6fde756580ea28cc7 SHA1 51673eef581c170ad7223b394cb8005e33f8a977 SHA256 d2f264bb3865504a2fb1471d712b59be7d1c41e1ea5d0c4e829c54350812b94c
-MISC ChangeLog 15011 RMD160 ccec67fd0cee5dd08e181f63ae061940524cd7e6 SHA1 5212ff6ddf7e5dae598ae9eb0f2c10e05377e6a3 SHA256 bbb99352862565d18ab7a652a6c1b994e2bbe8fb7f8f9cf47232f153dba5195b
+MISC ChangeLog 15213 RMD160 5c40d530757b441c1a9d3b5d0887b4dd91c09a04 SHA1 e043def4476df1060f048e94ffc35490f4ab3324 SHA256 e53d63cf35de214dd05d85d8a7369622ab06cb8add39ede850563d3dcc7eded6
MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
diff --git a/dev-python/pysqlite/pysqlite-2.6.0-r1.ebuild b/dev-python/pysqlite/pysqlite-2.6.0-r1.ebuild
new file mode 100644
index 000000000000..e4dbc1ed8ce8
--- /dev/null
+++ b/dev-python/pysqlite/pysqlite-2.6.0-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pysqlite/pysqlite-2.6.0-r1.ebuild,v 1.1 2010/10/31 18:43:12 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils
+
+DESCRIPTION="DB-API 2.0 interface for SQLite 3.x"
+HOMEPAGE="http://code.google.com/p/pysqlite/ http://pypi.python.org/pypi/pysqlite"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="pysqlite"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+IUSE="examples"
+
+DEPEND=">=dev-db/sqlite-3.3.8:3[extensions]"
+RDEPEND=${DEPEND}
+
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+
+PYTHON_MODNAME="pysqlite2"
+
+src_prepare() {
+ distutils_src_prepare
+
+ # Enable support for loadable sqlite extensions.
+ sed -e "/define=SQLITE_OMIT_LOAD_EXTENSION/d" -i setup.cfg || die "sed setup.cfg failed"
+
+ # Fix encoding.
+ sed -e "s/\(coding: \)ISO-8859-1/\1utf-8/" -i lib/{__init__.py,dbapi2.py} || die "sed lib/{__init__.py,dbapi2.py} failed"
+
+ # Workaround to make tests work without installing them.
+ sed -e "s/pysqlite2.test/test/" -i lib/test/__init__.py || die "sed lib/test/__init__.py failed"
+}
+
+src_test() {
+ cd lib
+
+ testing() {
+ PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" -c "from test import test; import sys; sys.exit(test())"
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+
+ rm -rf "${ED}usr/pysqlite2-doc"
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins doc/includes/sqlite3/* || die "Installation of examples failed"
+ fi
+
+ delete_tests() {
+ rm -fr "${ED}$(python_get_sitedir)/pysqlite2/test"
+ }
+ python_execute_function -q delete_tests
+}