wok view python-formalchemy/receipt @ rev 24091
get-pcem-roms: version less
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 17 19:56:00 2021 +0000 (2021-07-17) |
parents | 814362194a8d |
children | 1df6fa555414 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-formalchemy"
4 VERSION="1.5.5"
5 CATEGORY="development"
6 SHORT_DESC="Auto-generated, customizable HTML output form fields from SQLAlchemy mapped classes."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/FormAlchemy/"
11 SOURCE="FormAlchemy"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/F/$SOURCE/$TARBALL"
15 DEPENDS="python python-markupsafe python-sqlalchemy python-tempita
16 python-webhelpers python-webob"
17 BUILD_DEPENDS="python-dev python-setuptools"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 python setup.py install --root=$DESTDIR
23 for i in $install/usr/lib/python*/site-packages/formalchemy/i18n_resources/*
24 do
25 [ -s formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po ] &&
26 rm $i/LC_MESSAGES/formalchemy.mo &&
27 msgfmt -o $i/LC_MESSAGES/formalchemy.mo \
28 formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po
29 done
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 }