From f6c00007c26a76df7b3ee119e15d09e3f2c772db Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 21 Apr 2017 15:04:27 +0200 Subject: [PATCH] python-Cheroot: fix template --- srcpkgs/python-Cheroot/template | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/srcpkgs/python-Cheroot/template b/srcpkgs/python-Cheroot/template index dae6b88a927..d2ebbf45e8d 100644 --- a/srcpkgs/python-Cheroot/template +++ b/srcpkgs/python-Cheroot/template @@ -1,29 +1,36 @@ # Template file for 'python-Cheroot' pkgname=python-Cheroot version=5.4.0 -revision=1 -wrksrc="cheroot-$version" +revision=2 noarch=yes +wrksrc="cheroot-${version}" build_style=python-module +pycompile_module="cheroot" hostmakedepends="python-setuptools python3-setuptools" +depends="python-six" short_desc="High-performance, pure-Python HTTP server" maintainer="Andrea Brancaleoni " -license="BSD" +license="3-clause-BSD" homepage="https://github.com/cherrypy/cheroot" distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz" checksum=f4b3d2eaa949b8a2f6676e3bca7c68cd358e4aa6bab437362b4bee6781626135 +pre_build() { + sed -i setup.py \ + -e '/setuptools_scm/d' \ + -e "s|use_scm_version=True|version='${version}'|" +} post_install() { - vlicense LICENSE.md + vlicense LICENSE.md LICENSE } python3-Cheroot_package() { noarch=yes + depends="python3-six" pycompile_module="cheroot" short_desc="${short_desc/Python2/Python3}" - alternatives="cherrypy:cherryd:/usr/bin/cherryd3" pkg_install() { vmove usr/lib/python3* - vlicense LICENSE.md + vlicense LICENSE.md LICENSE } }