wok view python-formalchemy/receipt @ rev 20648

Up zstd (1.3.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 12 12:12:27 2019 +0100 (6 months ago)
parents 16df76e1fc6a
children 6135577f4d08
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="http://docs.formalchemy.org"
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 }