wok-next diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-egenix-mx-base/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +ORIGIN="egenix-mx-base"
     1.7 +PACKAGE="python-egenix-mx-base"
     1.8 +VERSION="3.2.9"
     1.9 +CATEGORY="python"
    1.10 +SHORT_DESC="eGenix.com mx Extension series"
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +LICENSE="PSL"
    1.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.14 +#HOST_ARCH
    1.15 +REPOLOGY="python:egenix-mx-base"
    1.16 +
    1.17 +# pip produce syntax error, use tarball method instead
    1.18 +TARBALL="$ORIGIN-$VERSION.tar.gz"
    1.19 +WGET_URL="http://downloads.egenix.com/python/$TARBALL"
    1.20 +
    1.21 +BUILD_DEPENDS="python-dev"
    1.22 +SPLIT="$PACKAGE-dev"
    1.23 +
    1.24 +compile_rules() {
    1.25 +	# Python3 based compilation produce error
    1.26 +	python -B setup.py install --root=$install || return 1
    1.27 +
    1.28 +	# move documentation
    1.29 +	docdir="$install/usr/share/doc/$PACKAGE-$VERSION/"
    1.30 +	mkdir -p $docdir
    1.31 +	find $install -type f -name '*.pdf' -exec mv '{}' $docdir \;
    1.32 +	find $install -type d -name 'Doc' | xargs rmdir
    1.33 +
    1.34 +	# fix permissions
    1.35 +	find $install -type f -exec chmod g-w,o+r '{}' \; # 664->644; 640->644
    1.36 +}
    1.37 +
    1.38 +genpkg_rules() {
    1.39 +	case $PACKAGE in
    1.40 +		*-dev)
    1.41 +			copy @dev
    1.42 +			;;
    1.43 +		*)
    1.44 +			copy @std
    1.45 +			DEPENDS="python"
    1.46 +			;;
    1.47 +	esac
    1.48 +}