wok-current annotate python-formalchemy/receipt @ rev 24765
afpfs-ng,btfs,curlftpfs,ddumbfs,djmount,encfs,exfat-utils,fusecloop,fusedav,fuseiso,httpfs2-fuse: try fuse2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 18 17:45:47 2022 +0000 (2022-03-18) |
parents | 1df6fa555414 |
children | 5c893733007e |
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@24383 | 19 # What is the latest version available today? |
pascal@24288 | 20 current_version() |
pascal@24288 | 21 { |
pascal@24383 | 22 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 23 } |
pascal@24288 | 24 |
claudinei@3827 | 25 # Rules to configure and make the package. |
claudinei@3827 | 26 compile_rules() |
claudinei@3827 | 27 { |
claudinei@14888 | 28 python setup.py install --root=$DESTDIR |
Hans-G?nter@23485 | 29 for i in $install/usr/lib/python*/site-packages/formalchemy/i18n_resources/* |
Hans-G?nter@23485 | 30 do |
pascal@20648 | 31 [ -s formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po ] && |
pascal@20648 | 32 rm $i/LC_MESSAGES/formalchemy.mo && |
pascal@20648 | 33 msgfmt -o $i/LC_MESSAGES/formalchemy.mo \ |
pascal@20648 | 34 formalchemy/i18n_resources/$(basename $i)/LC_MESSAGES/formalchemy.po |
Hans-G?nter@23485 | 35 done |
claudinei@3827 | 36 } |
claudinei@3827 | 37 |
claudinei@3827 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3827 | 39 genpkg_rules() |
claudinei@3827 | 40 { |
Hans-G?nter@23485 | 41 cp -a $install/usr $fs |
claudinei@3827 | 42 } |