wok view python-formalchemy/receipt @ rev 24288

fail2ban: add log4j-jndi.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 13 18:29:05 2022 +0000 (2022-01-13)
parents 21c6ecc97dc0
children 076f424196b2
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 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py install --root=$DESTDIR
28 for i in $install/usr/lib/python*/site-packages/formalchemy/i18n_resources/*
29 do
30 [ -s formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po ] &&
31 rm $i/LC_MESSAGES/formalchemy.mo &&
32 msgfmt -o $i/LC_MESSAGES/formalchemy.mo \
33 formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po
34 done
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }