wok-6.x annotate python-pygments/receipt @ rev 15872

Up: lz4 (112) add lz4c, lib and dev packages
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 02 21:26:43 2014 +0100 (2014-02-02)
parents ab9c59834e71
children 313b384e2a06
rev   line source
claudinei@3385 1 # SliTaz package receipt.
claudinei@3385 2
claudinei@3385 3 PACKAGE="python-pygments"
claudinei@3385 4 SOURCE="Pygments"
slaxemulator@9465 5 VERSION="1.4"
claudinei@3385 6 CATEGORY="development"
claudinei@3385 7 SHORT_DESC="Generic syntax highlighter."
claudinei@3385 8 MAINTAINER="claudinei@slitaz.org"
pascal@15378 9 LICENSE="BSD"
claudinei@3385 10 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3385 11 WEB_SITE="http://pygments.org"
claudinei@3385 12 WGET_URL="http://pypi.python.org/packages/source/P/$SOURCE/$TARBALL"
pascal@15378 13
claudinei@3385 14 DEPENDS="python"
slaxemulator@9465 15 BUILD_DEPENDS="setuptools"
claudinei@3385 16
claudinei@3385 17 # Rules to configure and make the package.
claudinei@3385 18 compile_rules()
claudinei@3385 19 {
claudinei@3385 20 cd $src
slaxemulator@9465 21 python setup.py install --root=$DESTDIR
claudinei@3385 22 }
claudinei@3385 23
claudinei@3385 24 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3385 25 genpkg_rules()
claudinei@3385 26 {
claudinei@3385 27 mkdir -p $fs/usr
pascal@15378 28 cp -a $install/usr $fs
claudinei@3385 29 }
claudinei@3385 30
claudinei@3404 31 # Remove old package.
claudinei@3404 32 post_install()
claudinei@3404 33 {
claudinei@3404 34 rm -rf $1/var/lib/tazpkg/installed/pygments
claudinei@4668 35 }