python-entrypoints: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 22:40:51 +07:00
parent 221a9ed6e9
commit 83e9501740
4 changed files with 22 additions and 38 deletions

View file

@ -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 <al3hex@gmail.com>"
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
}
}

View file

@ -1 +0,0 @@
python-entrypoints

View file

@ -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 <orphan@voidlinux.org>"
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
}