From 83e950174029be15ee32690397e832bd62ab5f42 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:40:51 +0700 Subject: [PATCH] python-entrypoints: drop package --- srcpkgs/python-entrypoints/template | 37 ------------------- srcpkgs/python3-entrypoints | 1 - .../patches/setup.py.patch | 0 srcpkgs/python3-entrypoints/template | 22 +++++++++++ 4 files changed, 22 insertions(+), 38 deletions(-) delete mode 100644 srcpkgs/python-entrypoints/template delete mode 120000 srcpkgs/python3-entrypoints rename srcpkgs/{python-entrypoints => python3-entrypoints}/patches/setup.py.patch (100%) create mode 100644 srcpkgs/python3-entrypoints/template diff --git a/srcpkgs/python-entrypoints/template b/srcpkgs/python-entrypoints/template deleted file mode 100644 index 6070650f35d..00000000000 --- a/srcpkgs/python-entrypoints/template +++ /dev/null @@ -1,37 +0,0 @@ -# Template file for 'python-entrypoints' -pkgname=python-entrypoints -version=0.3 -revision=2 -archs=noarch -wrksrc="entrypoints-${version}" -build_style=python-module -pycompile_module="entrypoints.py" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-backports.configparser" -short_desc="Discover and load entry points from installed packages (Python2)" -maintainer="Alessio Sergi " -license="MIT" -homepage="https://github.com/takluyver/entrypoints" -distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz" -checksum=f26eddc371e37d8e9f6663b77524d6731567f005bd1e4ac950c0e33c48fbc065 - -pre_build() { - sed -i "s|@VERSION@|${version}|" setup.py -} -post_install() { - for pyver in $python_versions; do - vinstall entrypoints.py 644 usr/lib/python${pyver}/site-packages - done - vlicense LICENSE -} - -python3-entrypoints_package() { - archs=noarch - pycompile_module="entrypoints.py" - depends="python3" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-entrypoints b/srcpkgs/python3-entrypoints deleted file mode 120000 index 33316dfeacf..00000000000 --- a/srcpkgs/python3-entrypoints +++ /dev/null @@ -1 +0,0 @@ -python-entrypoints \ No newline at end of file diff --git a/srcpkgs/python-entrypoints/patches/setup.py.patch b/srcpkgs/python3-entrypoints/patches/setup.py.patch similarity index 100% rename from srcpkgs/python-entrypoints/patches/setup.py.patch rename to srcpkgs/python3-entrypoints/patches/setup.py.patch diff --git a/srcpkgs/python3-entrypoints/template b/srcpkgs/python3-entrypoints/template new file mode 100644 index 00000000000..85c910e46c1 --- /dev/null +++ b/srcpkgs/python3-entrypoints/template @@ -0,0 +1,22 @@ +# Template file for 'python3-entrypoints' +pkgname=python3-entrypoints +version=0.3 +revision=3 +wrksrc="entrypoints-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Discover and load entry points from installed packages (Python3)" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/takluyver/entrypoints" +distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz" +checksum=f26eddc371e37d8e9f6663b77524d6731567f005bd1e4ac950c0e33c48fbc065 + +pre_build() { + vsed -i "s|@VERSION@|${version}|" setup.py +} +post_install() { + vinstall entrypoints.py 644 usr/lib/python${py3_ver}/site-packages + vlicense LICENSE +}