wok annotate python-pygments/receipt @ rev 13492
Add; mondo$
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Oct 12 23:26:16 2012 +0200 (2012-10-12) |
parents | b58b3cd9098b |
children | fd4f1e692109 |
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" |
claudinei@3385 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3385 | 10 WEB_SITE="http://pygments.org" |
claudinei@3385 | 11 WGET_URL="http://pypi.python.org/packages/source/P/$SOURCE/$TARBALL" |
claudinei@3385 | 12 DEPENDS="python" |
slaxemulator@9465 | 13 BUILD_DEPENDS="setuptools" |
claudinei@3385 | 14 |
claudinei@3385 | 15 # Rules to configure and make the package. |
claudinei@3385 | 16 compile_rules() |
claudinei@3385 | 17 { |
claudinei@3385 | 18 cd $src |
slaxemulator@9465 | 19 python setup.py install --root=$DESTDIR |
claudinei@3385 | 20 } |
claudinei@3385 | 21 |
claudinei@3385 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3385 | 23 genpkg_rules() |
claudinei@3385 | 24 { |
claudinei@3385 | 25 mkdir -p $fs/usr |
claudinei@3385 | 26 cp -a $_pkg/usr $fs |
claudinei@3385 | 27 } |
claudinei@3385 | 28 |
claudinei@3404 | 29 # Remove old package. |
claudinei@3404 | 30 post_install() |
claudinei@3404 | 31 { |
claudinei@3404 | 32 rm -rf $1/var/lib/tazpkg/installed/pygments |
claudinei@4668 | 33 } |