wok-next view python-docutils/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 fc8399b41cda
children
line source
1 # SliTaz package receipt v2.
3 ORIGIN="docutils"
4 PACKAGE="python-docutils"
5 VERSION="0.14"
6 CATEGORY="python"
7 SHORT_DESC="Text processing system"
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="PublicDomain GPL3 BSD"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 HOST_ARCH="any"
12 REPOLOGY="python:docutils"
14 BUILD_DEPENDS="python python3"
15 SPLIT="${PACKAGE/python/python3}:3"
17 compile_rules() {
18 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION || return 1
20 # Remove .py extension from executables; add suffix
21 for i in $install/usr/bin/*; do
22 case $SET in
23 '') mv $i ${i%.py}-2;;
24 3) mv $i ${i%.py}-3; ln -s "$(basename $i .py)-3" ${i%.py};;
25 esac
26 done
27 }
29 genpkg_rules() {
30 copy @std include/ # here include/ contains not @dev files
31 py=${PACKAGE%%-*} # python/python3
32 DEPENDS="$py"
33 SUGGESTED="$py-pil"
34 }