summaryrefslogtreecommitdiff
path: root/classes/distutils.bbclass
blob: c07a9911cd26fac1052293844e787645c7063826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
inherit distutils-base

distutils_do_compile() {
         BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
         ${STAGING_BINDIR_NATIVE}/python setup.py build || \
         oefatal "python setup.py build_ext execution failed."
}

distutils_stage_headers() {
        BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
        ${STAGING_BINDIR_NATIVE}/python setup.py install_headers --install-dir=${STAGING_INCDIR}/${PYTHON_DIR} || \
        oefatal "python setup.py install_headers execution failed."
}

distutils_stage_all() {
        install -d ${STAGING_INCDIR}/../${PYTHON_DIR}/site-packages
        PYTHONPATH=${STAGING_INCDIR}/../${PYTHON_DIR}/site-packages \
        BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
        ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${STAGING_INCDIR}/.. --install-data=${STAGING_INCDIR}/../share || \
        oefatal "python setup.py install (stage) execution failed."
}

distutils_do_install() {
        install -d ${D}${libdir}/${PYTHON_DIR}/site-packages
        PYTHONPATH=${D}/${libdir}/${PYTHON_DIR}/site-packages \
        BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
        ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${datadir} || \
        oefatal "python setup.py install execution failed."

        for i in `find ${D} -name "*.py"` ; do \
            sed -i -e s:${D}::g $i
        done

        if test -e ${D}${bindir} ; then	
            for i in ${D}${bindir}/* ; do \
                sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
            done
        fi

        if test -e ${D}${sbindir} ; then
            for i in ${D}${sbindir}/* ; do \
                sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
            done
        fi

	rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/easy-install.pth
}

EXPORT_FUNCTIONS do_compile do_install
-1.0/configure.patch137
-rw-r--r--adns/adns-1.0/fixparsedomainflags.patch11
-rw-r--r--apache/apache-2.0.48/configure.patch390
-rw-r--r--apache/apache-2.0.48/pcre-configure.patch36
-rw-r--r--apmd/apmd-3.2.2/apmd_proxy91
-rw-r--r--apmd/apmd-3.2.2/apmwrapper9
-rw-r--r--apmd/apmd-3.2.2/debian.patch54
-rw-r--r--apmd/apmd-3.2.2/default8
-rw-r--r--apmd/apmd-3.2.2/devfs.patch11
-rw-r--r--apmd/apmd-3.2.2/hwclock16
-rw-r--r--apmd/apmd-3.2.2/init44
-rw-r--r--apmd/apmd-3.2.2/logcheck.ignore.paranoid13
-rw-r--r--apmd/apmd-3.2.2/workaround.patch55
-rw-r--r--application-registry/application-registry-0.1/abiword.applications7
-rw-r--r--application-registry/application-registry-0.1/firefox.applications8
-rw-r--r--application-registry/application-registry-0.1/gnumeric.applications7
-rw-r--r--application-registry/application-registry-0.1/gpe-calendar.applications7
-rw-r--r--application-registry/application-registry-0.1/gpe-contacts.applications7
-rw-r--r--application-registry/application-registry-0.1/ipkg.applications7
-rw-r--r--appweb/appweb-1.0.0/charsignedness.patch11
-rw-r--r--appweb/appweb-1.0.0/makerules.patch23
-rw-r--r--appweb/appweb-1.0.1/charsignedness.patch11
-rw-r--r--appweb/appweb-1.0.1/makerules.patch23
-rw-r--r--appweb/appweb-1.0.2/charsignedness.patch11
-rw-r--r--appweb/appweb-1.0.2/makerules.patch23
-rw-r--r--appweb/appweb-1.2.0/makerules.patch34
-rw-r--r--appweb/appweb-1.2.0/nonrootinstall.patch57
-rw-r--r--aspell/aspell-0.50.5/makefile.patch20
-rw-r--r--aspell/aspell-0.50.5/mk-dirs_h.py20
-rw-r--r--at/at-3.1.8/configure.patch54
-rw-r--r--at/at-3.1.8/nonrootinstall.patch80
-rw-r--r--atk/atk-1.2.0/m4.patch2458
-rw-r--r--atk/atk-1.6.0/gtk-doc.patch56
-rw-r--r--atmelwlandriver/atmelwlandriver-3.3.5.6/dotconfig31
-rw-r--r--atmelwlandriver/atmelwlandriver-3.3.5.6/makefile.patch16
-rw-r--r--aumix/aumix-2.8/configure.patch28
-rw-r--r--autoconf/autoconf-2.57/program_prefix.patch19
-rw-r--r--autoconf/autoconf-2.59/autoconf259-update-configscripts.patch393
-rw-r--r--autoconf/autoconf-2.59/autoheader-nonfatal-warnings.patch13
-rw-r--r--autoconf/autoconf-2.59/autoreconf-exclude.patch125
-rw-r--r--autoconf/autoconf-2.59/autoreconf-gnuconfigize.patch47
-rw-r--r--autoconf/autoconf-2.59/program_prefix.patch19
-rw-r--r--autofs/autofs-4.1.3/cross.patch32
-rw-r--r--automake/automake-1.8.2/automake182-update-configscripts.patch201
-rw-r--r--avr-libc/avr-libc-1.0.3/configure.patch57
-rw-r--r--balsa/balsa-2.0.17/desktop-file-fix.patch8
-rw-r--r--balsa/balsa-2.0.17/libmutt-cross.patch20
-rw-r--r--base-files/base-files/beagle/filesystems4
-rw-r--r--base-files/base-files/collie/usbd1
-rw-r--r--base-files/base-files/corgi/usbd1
-rw-r--r--base-files/base-files/epia/fstab4
-rw-r--r--base-files/base-files/familiar/issue2
-rw-r--r--base-files/base-files/familiar/issue.net3
-rw-r--r--base-files/base-files/filesystems6
-rw-r--r--base-files/base-files/husky/usbd1
-rw-r--r--base-files/base-files/inputrc61
-rw-r--r--base-files/base-files/jornada56x/fstab6
-rw-r--r--base-files/base-files/licenses/Artistic131
-rw-r--r--base-files/base-files/licenses/BSD26
-rw-r--r--base-files/base-files/licenses/GPL-2340
-rw-r--r--base-files/base-files/licenses/LGPL-2481
-rw-r--r--base-files/base-files/licenses/LGPL-2.1510
-rw-r--r--base-files/base-files/mtx-1/fstab8
-rw-r--r--base-files/base-files/mtx-1/profile25
-rw-r--r--base-files/base-files/nylon/issue2
-rw-r--r--base-files/base-files/nylon/issue.net3
-rw-r--r--base-files/base-files/opensimpad/issue2
-rw-r--r--base-files/base-files/opensimpad/issue.net2
-rw-r--r--base-files/base-files/poodle/usbd1
-rw-r--r--base-files/base-files/profile27
-rw-r--r--base-files/base-files/ramses/issue2
-rw-r--r--base-files/base-files/ramses/issue.net2
-rw-r--r--base-files/base-files/ramses/profile25
-rw-r--r--base-files/base-files/ramses/usbd1
-rw-r--r--base-files/base-files/share/dot.bashrc16
-rw-r--r--base-files/base-files/shepherd/usbd1
-rw-r--r--base-files/base-files/simpad/fstab6
-rw-r--r--base-files/base-files/tosa/usbd1
-rw-r--r--base-files/base-files/xxs1500/fstab8
-rw-r--r--base-passwd/base-passwd-3.5.7/configure.patch23
-rw-r--r--base-passwd/base-passwd-3.5.7/nobash.patch13
-rw-r--r--bash-completion/files/bash_completion.sh12
-rw-r--r--bash/bash-2.05b/bash205b-001.patch15
-rw-r--r--bash/bash-2.05b/bash205b-002.patch10
-rw-r--r--bash/bash-2.05b/bash205b-003.patch39
-rw-r--r--bash/bash-2.05b/bash205b-004.patch22
-rw-r--r--bash/bash-2.05b/bash205b-005.patch68
-rw-r--r--bash/bash-2.05b/bash205b-006.patch90
-rw-r--r--bash/bash-2.05b/bash205b-007.patch31
-rw-r--r--bash/bash-2.05b/bashbug-editor.patch10
-rw-r--r--bash/bash-2.05b/builtins-shift.patch11
-rw-r--r--bash/bash-2.05b/deb-bash-config.patch45
-rw-r--r--bash/bash-2.05b/deb-examples.patch9
-rw-r--r--bash/bash-2.05b/execute-cmd.patch102
-rw-r--r--bash/bash-2.05b/gcc34.patch16
-rw-r--r--bash/bash-2.05b/mailcheck.patch82
-rw-r--r--bash/bash-2.05b/man-arithmetic.patch12
-rw-r--r--bash/bash-2.05b/man-bashrc.patch62
-rw-r--r--bash/bash-2.05b/man-fignore.patch13
-rw-r--r--bash/bash-2.05b/privmode.patch11
-rw-r--r--bash/bash-2.05b/rbash-login-shell.patch20
-rw-r--r--bash/bash-2.05b/rbash-manpage.patch10
-rw-r--r--bash/bash-2.05b/report-155436.patch11
-rw-r--r--bash/bash-2.05b/rl-8bit-init.patch12
-rw-r--r--bash/bash-2.05b/rl-del-backspace-policy.patch28
-rw-r--r--bash/bash-2.05b/rl-examples.patch24
-rw-r--r--bash/bash-2.05b/rl-inputrc.patch70
-rw-r--r--bash/bash-2.05b/rl-slow-multibyte.patch49
-rw-r--r--bash/bash-2.05b/s390-build.patch46
-rw-r--r--bash/bash-2.05b/suspend-segfault.patch11
-rw-r--r--bash/bash-2.05b/various.patch10
-rw-r--r--beepmp/beepmp/bugfix.patch11
-rw-r--r--binutils/binutils-2.14.90.0.6/binutils-uclibc-100-conf.patch646
-rw-r--r--binutils/binutils-2.14.90.0.6/binutils-uclibc-200-build_modules.patch31
-rw-r--r--binutils/binutils-2.14.90.0.6/binutils-uclibc-210-cflags.patch32
-rw-r--r--binutils/binutils-2.14.90.0.7/binutils-2.15.90.0.3-uclibc-100-conf.patch600
-rw-r--r--binutils/binutils-2.14.90.0.7/binutils-2.15.90.0.3-uclibc-200-build_modules.patch28
-rw-r--r--binutils/binutils-2.14.90.0.7/binutils-2.15.90.0.3-uclibc-210-cflags.patch30
-rw-r--r--binutils/binutils-2.14.90.0.7/binutils-petypes.patch30
-rw-r--r--binutils/binutils-2.14.90.0.7/binutils-uclibc-100-conf.patch638
-rw-r--r--binutils/binutils-2.14.90.0.7/binutils-uclibc-200-build_modules.patch31
-rw-r--r--binutils/binutils-2.14.90.0.7/binutils-uclibc-210-cflags.patch32
-rw-r--r--binutils/binutils-2.14.90.0.7/binutils-undefsym.patch49
-rw-r--r--binutils/binutils-2.15.90.0.3/600-arm-textrel.patch63
-rw-r--r--binutils/binut