Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pysqlite: ChangeLog pysqlite-2.6.0-r1.ebuild
Date: Sun, 31 Oct 2010 18:43:18
Message-Id: 20101031184312.B5D9820051@flycatcher.gentoo.org
1 arfrever 10/10/31 18:43:12
2
3 Modified: ChangeLog
4 Added: pysqlite-2.6.0-r1.ebuild
5 Log:
6 Enable support for loadable sqlite extensions (bug #335505).
7
8 (Portage version: 2.2.0_alpha2_p3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.123 dev-python/pysqlite/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pysqlite/ChangeLog?rev=1.123&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pysqlite/ChangeLog?rev=1.123&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pysqlite/ChangeLog?r1=1.122&r2=1.123
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pysqlite/ChangeLog,v
20 retrieving revision 1.122
21 retrieving revision 1.123
22 diff -u -r1.122 -r1.123
23 --- ChangeLog 11 May 2010 21:16:58 -0000 1.122
24 +++ ChangeLog 31 Oct 2010 18:43:12 -0000 1.123
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/pysqlite
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pysqlite/ChangeLog,v 1.122 2010/05/11 21:16:58 ranger Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pysqlite/ChangeLog,v 1.123 2010/10/31 18:43:12 arfrever Exp $
30 +
31 +*pysqlite-2.6.0-r1 (31 Oct 2010)
32 +
33 + 31 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +pysqlite-2.6.0-r1.ebuild:
35 + Enable support for loadable sqlite extensions (bug #335505).
36
37 11 May 2010; Brent Baude <ranger@g.o> pysqlite-2.6.0.ebuild:
38 stable ppc64, bug 313159
39
40
41
42 1.1 dev-python/pysqlite/pysqlite-2.6.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pysqlite/pysqlite-2.6.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pysqlite/pysqlite-2.6.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pysqlite-2.6.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $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 $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.*"
57
58 inherit distutils
59
60 DESCRIPTION="DB-API 2.0 interface for SQLite 3.x"
61 HOMEPAGE="http://code.google.com/p/pysqlite/ http://pypi.python.org/pypi/pysqlite"
62 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
63
64 LICENSE="pysqlite"
65 SLOT="2"
66 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
67 IUSE="examples"
68
69 DEPEND=">=dev-db/sqlite-3.3.8:3[extensions]"
70 RDEPEND=${DEPEND}
71
72 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
73
74 PYTHON_MODNAME="pysqlite2"
75
76 src_prepare() {
77 distutils_src_prepare
78
79 # Enable support for loadable sqlite extensions.
80 sed -e "/define=SQLITE_OMIT_LOAD_EXTENSION/d" -i setup.cfg || die "sed setup.cfg failed"
81
82 # Fix encoding.
83 sed -e "s/\(coding: \)ISO-8859-1/\1utf-8/" -i lib/{__init__.py,dbapi2.py} || die "sed lib/{__init__.py,dbapi2.py} failed"
84
85 # Workaround to make tests work without installing them.
86 sed -e "s/pysqlite2.test/test/" -i lib/test/__init__.py || die "sed lib/test/__init__.py failed"
87 }
88
89 src_test() {
90 cd lib
91
92 testing() {
93 PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" -c "from test import test; import sys; sys.exit(test())"
94 }
95 python_execute_function testing
96 }
97
98 src_install() {
99 distutils_src_install
100
101 rm -rf "${ED}usr/pysqlite2-doc"
102
103 if use examples; then
104 insinto /usr/share/doc/${PF}/examples
105 doins doc/includes/sqlite3/* || die "Installation of examples failed"
106 fi
107
108 delete_tests() {
109 rm -fr "${ED}$(python_get_sitedir)/pysqlite2/test"
110 }
111 python_execute_function -q delete_tests
112 }