python-native: update from OE and fix build after staging layout change

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4970 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Marcin Juszkiewicz
2008-07-28 15:13:20 +00:00
parent c4d370a0c7
commit cc33fc00cf
3 changed files with 63 additions and 12 deletions

View File

@@ -4,15 +4,19 @@ LICENSE = "PSF"
SECTION = "devel/python"
PRIORITY = "optional"
DEPENDS = ""
PR = "ml1"
PR = "ml3"
EXCLUDE_FROM_WORLD = "1"
SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
file://bindir-libdir.patch;patch=1 \
file://cross-distutils.patch;patch=1 \
file://dont-modify-shebang-line.patch;patch=1 \
file://default-is-optimized.patch;patch=1"
SRC_URI = "\
http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
file://bindir-libdir.patch;patch=1 \
file://cross-distutils.patch;patch=1 \
file://dont-modify-shebang-line.patch;patch=1 \
file://default-is-optimized.patch;patch=1 \
file://catchup-with-swig.patch;patch=1 \
file://fix-staging.patch;patch=1 \
"
S = "${WORKDIR}/Python-${PV}"
inherit autotools native
@@ -22,12 +26,8 @@ exec_prefix = "${STAGING_DIR_NATIVE}/${layout_exec_prefix}"
EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \
--without-cxx --with-signal-module --with-wctype-functions"
EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""'
#do_configure() {
# # the autofoo stuff is too old to allow regenerating
# oe_runconf
#}
EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS="" STAGING_LIBDIR=${STAGING_LIBDIR} \
STAGING_INCDIR=${STAGING_INCDIR}'
do_stage_append() {
install -m 0755 Parser/pgen ${STAGING_BINDIR_NATIVE}/