[oe-commits] Michael 'Mickey' Lauer : zope 3.3.1: sanitize to work with multiple Python versions

GIT User account git at amethyst.openembedded.net
Sat Nov 15 20:31:53 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 56fc6cc7487e9329027a62f22d6e64a9bc5a25a0
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=56fc6cc7487e9329027a62f22d6e64a9bc5a25a0

Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Wed Nov 12 23:52:34 2008 +0100

zope 3.3.1: sanitize to work with multiple Python versions
* drop older ones

---

 packages/zope/zope_2.7.1.bb |   25 -------------------------
 packages/zope/zope_2.9.2.bb |   25 -------------------------
 packages/zope/zope_3.3.1.bb |   37 ++++++++++++++++++-------------------
 3 files changed, 18 insertions(+), 69 deletions(-)

diff --git a/packages/zope/zope_2.7.1.bb b/packages/zope/zope_2.7.1.bb
deleted file mode 100644
index efda9d2..0000000
--- a/packages/zope/zope_2.7.1.bb
+++ /dev/null
@@ -1,25 +0,0 @@
-DESCRIPTION = "A full fledged pluggable content management system with integrated web server and much more"
-SECTION = "console/network"
-PRIORITY = "optional"
-DEPENDS = "python"
-RDEPENDS = "python-core python-shell"
-LICENSE = "ZPL"
-PR = "ml1"
-
-SRC_URI = "http://zope.org/Products/Zope/${PV}/Zope-${PV}.tgz"
-S = "${WORKDIR}/Zope-${PV}-0"
-
-do_configure() {
-	./configure --with-python=${STAGING_BINDIR_NATIVE}/python --prefix=${prefix} --optimize --ignore-zlib
-}
-
-do_compile() {
-	oe_runmake HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}
-}
-
-do_install() {
-	oe_runmake install PREFIX=${D}${prefix} HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}
-}
-
-FILES_${PN} = "${prefix}"
-FILES_${PN}_doc = "${prefix}/doc"
diff --git a/packages/zope/zope_2.9.2.bb b/packages/zope/zope_2.9.2.bb
deleted file mode 100644
index 1225437..0000000
--- a/packages/zope/zope_2.9.2.bb
+++ /dev/null
@@ -1,25 +0,0 @@
-DESCRIPTION = "A full fledged pluggable content management system with integrated web server and much more."
-SECTION = "console/network"
-PRIORITY = "optional"
-DEPENDS = "python"
-RDEPENDS = "python-core python-shell"
-LICENSE = "ZPL"
-PR = "ml0"
-
-SRC_URI = "http://zope.org/Products/Zope/${PV}/Zope-${PV}.tgz"
-S = "${WORKDIR}/Zope-${PV}"
-
-do_configure() {
-	./configure --with-python=${STAGING_BINDIR_NATIVE}/python --prefix=${prefix} --force
-}
-
-do_compile() {
-	oe_runmake HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}
-}
-
-do_install() {
-	oe_runmake install prefix=${D}${prefix} HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}
-}
-
-FILES_${PN} = "${prefix}"
-FILES_${PN}_doc = "${prefix}/doc"
diff --git a/packages/zope/zope_3.3.1.bb b/packages/zope/zope_3.3.1.bb
index 717e5a1..000947f 100644
--- a/packages/zope/zope_3.3.1.bb
+++ b/packages/zope/zope_3.3.1.bb
@@ -4,26 +4,25 @@ PRIORITY = "optional"
 DEPENDS = "python"
 RDEPENDS = "python-core python-shell"
 LICENSE = "ZPL"
-PR = "r3"
+PR = "r5"
 
 SRC_URI = "http://www.zope.org/Products/Zope3/${PV}/Zope-${PV}.tgz"
-
 S = "${WORKDIR}/Zope-${PV}"
 
+inherit distutils-base
+
 do_configure() {
 	./configure --with-python=${STAGING_BINDIR_NATIVE}/python --prefix=${prefix} --force
 }
 
 do_compile() {
-	oe_runmake HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}
+	oe_runmake HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS} STAGING_INCDIR=${STAGING_INCDIR}
 }
 
-PYTHON_MAJMIN = "2.4"
-
 do_install() {
-	install -d ${D}${libdir}/python${PYTHON_MAJMIN}
+	install -d ${D}${libdir}/${PYTHON_DIR}
 	oe_runmake install prefix=${D}${prefix} HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}
-	mv ${D}${libdir}/python/* ${D}${libdir}/python${PYTHON_MAJMIN} 
+	mv ${D}${libdir}/python/* ${D}${libdir}/${PYTHON_DIR} 
 }
 
 PACKAGES =+ "python-zopeinterface python-zopeinterface-dbg"
@@ -31,15 +30,15 @@ PACKAGES =+ "python-zopeinterface python-zopeinterface-dbg"
 FILES_${PN} = "${prefix}"
 FILES_${PN}_doc = "${prefix}/doc"
 FILES_${PN}-dbg += "\
-${libdir}/python${PYTHON_MAJMIN}/BTrees/.debug \
-${libdir}/python${PYTHON_MAJMIN}/persistent/.debug \
-${libdir}/python${PYTHON_MAJMIN}/zope/proxy/.debug \
-${libdir}/python${PYTHON_MAJMIN}/zope/thread/.debug \
-${libdir}/python${PYTHON_MAJMIN}/zope/security/.debug \
-${libdir}/python${PYTHON_MAJMIN}/zope/hookable/.debug \
-${libdir}/python${PYTHON_MAJMIN}/zope/app/container/.debug \
-${libdir}/python${PYTHON_MAJMIN}/zope/i18nmessageid/.debug \
-${libdir}/python${PYTHON_MAJMIN}/ZODB/.debug"
-FILES_python-zopeinterface-dbg += "${libdir}/python${PYTHON_MAJMIN}/zope/interface/.debug "
-
-FILES_python-zopeinterface = "${libdir}/python${PYTHON_MAJMIN}/zope/interface/*.* ${libdir}/python${PYTHON_MAJMIN}/zope/interface/common"
+${libdir}/${PYTHON_DIR}/BTrees/.debug \
+${libdir}/${PYTHON_DIR}/persistent/.debug \
+${libdir}/${PYTHON_DIR}/zope/proxy/.debug \
+${libdir}/${PYTHON_DIR}/zope/thread/.debug \
+${libdir}/${PYTHON_DIR}/zope/security/.debug \
+${libdir}/${PYTHON_DIR}/zope/hookable/.debug \
+${libdir}/${PYTHON_DIR}/zope/app/container/.debug \
+${libdir}/${PYTHON_DIR}/zope/i18nmessageid/.debug \
+${libdir}/${PYTHON_DIR}/ZODB/.debug"
+FILES_python-zopeinterface-dbg += "${libdir}/${PYTHON_DIR}/zope/interface/.debug "
+
+FILES_python-zopeinterface = "${libdir}/${PYTHON_DIR}/zope/interface/*.* ${libdir}/${PYTHON_DIR}/zope/interface/common"





More information about the Openembedded-commits mailing list