From 9cb3ad87e7a8e47dddffebc0d5b45f25bf07d73a Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Fri, 16 Jun 2023 22:24:08 +0200 Subject: [PATCH] python-constantly: split python3-constantly to a new package --- srcpkgs/python-constantly/template | 15 ++------------- srcpkgs/python3-constantly | 1 - srcpkgs/python3-constantly/template | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 14 deletions(-) delete mode 120000 srcpkgs/python3-constantly create mode 100644 srcpkgs/python3-constantly/template diff --git a/srcpkgs/python-constantly/template b/srcpkgs/python-constantly/template index 386180075600..2baccb9c9c5e 100644 --- a/srcpkgs/python-constantly/template +++ b/srcpkgs/python-constantly/template @@ -2,27 +2,16 @@ pkgname=python-constantly version=15.1.0 revision=7 -build_style=python-module -pycompile_module="constantly" +build_style=python2-module hostmakedepends="python-setuptools python3-setuptools" depends="python" short_desc="Symbolic constants in Python (Python2)" maintainer="Orphaned " -homepage="https://github.com/twisted/constantly" license="MIT" +homepage="https://github.com/twisted/constantly" distfiles="${PYPI_SITE}/c/constantly/constantly-${version}.tar.gz" checksum=586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35 post_install() { vlicense LICENSE } - -python3-constantly_package() { - depends="python3" - pycompile_module="constantly" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-constantly b/srcpkgs/python3-constantly deleted file mode 120000 index 9f28e618569d..000000000000 --- a/srcpkgs/python3-constantly +++ /dev/null @@ -1 +0,0 @@ -python-constantly \ No newline at end of file diff --git a/srcpkgs/python3-constantly/template b/srcpkgs/python3-constantly/template new file mode 100644 index 000000000000..c1cca160e7fb --- /dev/null +++ b/srcpkgs/python3-constantly/template @@ -0,0 +1,17 @@ +# Template file for 'python3-constantly' +pkgname=python3-constantly +version=15.1.0 +revision=7 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Symbolic constants in Python (Python3)" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/twisted/constantly" +distfiles="${PYPI_SITE}/c/constantly/constantly-${version}.tar.gz" +checksum=586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35 + +post_install() { + vlicense LICENSE +}