wok-next annotate python-egenix-mx-base/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
rev   line source
al@20977 1 # SliTaz package receipt v2.
al@20977 2
al@20977 3 ORIGIN="egenix-mx-base"
al@20977 4 PACKAGE="python-egenix-mx-base"
al@20977 5 VERSION="3.2.9"
al@20977 6 CATEGORY="python"
al@20977 7 SHORT_DESC="eGenix.com mx Extension series"
al@20977 8 MAINTAINER="pascal.bellard@slitaz.org"
al@20977 9 LICENSE="PSL"
al@20977 10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
al@20977 11 #HOST_ARCH
al@20977 12 REPOLOGY="python:egenix-mx-base"
al@20977 13
al@20977 14 # pip produce syntax error, use tarball method instead
al@20977 15 TARBALL="$ORIGIN-$VERSION.tar.gz"
al@20977 16 WGET_URL="http://downloads.egenix.com/python/$TARBALL"
al@20977 17
al@20977 18 BUILD_DEPENDS="python-dev"
al@20977 19 SPLIT="$PACKAGE-dev"
al@20977 20
al@20977 21 compile_rules() {
al@20977 22 # Python3 based compilation produce error
al@20977 23 python -B setup.py install --root=$install || return 1
al@20977 24
al@20977 25 # move documentation
al@20977 26 docdir="$install/usr/share/doc/$PACKAGE-$VERSION/"
al@20977 27 mkdir -p $docdir
al@20977 28 find $install -type f -name '*.pdf' -exec mv '{}' $docdir \;
al@20977 29 find $install -type d -name 'Doc' | xargs rmdir
al@20977 30
al@20977 31 # fix permissions
al@20977 32 find $install -type f -exec chmod g-w,o+r '{}' \; # 664->644; 640->644
al@20977 33 }
al@20977 34
al@20977 35 genpkg_rules() {
al@20977 36 case $PACKAGE in
al@20977 37 *-dev)
al@20977 38 copy @dev
al@20977 39 ;;
al@20977 40 *)
al@20977 41 copy @std
al@20977 42 DEPENDS="python"
al@20977 43 ;;
al@20977 44 esac
al@20977 45 }