wok-next diff python-sphinx/receipt @ rev 21662

updated fop (1.0 -> 2.5)
author Hans-G?nter Theisgen
date Sat Jun 27 13:57:04 2020 +0100 (2020-06-27)
parents 92698cd69f34
children
line diff
     1.1 --- a/python-sphinx/receipt	Fri Jul 13 17:30:55 2018 +0300
     1.2 +++ b/python-sphinx/receipt	Sat Jun 27 13:57:04 2020 +0100
     1.3 @@ -1,27 +1,44 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="Sphinx"
     1.7  PACKAGE="python-sphinx"
     1.8 -VERSION="latest"
     1.9 +VERSION="1.8.0"
    1.10  CATEGORY="python"
    1.11 -SHORT_DESC="Documentation Tool"
    1.12 +SHORT_DESC="Python documentation generator"
    1.13  MAINTAINER="claudinei@slitaz.org"
    1.14  LICENSE="BSD"
    1.15 -WEB_SITE="http://sphinx.pocoo.org"
    1.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.17 +HOST_ARCH="any"
    1.18  REPOLOGY="python:sphinx"
    1.19  
    1.20 -BUILD_DEPENDS="python-docutils python-jinja2 python-packaging python-imagesize \
    1.21 -python-six python-alabaster python-snowballstemmer python-pygments \
    1.22 -python-sphinxcontrib-websupport python-typing python-babel python-requests \
    1.23 -python-markupsafe python-pyparsing python-pytz python-idna python-urllib3 \
    1.24 -python-certifi python-chardet"
    1.25 +BUILD_DEPENDS="python python-alabaster python-babel python-docutils \
    1.26 +python-imagesize python-jinja2 python-packaging python-pygments \
    1.27 +python-requests python-six python-snowballstemmer \
    1.28 +python-sphinxcontrib-websupport python-typing \
    1.29 +python3 python3-alabaster python3-babel python3-docutils python3-imagesize \
    1.30 +python3-jinja2 python3-packaging python3-pygments python3-requests python3-six \
    1.31 +python3-snowballstemmer python3-sphinxcontrib-websupport"
    1.32 +SPLIT="${PACKAGE/python/python3}:3"
    1.33 +
    1.34  COOKOPTS="!pngquant" # error: Wrote palette index exceeding num_palette (libpng failed)
    1.35  
    1.36  compile_rules() {
    1.37 -	pip install --no-compile --root=$DESTDIR Sphinx
    1.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.39  }
    1.40  
    1.41  genpkg_rules() {
    1.42 -	VERSION=$(sed -n '/^Successfully installed/ s|.*Sphinx-||p' $LOGS/$PACKAGE.log)
    1.43 -	copy @std @dev
    1.44 -	DEPENDS="$BUILD_DEPENDS"
    1.45 +	copy @std
    1.46 +	py="${PACKAGE%%-*}" # python/python3
    1.47 +	case $PACKAGE in
    1.48 +		python-*)
    1.49 +			DEPENDS="$py $py-alabaster $py-babel $py-docutils $py-imagesize \
    1.50 +			$py-jinja2 $py-packaging $py-pygments $py-requests $py-six \
    1.51 +			$py-snowballstemmer $py-sphinxcontrib-websupport $py-typing"
    1.52 +			;;
    1.53 +		python3-*)
    1.54 +			DEPENDS="$py $py-alabaster $py-babel $py-docutils $py-imagesize \
    1.55 +			$py-jinja2 $py-packaging $py-pygments $py-requests $py-six \
    1.56 +			$py-snowballstemmer $py-sphinxcontrib-websupport"
    1.57 +			;;
    1.58 +	esac
    1.59  }