void-packages/srcpkgs/python-entrypoints/template

42 lines
1.2 KiB
Bash
Raw Normal View History

2016-06-09 23:52:01 +02:00
# Template file for 'python-entrypoints'
pkgname=python-entrypoints
version=0.2.2
revision=2
2016-06-09 23:52:01 +02:00
noarch=yes
wrksrc="entrypoints-${version}"
build_style=python-module
pycompile_module="entrypoints.py"
hostmakedepends="python-setuptools python3-setuptools"
2016-06-09 23:52:01 +02:00
depends="python-backports.configparser"
short_desc="Discover and load entry points from installed packages (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/takluyver/entrypoints"
license="MIT"
distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
checksum=e54b5df8bb971507278c65df96e6486cf4aea0cdac384d0102ea0339e0a4f82b
post_install() {
for pyver in $python_versions; do
vinstall entrypoints.py 644 usr/lib/python${pyver}/site-packages
done
vlicense LICENSE
}
python3-entrypoints_package() {
2016-06-09 23:52:01 +02:00
noarch=yes
pycompile_module="entrypoints.py"
replaces="python3.4-entrypoints>=0"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
2016-06-09 23:52:01 +02:00
pkg_install() {
vmove usr/lib/python3*
2016-06-09 23:52:01 +02:00
vlicense LICENSE
}
}
python3.4-entrypoints_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-entrypoints>=${version}_${revision}"
}