[oe-commits] Marcin Juszkiewicz : python-pysqlite2-native: added for rpm
GIT User account
git at amethyst.openembedded.net
Mon Mar 16 11:44:00 UTC 2009
Module: openembedded.git
Branch: hrw/poky-merge/add-rpm-packages-support
Commit: 1ed68c0f560fa017e15e1d08b3a827c0cd76b90e
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1ed68c0f560fa017e15e1d08b3a827c0cd76b90e
Author: Marcin Juszkiewicz <hrw at openembedded.org>
Date: Thu Mar 12 18:12:35 2009 +0100
python-pysqlite2-native: added for rpm
---
packages/python/python-pysqlite2-native_2.4.0.bb | 12 +++++++++++
packages/python/python-pysqlite2.inc | 13 +++++++++++
packages/python/python-pysqlite2_2.4.0.bb | 24 ++++++---------------
3 files changed, 32 insertions(+), 17 deletions(-)
diff --git a/packages/python/python-pysqlite2-native_2.4.0.bb b/packages/python/python-pysqlite2-native_2.4.0.bb
new file mode 100644
index 0000000..777b446
--- /dev/null
+++ b/packages/python/python-pysqlite2-native_2.4.0.bb
@@ -0,0 +1,12 @@
+require python-pysqlite2.inc
+
+inherit native
+
+DEPENDS = "python-native sqlite3-native"
+RDEPENDS = ""
+
+do_stage() {
+ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
+ STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
+ ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
+}
diff --git a/packages/python/python-pysqlite2.inc b/packages/python/python-pysqlite2.inc
new file mode 100644
index 0000000..00ba6cc
--- /dev/null
+++ b/packages/python/python-pysqlite2.inc
@@ -0,0 +1,13 @@
+DESCRIPTION = "Python interface to SQLite 3"
+SECTION = "devel/python"
+PRIORITY = "optional"
+LICENSE = "BSD"
+SRCNAME = "pysqlite"
+PR = "ml2"
+
+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
diff --git a/packages/python/python-pysqlite2_2.4.0.bb b/packages/python/python-pysqlite2_2.4.0.bb
index 24b2668..bb8d09b 100644
--- a/packages/python/python-pysqlite2_2.4.0.bb
+++ b/packages/python/python-pysqlite2_2.4.0.bb
@@ -1,22 +1,7 @@
-DESCRIPTION = "Python interface to SQLite 3"
-SECTION = "devel/python"
-PRIORITY = "optional"
-LICENSE = "BSD"
-DEPENDS = "sqlite3"
-SRCNAME = "pysqlite"
-PR = "ml2"
-
-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}"
+require python-pysqlite2.inc
-inherit distutils
-
-do_install_append() {
- install -d ${D}${datadir}/doc/
- mv ${D}${datadir}/pysqlite2-doc ${D}${datadir}/doc/${PN}
-}
+DEPENDS = "sqlite3"
RDEPENDS = "\
python-datetime \
python-lang \
@@ -27,6 +12,11 @@ RDEPENDS = "\
python-zlib \
"
+do_install_append() {
+ install -d ${D}${datadir}/doc/
+ mv ${D}${datadir}/pysqlite2-doc ${D}${datadir}/doc/${PN}
+}
+
PACKAGES =+ "${PN}-tests"
FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/pysqlite2/test"
RDEPENDS_${PN}-tests = "${PN}"
More information about the Openembedded-commits
mailing list