#Maintainer: R S Ananda Murthy pkgname=matplotlib pkgver=1.1.0 pkgrel=1 zenver=72 arch=i486 source=("http://matplotlib.sf.net/Matplotlib.pdf" "http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.tar.gz") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/$pkgname docs=("install" "copying" "interactive" "*.txt" "todo" "known_bugs") url=http://matplotlib.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "matplotlib is a python 2D plotting library which produces publication" "quality figures in a variety of hardcopy formats and interactive" "environments across platforms. matplotlib can be used in python" "scripts, the python and ipython shell (ala matlab or mathematica)," "web application servers, and six graphical user interface toolkits." ) build() { cd $startdir/src/$pkgname-$pkgver python setup.py build python setup.py install --prefix=/usr --root=$startdir/pkg || return 1 rm -rf $startdir/pkg/usr/lib/python2.6/site-packages/configobj.py* mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/Matplotlib.pdf $startdir/pkg/usr/doc/$pkgname-$pkgver cp -R examples $startdir/pkg/usr/doc/$pkgname-$pkgver # Removing zero length files rm $startdir/pkg/usr/lib/python2.6/site-packages/matplotlib/backends/qt4_editor/__init__.py rm $startdir/pkg/usr/lib/python2.6/site-packages/matplotlib/testing/__init__.py }