wokkel: add distuilscross and distribute support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-19 20:28:48 +02:00
parent 81a982b07b
commit 44d3bbe17c
2 changed files with 8 additions and 8 deletions

View File

@ -1,16 +1,16 @@
#!/bin/sh #!/bin/sh
. config/options $1 . config/options $1
. config/options.python
export PYTHONXCPREFIX="$SYSROOT_PREFIX/usr"
export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/lib"
cd $PKG_BUILD cd $PKG_BUILD
$PYTHON setup.py build python setup.py build --cross-compile
python setup.py install -O1 --skip-build --prefix /usr --root .install
$PYTHON setup.py install -O1 --skip-build --root $SYSROOT_PREFIX --prefix /usr
$PYTHON setup.py install -O1 --skip-build --root ./.install --prefix /usr
find .install -name "*.py" -exec rm -rf "{}" ";" find .install -name "*.py" -exec rm -rf "{}" ";"
find .install -name "*.pyo" -exec rm -rf "{}" ";" find .install -name "*.pyo" -exec rm -rf "{}" ";"
rm -rf .install/usr/lib/python*/site-packages/wokkel/test rm -rf .install/usr/lib/python*/site-packages/wokkel/test

View File

@ -5,8 +5,8 @@ PKG_ARCH="any"
PKG_LICENSE="free" PKG_LICENSE="free"
PKG_SITE="http://wokkel.ik.nu/" PKG_SITE="http://wokkel.ik.nu/"
PKG_URL="http://wokkel.ik.nu/releases/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz" PKG_URL="http://wokkel.ik.nu/releases/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="Python setuptools TwistedWords" PKG_DEPENDS="Python distribute TwistedWords"
PKG_BUILD_DEPENDS="toolchain Python setuptools TwistedWords" PKG_BUILD_DEPENDS="toolchain Python distribute distutilscross TwistedWords"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="python/web" PKG_SECTION="python/web"
PKG_SHORTDESC="wokkel: Wokkel is a Python module for experimenting with future enhancements to TwistedWords" PKG_SHORTDESC="wokkel: Wokkel is a Python module for experimenting with future enhancements to TwistedWords"