summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/python/python_2.5.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-extras/packages/python/python_2.5.1.bb')
-rw-r--r--meta-extras/packages/python/python_2.5.1.bb96
1 files changed, 96 insertions, 0 deletions
diff --git a/meta-extras/packages/python/python_2.5.1.bb b/meta-extras/packages/python/python_2.5.1.bb
new file mode 100644
index 0000000000..63b7c368a8
--- /dev/null
+++ b/meta-extras/packages/python/python_2.5.1.bb
@@ -0,0 +1,96 @@
1DESCRIPTION = "Python Programming Language"
2HOMEPAGE = "http://www.python.org"
3LICENSE = "PSF"
4SECTION = "devel/python"
5PRIORITY = "optional"
6DEPENDS = "python-native readline zlib gdbm openssl sqlite3"
7DEPENDS_sharprom = "python-native readline zlib gdbm openssl"
8
9# NOTE: Keep the digit in sync with BASEREV in contrib/generate-manifest-2.5.py
10PR = "ml1"
11
12PYTHON_MAJMIN = "2.5"
13
14SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
15 file://bindir-libdir.patch;patch=1 \
16 file://crosscompile.patch;patch=1 \
17 file://fix-tkinter-detection.patch;patch=1 \
18 file://autohell.patch;patch=1 \
19 file://sitebranding.patch;patch=1 \
20 file://default-is-optimized.patch;patch=1"
21S = "${WORKDIR}/Python-${PV}"
22
23inherit autotools
24
25EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \
26 --without-cxx --with-signal-module --with-wctype-functions \
27 --enable-shared"
28
29#
30# copy config.h and an appropriate Makefile for distutils.sysconfig
31# which laters uses the information out of these to compile extensions
32#
33do_compile_prepend() {
34 install -d ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
35 install -d ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
36 install -m 0644 pyconfig.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
37 install -m 0644 Makefile Makefile.orig
38 install -m 0644 Makefile Makefile.backup
39 sed -e 's,${includedir},${STAGING_INCDIR},' < Makefile.backup > Makefile
40 install -m 0644 Makefile Makefile.backup
41 sed -e 's,${libdir},${STAGING_LIBDIR},' < Makefile.backup > Makefile
42 install -m 0644 Makefile ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
43}
44
45do_compile() {
46 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
47 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
48 STAGING_LIBDIR=${STAGING_LIBDIR} \
49 STAGING_INCDIR=${STAGING_INCDIR} \
50 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
51 OPT="${CFLAGS}" libpython2.5.so
52
53 oe_libinstall -so libpython2.5 ${STAGING_LIBDIR}
54
55 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
56 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
57 STAGING_LIBDIR=${STAGING_LIBDIR} \
58 STAGING_INCDIR=${STAGING_INCDIR} \
59 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
60 OPT="${CFLAGS}"
61}
62
63do_stage() {
64 install -m 0644 Include/*.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
65 oe_libinstall -a -so libpython${PYTHON_MAJMIN} ${STAGING_LIBDIR}
66}
67
68do_install() {
69 install -m 0644 Makefile.orig Makefile
70 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
71 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
72 STAGING_LIBDIR=${STAGING_LIBDIR} \
73 STAGING_INCDIR=${STAGING_INCDIR} \
74 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
75 DESTDIR=${D} LIBDIR=${libdir} install
76}
77
78require python-${PYTHON_MAJMIN}-manifest.inc
79
80RPROVIDES_python-core = "python"
81RPROVIDES_python-curses = "python"
82
83PACKAGES =+ "libpython2"
84FILES_libpython2 = "${libdir}/libpython*"
85
86# catch debug extensions
87FILES_python-dbg += "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/.debug"
88
89# catch all the rest (unsorted)
90PACKAGES += "python-misc"
91FILES_python-misc = "${libdir}/python${PYTHON_MAJMIN}"
92
93# catch manpage
94PACKAGES += "python-man"
95FILES_python-man = "${datadir}/man"
96