I discovered that there was no pygoocanvas package for maemo and decided to create one of my own. The steps I did are given below. Can someone point me to a description of how I can convert these steps into the the creation of a .deb package.
1. In scratchbox on my linux box in FREMANTLE_ARMEL mode:
PHP Code:
wget http://ftp.gnome.org/pub/GNOME/sources/pygoocanvas/0.14/pygoocanvas-0.14.0.tar.bz2
tar -xf pygoocanvas-0.14.0.tar.bz2
cd pygoocanvas-0.14.0
patch -p1 < ../pygoocanvas-maemo.patch
env PYTHON=python2.5 ./configure
make install
python_path=`dirname $PYTHON | sed "s,/bin.*$,,"`
- for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
+ for i in "/usr/lib/python2.5/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
if test -e "$i"; then
python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
if test -n "$python_path" ; then
2. On my n900 phone
PHP Code:
sudo gain-root
cd /opt/maemo/usr/lib/python2.5/site-packages
rsync scp dov@linuxbox:/space/scratchbox/users/dov/targets/FREMANTLE_ARMEL/usr/local/lib/python2.5/site-packages/gooca* .
cd /usr/lib/python2.5/site-packages
ln -s /opt/maemo/usr/lib/python2.5/site-packages/goocanvasmodule.so
1. In scratchbox on my linux box in FREMANTLE_ARMEL mode:
wget http://ftp.gnome.org/pub/GNOME/sources/pygoocanvas/0.14/pygoocanvas-0.14.0.tar.bz2
tar -xf pygoocanvas-0.14.0.tar.bz2
cd pygoocanvas-0.14.0
patch -p1 < ../pygoocanvas-maemo.patch
env PYTHON=python2.5 ./configure
make install
diff -u pygoocanvas-0.14.0.org/configure pygoocanvas-0.14.0/configure
--- pygoocanvas-0.14.0.org/configure 2009-03-17 23:28:37.000000000 +0200
+++ pygoocanvas-0.14.0/configure 2011-11-24 20:36:52.344414853 +0200
@@ -11475,7 +11475,7 @@
WIN32_PYTHON_VERSION=`echo $PYTHON_VERSION | sed "s,\.,,"`
python_path=`dirname $PYTHON | sed "s,/bin.*$,,"`
- for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
+ for i in "/usr/lib/python2.5/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
if test -e "$i"; then
python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
if test -n "$python_path" ; then
sudo gain-root
cd /opt/maemo/usr/lib/python2.5/site-packages
rsync scp dov@linuxbox:/space/scratchbox/users/dov/targets/FREMANTLE_ARMEL/usr/local/lib/python2.5/site-packages/gooca* .
cd /usr/lib/python2.5/site-packages
ln -s /opt/maemo/usr/lib/python2.5/site-packages/goocanvasmodule.so
Dov
Last edited by dov; 2011-11-24 at 19:15.