python-pysqlite2: add pysqlite Python interface to SQLite 3
authorJeremy Laine <jeremy.laine@m4x.org>
Fri, 7 Dec 2007 12:25:16 +0000 (12:25 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Fri, 7 Dec 2007 12:25:16 +0000 (12:25 +0000)
packages/python/python-pysqlite2/.mtn2git_empty [new file with mode: 0644]
packages/python/python-pysqlite2/fix-setup.patch [new file with mode: 0644]
packages/python/python-pysqlite2_2.4.0.bb [new file with mode: 0644]

diff --git a/packages/python/python-pysqlite2/.mtn2git_empty b/packages/python/python-pysqlite2/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/python/python-pysqlite2/fix-setup.patch b/packages/python/python-pysqlite2/fix-setup.patch
new file mode 100644 (file)
index 0000000..fb732a1
--- /dev/null
@@ -0,0 +1,9 @@
+diff -urN pysqlite-2.4.0.orig/setup.cfg pysqlite-2.4.0/setup.cfg
+--- pysqlite-2.4.0.orig/setup.cfg      2007-11-25 17:56:17.000000000 +0100
++++ pysqlite-2.4.0/setup.cfg   2007-12-07 09:59:36.000000000 +0100
+@@ -1,5 +1,3 @@
+ [build_ext]
+ define=
+-include_dirs=/usr/include
+-library_dirs=/usr/lib
+ libraries=sqlite3
diff --git a/packages/python/python-pysqlite2_2.4.0.bb b/packages/python/python-pysqlite2_2.4.0.bb
new file mode 100644 (file)
index 0000000..751122e
--- /dev/null
@@ -0,0 +1,17 @@
+DESCRIPTION = "Python interface to SQLite 3"
+SECTION = "devel/python"
+PRIORITY = "optional"
+LICENSE = "BSD"
+DEPENDS = "sqlite3"
+SRCNAME = "pysqlite"
+
+SRC_URI = "http://initd.org/pub/software/pysqlite/releases/2.4/${PV}/${SRCNAME}-${PV}.tar.gz \
+          file://fix-setup.patch;patch=1"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit distutils
+
+do_install_append() {
+    install -d ${D}${datadir}/doc/
+    mv ${D}${datadir}/pysqlite2-doc ${D}${datadir}/doc/${PN}
+}