wok-next annotate python-pygments/receipt @ rev 20732
Some python-* packaged using pip: actualize $VERSION in genpkg_rules()
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 17:01:41 2018 +0300 (2018-05-29) |
parents | 6c73b944e8dd |
children | 92698cd69f34 |
rev | line source |
---|---|
al@19763 | 1 # SliTaz package receipt v2. |
claudinei@3385 | 2 |
claudinei@3385 | 3 PACKAGE="python-pygments" |
al@20732 | 4 VERSION="latest" |
claudinei@3385 | 5 CATEGORY="development" |
al@16776 | 6 SHORT_DESC="Generic syntax highlighter" |
claudinei@3385 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15378 | 8 LICENSE="BSD" |
al@19763 | 9 WEB_SITE="https://pypi.python.org/pypi/Pygments" |
pascal@15378 | 10 |
al@20444 | 11 BUILD_DEPENDS="python" |
claudinei@3385 | 12 |
al@20443 | 13 compile_rules() { |
al@19763 | 14 pip install --no-compile --root=$DESTDIR Pygments |
claudinei@3385 | 15 } |
claudinei@3385 | 16 |
al@20443 | 17 genpkg_rules() { |
al@20732 | 18 VERSION=$(sed -n '/^Successfully installed/ s|.*Pygments-||p' $LOGS/$PACKAGE.log) |
al@19763 | 19 copy @std |
al@19763 | 20 DEPENDS="python" |
claudinei@3385 | 21 } |