python: Drop staging functions. If failures occur we just need to improve do_install
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
5716a14bf4
commit
47c19bb87a
|
@ -16,10 +16,6 @@ export HOST_SYS
|
|||
export STAGING_LIBDIR
|
||||
export STAGING_INCDIR
|
||||
|
||||
do_stage() {
|
||||
autotools_stage_all
|
||||
}
|
||||
|
||||
RDEPENDS = "python-io python-logging python-stringold python-threading python-xml"
|
||||
|
||||
FILES_${PN}-dev += "${libdir}/pkgconfig
|
||||
|
|
|
@ -2,9 +2,5 @@ require python-iniparse_${PV}.bb
|
|||
inherit native
|
||||
DEPENDS = "python-native"
|
||||
RDEPENDS = ""
|
||||
NATIVE_INSTALL_WORKS = "1"
|
||||
|
||||
do_stage() {
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
|
||||
}
|
||||
|
|
|
@ -10,10 +10,3 @@ S = "${WORKDIR}/pycairo-${PV}"
|
|||
|
||||
inherit distutils pkgconfig
|
||||
|
||||
do_stage() {
|
||||
install -d ${STAGING_INCDIR}
|
||||
install -m 0644 cairo/pycairo.h ${STAGING_INCDIR}
|
||||
|
||||
# nasty pkgconfig fix necessary here
|
||||
sed -i -e s,${STAGING_DIR_NATIVE},, pycairo.pc
|
||||
}
|
||||
|
|
|
@ -7,12 +7,14 @@ PARALLEL_MAKE = ""
|
|||
|
||||
inherit native
|
||||
|
||||
NATIVE_INSTALL_WORKS = "1"
|
||||
|
||||
SRC_URI = "\
|
||||
ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
|
||||
# file://python-path.patch;patch=1 \
|
||||
"
|
||||
|
||||
do_stage_append() {
|
||||
install -d ${STAGING_BINDIR}
|
||||
install -m 0755 gobject/generate-constants ${STAGING_BINDIR}/gobject-generate-constants
|
||||
do_install_append() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 gobject/generate-constants ${D}${bindir}/gobject-generate-constants
|
||||
}
|
||||
|
|
|
@ -22,14 +22,6 @@ export HOST_SYS
|
|||
export STAGING_INCDIR
|
||||
export STAGING_LIBDIR
|
||||
|
||||
do_stage() {
|
||||
autotools_stage_all
|
||||
install -d ${STAGING_LIBDIR}/../share/pygobject/
|
||||
cp -dpfR docs/* ${STAGING_LIBDIR}/../share/pygobject/
|
||||
install -d ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
|
||||
cp docs/style.css ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
|
||||
}
|
||||
|
||||
PACKAGES += "${PN}-lib"
|
||||
|
||||
RDEPENDS_${PN} += "python-textutils"
|
||||
|
|
|
@ -49,13 +49,3 @@ FILES_${PN}-dev += "\
|
|||
${bindir}/pygtk-* \
|
||||
${datadir}/pygtk/2.0"
|
||||
|
||||
do_stage() {
|
||||
autotools_stage_includes
|
||||
sed -i s:/usr/share:${STAGING_DATADIR}: codegen/pygtk-codegen-2.0
|
||||
install -m 0755 codegen/pygtk-codegen-2.0 ${STAGING_BINDIR_NATIVE}/
|
||||
install -d ${STAGING_DATADIR}/pygtk/2.0/codegen
|
||||
install -d ${STAGING_DATADIR}/pygtk/2.0/defs/
|
||||
cp -pPr codegen/*.py* ${STAGING_DATADIR}/pygtk/2.0/codegen/
|
||||
cp -pPr *.defs ${STAGING_DATADIR}/pygtk/2.0/defs/
|
||||
cp -pPr gtk/*.defs ${STAGING_DATADIR}/pygtk/2.0/defs/
|
||||
}
|
||||
|
|
|
@ -3,8 +3,4 @@ inherit native
|
|||
DEPENDS = "python-native"
|
||||
RDEPENDS = ""
|
||||
|
||||
do_stage() {
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
|
||||
}
|
||||
NATIVE_INSTALL_WORKS = "1"
|
||||
|
|
|
@ -5,7 +5,7 @@ SECTION = "devel/python"
|
|||
PRIORITY = "optional"
|
||||
LICENSE = "GPL"
|
||||
SRCNAME = "Pyrex"
|
||||
PR = "ml1"
|
||||
PR = "ml2"
|
||||
|
||||
SRC_URI = "\
|
||||
http://www.cosc.canterbury.ac.nz/greg.ewing/python/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \
|
||||
|
|
|
@ -3,14 +3,5 @@ inherit native
|
|||
DEPENDS = "python-native"
|
||||
RDEPENDS = ""
|
||||
|
||||
do_stage() {
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} \
|
||||
STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_LIBDIR}/.. --install-data=${STAGING_DATADIR} || \
|
||||
oefatal "python setup.py install execution failed."
|
||||
}
|
||||
NATIVE_INSTALL_WORKS = "1"
|
||||
|
||||
do_install() {
|
||||
:
|
||||
}
|
||||
|
|
|
@ -3,8 +3,5 @@ inherit native
|
|||
DEPENDS = "python-native"
|
||||
RDEPENDS = ""
|
||||
|
||||
do_stage() {
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
|
||||
}
|
||||
NATIVE_INSTALL_WORKS = "1"
|
||||
|
||||
|
|
|
@ -5,8 +5,4 @@ RDEPENDS = ""
|
|||
|
||||
#BUILD_CFLAGS += "-I${STAGING_LIBDIR}/glib-2.0"
|
||||
|
||||
do_stage() {
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR}
|
||||
}
|
||||
NATIVE_INSTALL_WORKS = "1"
|
||||
|
|
Loading…
Reference in New Issue