wok view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-formalchemy"
4 SOURCE="formalchemy"
5 VERSION="1.4.2"
6 CATEGORY="development"
7 SHORT_DESC="Auto-generated, customizable HTML output form fields from SQLAlchemy mapped classes."
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="MIT"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://pypi.org/project/$SOURCE/"
12 WGET_URL="https://github.com/FormAlchemy/$SOURCE/archive/$VERSION.tar.gz"
14 DEPENDS="python python-sqlalchemy python-webhelpers python-markupsafe \
15 python-tempita python-webob"
16 BUILD_DEPENDS="python-dev setuptools wget"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 python setup.py install --root=$DESTDIR
22 for i in $install/usr/lib/python*/site-packages/formalchemy/i18n_resources/*; do
23 [ -s formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po ] &&
24 rm $i/LC_MESSAGES/formalchemy.mo &&
25 msgfmt -o $i/LC_MESSAGES/formalchemy.mo \
26 formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po
27 done
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/usr $fs
34 }