New package: pycodestyle-2.0.0
This commit is contained in:
parent
7eba369bda
commit
8c390525f7
|
@ -0,0 +1,36 @@
|
||||||
|
# Template file for 'pycodestyle'
|
||||||
|
pkgname=pycodestyle
|
||||||
|
version=2.0.0
|
||||||
|
revision=1
|
||||||
|
noarch=yes
|
||||||
|
build_style=python-module
|
||||||
|
python_versions="2.7 3.4"
|
||||||
|
pycompile_module="pycodestyle.py"
|
||||||
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
|
depends="python-setuptools"
|
||||||
|
short_desc="Python2 style guide checker (formerly called pep8)"
|
||||||
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
|
homepage="https://github.com/PyCQA/pycodestyle"
|
||||||
|
license="MIT"
|
||||||
|
distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz"
|
||||||
|
checksum=37f0420b14630b0eaaf452978f3a6ea4816d787c3e6dcbba6fb255030adae2e7
|
||||||
|
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2.7"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
sed -n '/Copyright/,/SOFTWARE\./p' pycodestyle.py >LICENSE
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
python3.4-pycodestyle_package() {
|
||||||
|
noarch=yes
|
||||||
|
pycompile_version="3.4"
|
||||||
|
pycompile_module="pycodestyle.py"
|
||||||
|
depends="python3.4-setuptools"
|
||||||
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3.4"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/bin/*3.4
|
||||||
|
vmove usr/lib/python3.4
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
pycodestyle
|
Loading…
Reference in New Issue