distutils.bbclass: bandaid against wrong datadir installation
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Fri, 16 Jan 2009 23:55:34 +0000 (00:55 +0100)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Fri, 16 Jan 2009 23:56:31 +0000 (00:56 +0100)
bump affected python recipes

classes/distutils.bbclass
packages/python/python-fnorb_1.3.bb
packages/python/python-pycurl_7.18.2.bb
packages/python/python-pymetar_0.14.bb
packages/python/python-scapy_2.0.0.9.bb

index 694d6bc..375ffff 100644 (file)
@@ -58,6 +58,11 @@ distutils_do_install() {
         fi
 
         rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/easy-install.pth
+        
+        #
+        # FIXME: Bandaid against wrong datadir computation
+        #
+        mv -f ${D}${datadir}/share/* ${D}${datadir}/
 }
 
 EXPORT_FUNCTIONS do_compile do_install
index e6844de..15ae037 100644 (file)
@@ -3,14 +3,9 @@ SECTION = "devel/python"
 PRIORITY = "optional"
 LICENSE = "FNORB"
 SRCNAME = "Fnorb"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/fnorb/${SRCNAME}-${PV}.tar.gz"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit distutils
-
-do_install_append() {
-       mv -f ${D}/usr/share/share/* ${D}/usr/share/
-       rm -rf ${D}/usr/share/share/
-}
index 5105e90..a38a4b5 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "optional"
 LICENSE = "LGPL"
 DEPENDS = "curl-${PV}"
 SRCNAME = "pycurl"
-PR = "ml1"
+PR = "ml2"
 
 SRC_URI = "\
   http://${SRCNAME}.sourceforge.net/download/${SRCNAME}-${PV}.tar.gz \
@@ -14,8 +14,4 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit distutils
 
-do_install_append() {
-       mv -f ${D}${datadir}/share/* ${D}${datadir}/
-}
-
 RDEPENDS = "python-core curl (>=${PV})"
index a22404d..7520b66 100644 (file)
@@ -3,13 +3,9 @@ SECTION = "devel/python"
 PRIORITY = "optional"
 LICENSE = "GPL"
 SRCNAME = "pymetar"
-PR = "ml0"
+PR = "ml1"
 
 SRC_URI = "http://www.schwarzvogel.de/pkgs/${SRCNAME}-${PV}.tar.gz"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit distutils
-
-do_install_append() {
-       mv -f ${D}/${datadir}/share/* ${D}/${datadir}/
-}
index 616b905..ebe1223 100644 (file)
@@ -7,19 +7,14 @@ HOMEPAGE = "http://www.secdev.org/projects/scapy/"
 LICENSE = "GPL"
 PRIORITY = "optional"
 SRCNAME = "scapy"
-PR = "ml0"
+PR = "ml1"
 
 SRC_URI = "http://www.secdev.org/projects/scapy/files/scapy-${PV}.tar.gz"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
-do_install() {
-       install -d ${D}${libdir}/${PYTHON_DIR}
-       install -m 0755 ${S}/scapy.py ${D}${libdir}/${PYTHON_DIR}/
-}
+inherit distutils
 
 RDEPENDS = "\
   python-netclient \
   python-netserver \
 "
-
-FILES_${PN} = "${libdir}/${PYTHON_DIR}/"