wok-current view python-formalchemy/receipt @ rev 23466
updated python-beaker (1.5.4 -> 1.11.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 05 08:56:53 2020 +0100 (2020-04-05) |
parents | 6135577f4d08 |
children | 21c6ecc97dc0 |
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 python-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 }