# SliTaz package receipt.

PACKAGE="matplotlib"
VERSION="1.0.0"
CATEGORY="graphics"
SHORT_DESC="2D plotting library for the Python."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://matplotlib.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
DEPENDS="python zlib libpng freetype python-numpy gtk+ expat xorg-libXau \
xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes \
xorg-libXinerama xorg-libXrandr xorg-libXrender pygtk gcc-lib-base"
BUILD_DEPENDS="python python-dev zlib-dev libpng-dev freetype-dev python-numpy \
pygtk-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	cp -a $stuff/setup.cfg .
	python setup.py build
	python setup.py install --root=$PWD/_pkg
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
}