wok-current annotate python-formalchemy/receipt @ rev 20679
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 26 12:26:47 2019 +0100 (2019-01-26) |
parents | 8e17dd3d81ee |
children | 814362194a8d |
rev | line source |
---|---|
claudinei@3827 | 1 # SliTaz package receipt. |
claudinei@3827 | 2 |
claudinei@3827 | 3 PACKAGE="python-formalchemy" |
claudinei@14888 | 4 SOURCE="formalchemy" |
claudinei@14888 | 5 VERSION="1.4.2" |
claudinei@3827 | 6 CATEGORY="development" |
claudinei@3827 | 7 SHORT_DESC="Auto-generated, customizable HTML output form fields from SQLAlchemy mapped classes." |
claudinei@3827 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15379 | 9 LICENSE="MIT" |
pascal@15379 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20679 | 11 WEB_SITE="https://pypi.org/project/$SOURCE/" |
pascal@15379 | 12 WGET_URL="https://github.com/FormAlchemy/$SOURCE/archive/$VERSION.tar.gz" |
pascal@15379 | 13 |
claudinei@14888 | 14 DEPENDS="python python-sqlalchemy python-webhelpers python-markupsafe \ |
claudinei@14888 | 15 python-tempita python-webob" |
claudinei@14888 | 16 BUILD_DEPENDS="python-dev setuptools wget" |
claudinei@3827 | 17 |
claudinei@3827 | 18 # Rules to configure and make the package. |
claudinei@3827 | 19 compile_rules() |
claudinei@3827 | 20 { |
claudinei@14888 | 21 python setup.py install --root=$DESTDIR |
pascal@20648 | 22 for i in $install/usr/lib/python*/site-packages/formalchemy/i18n_resources/*; do |
pascal@20648 | 23 [ -s formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po ] && |
pascal@20648 | 24 rm $i/LC_MESSAGES/formalchemy.mo && |
pascal@20648 | 25 msgfmt -o $i/LC_MESSAGES/formalchemy.mo \ |
pascal@20648 | 26 formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po |
pascal@20648 | 27 done |
claudinei@3827 | 28 } |
claudinei@3827 | 29 |
claudinei@3827 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3827 | 31 genpkg_rules() |
claudinei@3827 | 32 { |
al@18077 | 33 cp -a $install/usr $fs |
claudinei@3827 | 34 } |