wok annotate 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
rev   line source
claudinei@3827 1 # SliTaz package receipt.
claudinei@3827 2
claudinei@3827 3 PACKAGE="python-formalchemy"
Hans-G?nter@23485 4 VERSION="1.5.5"
claudinei@3827 5 CATEGORY="development"
claudinei@3827 6 SHORT_DESC="Auto-generated, customizable HTML output form fields from SQLAlchemy mapped classes."
claudinei@3827 7 MAINTAINER="claudinei@slitaz.org"
pascal@15379 8 LICENSE="MIT"
Hans-G?nter@23485 9 WEB_SITE="https://pypi.org/project/FormAlchemy/"
Hans-G?nter@23485 10
Hans-G?nter@23485 11 SOURCE="FormAlchemy"
pascal@15379 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23485 13 WGET_URL="https://files.pythonhosted.org/packages/source/F/$SOURCE/$TARBALL"
pascal@15379 14
Hans-G?nter@23485 15 DEPENDS="python python-markupsafe python-sqlalchemy python-tempita
Hans-G?nter@23485 16 python-webhelpers python-webob"
Hans-G?nter@23485 17 BUILD_DEPENDS="python-dev python-setuptools"
claudinei@3827 18
pascal@24288 19 current_version()
pascal@24288 20 {
pascal@24288 21 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
pascal@24288 22 }
pascal@24288 23
claudinei@3827 24 # Rules to configure and make the package.
claudinei@3827 25 compile_rules()
claudinei@3827 26 {
claudinei@14888 27 python setup.py install --root=$DESTDIR
Hans-G?nter@23485 28 for i in $install/usr/lib/python*/site-packages/formalchemy/i18n_resources/*
Hans-G?nter@23485 29 do
pascal@20648 30 [ -s formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po ] &&
pascal@20648 31 rm $i/LC_MESSAGES/formalchemy.mo &&
pascal@20648 32 msgfmt -o $i/LC_MESSAGES/formalchemy.mo \
pascal@20648 33 formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po
Hans-G?nter@23485 34 done
claudinei@3827 35 }
claudinei@3827 36
claudinei@3827 37 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3827 38 genpkg_rules()
claudinei@3827 39 {
Hans-G?nter@23485 40 cp -a $install/usr $fs
claudinei@3827 41 }