1 DESCRIPTION = "Python Programming Language"
2 HOMEPAGE = "http://www.python.org"
4 SECTION = "devel/python"
6 MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
7 DEPENDS = "python-native zlib gdbm"
10 SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
11 file://bindir-libdir.patch;patch=1 \
12 file://crosscompile.patch;patch=1"
13 S = "${WORKDIR}/Python-${PV}"
17 EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc --without-cxx --with-signal-module --with-wctype-functions"
20 # copy config.h and an appropriate Makefile for distutils.sysconfig
21 # which laters uses the information out of these to compile extensions
23 do_compile_prepend() {
24 install -d ${STAGING_INCDIR}/python2.3/
25 install -d ${STAGING_LIBDIR}/python2.3/config/
26 install -m 0644 pyconfig.h ${STAGING_INCDIR}/python2.3/
27 install -m 0644 Makefile Makefile.orig
28 install -m 0644 Makefile Makefile.backup
29 sed -e 's,${includedir},${STAGING_INCDIR},' < Makefile.backup > Makefile
30 install -m 0644 Makefile Makefile.backup
31 sed -e 's,${libdir},${STAGING_LIBDIR},' < Makefile.backup > Makefile
32 install -m 0644 Makefile ${STAGING_LIBDIR}/python2.3/config/
36 oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \
37 HOSTPYTHON=${STAGING_BINDIR}/python \
38 STAGING_LIBDIR=${STAGING_LIBDIR} \
39 STAGING_INCDIR=${STAGING_INCDIR} \
40 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS}
44 install -m 0644 Include/*.h ${STAGING_INCDIR}/python2.3/
48 install -m 0644 Makefile.orig Makefile
49 oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \
50 HOSTPYTHON=${STAGING_BINDIR}/python \
51 STAGING_LIBDIR=${STAGING_LIBDIR} \
52 STAGING_INCDIR=${STAGING_INCDIR} \
53 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
57 include python-${PV}-manifest.inc