wok-next view python-pycairo/receipt @ rev 21066
Switch some python packages to traditional build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 06 13:30:23 2018 +0200 (2018-12-06) |
parents | c9a7a7b42a86 |
children | 0f7ebcdec85d |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="pycairo"
4 PACKAGE="python-pycairo"
5 VERSION="1.17.1"
6 CATEGORY="python"
7 SHORT_DESC="Python interface for cairo"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="MPL LGPL2.1"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH
12 REPOLOGY="python:pycairo"
14 BUILD_DEPENDS="python-dev python3-dev cairo-dev"
15 SPLIT="$PACKAGE-dev ${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
17 compile_rules() {
18 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
19 }
21 genpkg_rules() {
22 case $PACKAGE in
23 *-dev)
24 copy @dev
25 DEPENDS="${PACKAGE%%-dev} cairo-dev"
26 ;;
27 *)
28 copy @std
29 py="${PACKAGE%%-*}" # python/python3
30 DEPENDS="$py cairo"
31 ;;
32 esac
33 }