217e7d31f2
After more than a year the switch to python3 packages, it is time to say them goodbye. So long, and thanks for all the fish.
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'flake8'
|
|
pkgname=flake8
|
|
version=3.5.0
|
|
revision=1
|
|
noarch=yes
|
|
build_style=python-module
|
|
pycompile_module="flake8"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-pycodestyle python-pyflakes python-mccabe
|
|
python-enum34 python-backports.configparser"
|
|
short_desc="The modular source code checker: pycodestyle, pyflakes, mccabe (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://gitlab.com/pycqa/flake8"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
|
|
checksum=7253265f7abd8b313e3892944044a365e3f4ac3fcdcfb4298f55ee9ddf188ba0
|
|
alternatives="flake8:flake8:/usr/bin/python2-flake8"
|
|
|
|
pre_build() {
|
|
sed -i setup.py \
|
|
-e 's/, *< *[0-9=.]*//' \
|
|
-e '/setup_requires/d'
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE
|
|
# XXX: override the default naming scheme
|
|
cp -a ${DESTDIR}/usr/bin/{,python3-}flake8
|
|
mv ${DESTDIR}/usr/bin/{,python2-}flake8
|
|
}
|
|
|
|
python3-flake8_package() {
|
|
noarch=yes
|
|
pycompile_module="flake8"
|
|
depends="python3-setuptools python3-pycodestyle python3-pyflakes python3-mccabe"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="flake8:flake8:/usr/bin/python3-flake8"
|
|
pkg_install() {
|
|
vmove usr/bin/python3-flake8
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|