From 20275b2e38affd1a67bd59dce87d81f266d5cc21 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 19 Oct 2010 20:30:11 +0200 Subject: [PATCH] yenc: add distutilscross and distribute support Signed-off-by: Stephan Raue --- packages/python/system/yenc/build | 10 ++++++---- packages/python/system/yenc/install | 1 + .../python/system/yenc/patches/yenc-setuptools.diff | 13 +++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 packages/python/system/yenc/patches/yenc-setuptools.diff diff --git a/packages/python/system/yenc/build b/packages/python/system/yenc/build index c338b2b40d..76397f3922 100755 --- a/packages/python/system/yenc/build +++ b/packages/python/system/yenc/build @@ -4,14 +4,16 @@ $SCRIPTS/build toolchain $SCRIPTS/build Python +$SCRIPTS/build distribute +$SCRIPTS/build distutilscross -. config/options.python +export PYTHONXCPREFIX="$SYSROOT_PREFIX/usr" +export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/lib" cd $PKG_BUILD -$PYTHON setup.py build - -$PYTHON setup.py install -O1 --skip-build --prefix /usr --root .install +python setup.py build --cross-compile +python setup.py install -O1 --skip-build --prefix /usr --root .install find .install -name "*.py" -exec rm -rf "{}" ";" find .install -name "*.pyo" -exec rm -rf "{}" ";" diff --git a/packages/python/system/yenc/install b/packages/python/system/yenc/install index daa797322c..4d0a7235de 100755 --- a/packages/python/system/yenc/install +++ b/packages/python/system/yenc/install @@ -3,5 +3,6 @@ . config/options $1 $SCRIPTS/install Python +$SCRIPTS/install distribute cp -PR $PKG_BUILD/.install/* $INSTALL diff --git a/packages/python/system/yenc/patches/yenc-setuptools.diff b/packages/python/system/yenc/patches/yenc-setuptools.diff new file mode 100644 index 0000000000..a5c5b92e1c --- /dev/null +++ b/packages/python/system/yenc/patches/yenc-setuptools.diff @@ -0,0 +1,13 @@ +diff -Naur yenc-0.3/setup.py yenc-0.3.patch/setup.py +--- yenc-0.3/setup.py 2008-06-13 16:17:21.000000000 +0200 ++++ yenc-0.3.patch/setup.py 2010-10-19 00:20:41.249504605 +0200 +@@ -25,8 +25,7 @@ + ##============================================================================= + + +- +-from distutils.core import setup, Extension ++from setuptools import setup, Extension + + setup( + name = "yenc",