DESCRIPTION = "Python Programming Language" HOMEPAGE = "http://www.python.org" LICENSE = "PSF" SECTION = "devel/python" PRIORITY = "optional" DEPENDS = "python-native readline zlib gdbm openssl sqlite3 tcl tk" DEPENDS_sharprom = "python-native readline zlib gdbm openssl" # NOTE: Keep the digit in sync with BASEREV in contrib/generate-manifest-2.5.py PR = "ml5" PYTHON_MAJMIN = "2.5" SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ file://bindir-libdir.patch;patch=1 \ file://crosscompile.patch;patch=1 \ file://fix-tkinter-detection.patch;patch=1 \ file://autohell.patch;patch=1 \ file://sitebranding.patch;patch=1 \ file://enable-ctypes-module.patch;patch=1 \ file://default-is-optimized.patch;patch=1" S = "${WORKDIR}/Python-${PV}" inherit autotools EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \ --without-cxx --with-signal-module --with-wctype-functions \ --enable-shared" # # copy config.h and an appropriate Makefile for distutils.sysconfig # which laters uses the information out of these to compile extensions # do_compile_prepend() { install -d ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/ install -d ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/ install -m 0644 pyconfig.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/ install -m 0644 Makefile Makefile.orig install -m 0644 Makefile Makefile.backup sed -e 's,${includedir},${STAGING_INCDIR},' < Makefile.backup > Makefile install -m 0644 Makefile Makefile.backup sed -e 's,${libdir},${STAGING_LIBDIR},' < Makefile.backup > Makefile install -m 0644 Makefile ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/ } do_compile() { oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \ HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \ STAGING_LIBDIR=${STAGING_LIBDIR} \ STAGING_INCDIR=${STAGING_INCDIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ OPT="${CFLAGS}" libpython2.5.so oe_libinstall -so libpython2.5 ${STAGING_LIBDIR} oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \ HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \ STAGING_LIBDIR=${STAGING_LIBDIR} \ STAGING_INCDIR=${STAGING_INCDIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ OPT="${CFLAGS}" } do_stage() { install -m 0644 Include/*.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/ oe_libinstall -a -so libpython${PYTHON_MAJMIN} ${STAGING_LIBDIR} } do_install() { install -m 0644 Makefile.orig Makefile oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \ HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \ STAGING_LIBDIR=${STAGING_LIBDIR} \ STAGING_INCDIR=${STAGING_INCDIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ DESTDIR=${D} LIBDIR=${libdir} install } require python-${PYTHON_MAJMIN}-manifest.inc RPROVIDES_python-core = "python" RPROVIDES_python-curses = "python" PACKAGES =+ "libpython2" FILES_libpython2 = "${libdir}/libpython*" # catch debug extensions FILES_python-dbg += "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/.debug" # catch all the rest (unsorted) PACKAGES += "python-misc" FILES_python-misc = "${libdir}/python${PYTHON_MAJMIN}" # catch manpage PACKAGES += "python-man" FILES_python-man = "${datadir}/man" >packages: Improve BUILD_SYS references to stagingRichard Purdie1 2007-07-06perl 5.8.8: A few host paths were being included in the perl for the target.Jamie Lenehan1 2007-07-06perl/perl-native 5.8.8: Fix up asm/page.h include issue. Perl was includingJamie Lenehan1 2007-07-05perl-5.8.8: Fix syntax error (unterminated quoted string)Shane Volpe1 2007-06-14perl 5.8.8: Directly patch the files that need patching instead of having aJamie Lenehan1 2007-06-14perl 5.8.8: Fix the regexp for removing /usr/local paths - it was eating theJamie Lenehan1 2007-06-02perl 5.8.8: Fix for building under gcc 4.2 which was just added to OE. ItJamie Lenehan1 2007-05-30perl 5.8.8: Fixes for uclibc and libxml-parser-perl.Jamie Lenehan1 2007-05-30perl/perl-native 5.8.8: Change the installation directories used forJamie Lenehan1 2007-05-29perl 5.8.8: Fix the CFLAGS being used for perl modules. Instead of replacingJamie Lenehan1 2007-05-08perl/perl-native 5.8.8: Remove -DEFAULT_PREFERENCE = "-1" for version 5.8.8.Jamie Lenehan1 2007-05-08perl 5.8.8: Allow debian.bbclass to mess with perl-lib's naming. This willJamie Lenehan1 2007-05-06perl 5.8.8: Bump PR due to the perl-native change which will fix failingJamie Lenehan1 2007-05-04perl/perl-native 5.8.8: Move the creation of the hostperl link in stagingJamie Lenehan1 2007-05-01perl 5.8.8: Fix to tell bitbake about the perl module packages. I'd left outJamie Lenehan1 2007-05-01perl 5.8.8: Allow perl to build when using an external toolchain.Jamie Lenehan1 2007-04-30perl 5.8.8: Improvements for cpan modules:Jamie Lenehan1 2007-04-27perl 5.8.8: Fixes to be able to build under uclibc.Jamie Lenehan1 2007-04-26perl 5.8.8: Minor updates to the packaging:Jamie Lenehan1 2007-04-26perl 5.8.8: Move configuration files for libnet and cpan to /etc/perl toJamie Lenehan1 2007-04-25perl 5.8.8: Move comments on how to create the dependency list into theJamie Lenehan1 2007-04-24perl 5.8.8: Replace host paths from the configuration file that is to beJamie Lenehan1 2007-04-24perl 5.8.8: Re-arrange the installation directories to match the debianJamie Lenehan1 2007-04-24perl 5.8.8: Extract out the common settings from the 32/64 bit configs to aJamie Lenehan1 2007-04-21perl: Move the list of rprovides for backward compatiblity into a seperateJamie Lenehan1 2007-04-21perl: Add 5.8.8 and use DEFAULT_PREFERENCE to disable it until moreJamie Lenehan1