wok annotate python-bpython/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 34af7e8f2ad6
children 076f424196b2
rev   line source
claudinei@3421 1 # SliTaz package receipt.
claudinei@3421 2
claudinei@3421 3 PACKAGE="python-bpython"
Hans-G?nter@23467 4 VERSION="0.19"
claudinei@3421 5 CATEGORY="development"
claudinei@3421 6 SHORT_DESC="A fancy interface to the Python interpreter."
claudinei@3421 7 MAINTAINER="claudinei@slitaz.org"
pascal@15378 8 LICENSE="MIT"
Hans-G?nter@23467 9 WEB_SITE="https://pypi.org/project/$SOURCE/"
Hans-G?nter@23467 10
Hans-G?nter@23467 11 SOURCE="bpython"
claudinei@3421 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23467 13 WGET_URL="https://files.pythonhosted.org/packages/source/b/$SOURCE/$TARBALL"
pascal@15378 14
pascal@21581 15 DEPENDS="python python-pygments python-setuptools"
claudinei@3421 16 BUILD_DEPENDS="$DEPENDS python-dev"
claudinei@3421 17
pascal@24288 18 current_version()
pascal@24288 19 {
pascal@24288 20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
pascal@24288 21 }
pascal@24288 22
claudinei@3421 23 # Rules to configure and make the package.
claudinei@3421 24 compile_rules()
claudinei@3421 25 {
claudinei@14876 26 python setup.py install --root=$DESTDIR
claudinei@3421 27 }
claudinei@3421 28
claudinei@3421 29 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3421 30 genpkg_rules()
claudinei@3421 31 {
Hans-G?nter@23467 32 mkdir -p $fs/usr
Hans-G?nter@23467 33 mkdir -p $fs/usr/share/applications
Hans-G?nter@23467 34
Hans-G?nter@23467 35 for file in `find $install | grep 'pyc$'`
Hans-G?nter@23467 36 do
claudinei@3788 37 rm $file
Hans-G?nter@23467 38 done
claudinei@14876 39 rm -rf $install/usr/share/applications
Hans-G?nter@23467 40
Hans-G?nter@23467 41 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23467 42 cp -a $install/usr/lib $fs/usr
Hans-G?nter@23467 43 cp -a $stuff/* $fs/usr/share/applications
claudinei@3421 44 }