From d9f94c2d66eba3ad03bf7c616a2bf9428d8c95df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 20 Sep 2020 22:17:27 +0700 Subject: [PATCH] python-Cheroot: drop package --- srcpkgs/python-Cheroot/template | 43 -------------------------------- srcpkgs/python3-Cheroot | 1 - srcpkgs/python3-Cheroot/template | 29 +++++++++++++++++++++ 3 files changed, 29 insertions(+), 44 deletions(-) delete mode 100644 srcpkgs/python-Cheroot/template delete mode 120000 srcpkgs/python3-Cheroot create mode 100644 srcpkgs/python3-Cheroot/template diff --git a/srcpkgs/python-Cheroot/template b/srcpkgs/python-Cheroot/template deleted file mode 100644 index ce0447f4d3..0000000000 --- a/srcpkgs/python-Cheroot/template +++ /dev/null @@ -1,43 +0,0 @@ -# Template file for 'python-Cheroot' -pkgname=python-Cheroot -version=8.3.1 -revision=1 -archs=noarch -wrksrc="cheroot-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-setuptools python-six python-more-itertools - python-backports.functools_lru_cache python-jaraco.functools" -short_desc="High-performance, pure-Python HTTP server (Python2)" -maintainer="bra1nwave " -license="BSD-3-Clause" -homepage="https://github.com/cherrypy/cheroot" -changelog="https://github.com/cherrypy/cheroot/blob/master/CHANGES.rst" -distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz" -checksum=7076d5845f64d729e4155ec2650ad24ee70209340d11b9e619a82e9210a579b8 -alternatives="cheroot:cheroot:/usr/bin/cheroot2" - -pre_build() { - vsed -i setup.cfg \ - -e '/setuptools_scm/d' \ - -e '/use_scm_version/d' \ - -e "/name = /a\ - version = ${version}" -} - -post_install() { - vlicense LICENSE.md -} - -python3-Cheroot_package() { - archs=noarch - depends="python3-setuptools python3-six python3-more-itertools - python3-jaraco.functools" - alternatives="cheroot:cheroot:/usr/bin/cheroot3" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove "usr/bin/*3" - vmove "usr/lib/python3*" - vlicense LICENSE.md - } -} diff --git a/srcpkgs/python3-Cheroot b/srcpkgs/python3-Cheroot deleted file mode 120000 index 46f9f7c6fd..0000000000 --- a/srcpkgs/python3-Cheroot +++ /dev/null @@ -1 +0,0 @@ -python-Cheroot \ No newline at end of file diff --git a/srcpkgs/python3-Cheroot/template b/srcpkgs/python3-Cheroot/template new file mode 100644 index 0000000000..a1f74ef384 --- /dev/null +++ b/srcpkgs/python3-Cheroot/template @@ -0,0 +1,29 @@ +# Template file for 'python3-Cheroot' +pkgname=python3-Cheroot +version=8.3.1 +revision=2 +wrksrc="cheroot-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-setuptools python3-six python3-more-itertools + python3-jaraco.functools" +short_desc="High-performance, pure-Python HTTP server (Python3)" +maintainer="bra1nwave " +license="BSD-3-Clause" +homepage="https://github.com/cherrypy/cheroot" +changelog="https://github.com/cherrypy/cheroot/blob/master/CHANGES.rst" +distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz" +checksum=7076d5845f64d729e4155ec2650ad24ee70209340d11b9e619a82e9210a579b8 +conflicts="python-Cheroot>=0" + +pre_build() { + vsed -i setup.cfg \ + -e '/setuptools_scm/d' \ + -e '/use_scm_version/d' \ + -e "/name = /a\ + version = ${version}" +} + +post_install() { + vlicense LICENSE.md +}