wok-next view python-docutils/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
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 }