flake8: unbreak

This commit is contained in:
Alessio Sergi 2016-10-17 11:23:15 +02:00
parent 6ea13cd01b
commit 451ad4a629

View file

@ -1,4 +1,3 @@
broken=yes
# Template file for 'flake8' # Template file for 'flake8'
pkgname=flake8 pkgname=flake8
version=2.6.2 version=2.6.2
@ -14,7 +13,7 @@ homepage="https://gitlab.com/pycqa/flake8"
license="MIT" license="MIT"
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz" distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
checksum=231cd86194aaec4bdfaa553ae1a1cd9b7b4558332fbc10136c044940d587a778 checksum=231cd86194aaec4bdfaa553ae1a1cd9b7b4558332fbc10136c044940d587a778
alternatives="flake8:flake8:/usr/bin/flake82" alternatives="flake8:flake8:/usr/bin/python2-flake8"
pre_build() { pre_build() {
# remove all caps # remove all caps
@ -22,6 +21,9 @@ pre_build() {
} }
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
# XXX: hack ;)
cp -a ${DESTDIR}/usr/bin/{,python3-}flake8
mv ${DESTDIR}/usr/bin/{,python2-}flake8
} }
python3-flake8_package() { python3-flake8_package() {
@ -31,9 +33,9 @@ python3-flake8_package() {
depends="python3-setuptools python3-pycodestyle python3-pyflakes depends="python3-setuptools python3-pycodestyle python3-pyflakes
python3-mccabe" python3-mccabe"
short_desc="${short_desc/Python2/Python3}" short_desc="${short_desc/Python2/Python3}"
alternatives="flake8:flake8:/usr/bin/flake83" alternatives="flake8:flake8:/usr/bin/python3-flake8"
pkg_install() { pkg_install() {
vmove usr/bin/*3 vmove usr/bin/python3-flake8
vmove usr/lib/python3* vmove usr/lib/python3*
vlicense LICENSE vlicense LICENSE
} }