# SliTaz package receipt.

PACKAGE="python-antlr"
SOURCE="antlr"
VERSION="3.4"
CATEGORY="development"
SHORT_DESC="language tool for constructing recognizers, compilers for python."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.antlr.org/"
WGET_URL="${WEB_SITE}download/$TARBALL"

DEPENDS="python"
BUILD_DEPENDS="python python-dev setuptools"

# Rules to configure and make the package.
compile_rules()
{
	cd $src/runtime/Python
	python setup.py build
	python setup.py install --root=$DESTDIR
}

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