2014-12-14 14:38:15 +00:00
|
|
|
# Template file for 'python-astroid'
|
|
|
|
pkgname=python-astroid
|
2015-08-03 09:23:52 +00:00
|
|
|
version=1.3.8
|
2014-12-14 14:38:15 +00:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="astroid-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
depends="python-logilab-common python-six"
|
|
|
|
pycompile_module="astroid"
|
|
|
|
short_desc="Abstract syntax tree for Python2"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
homepage="https://bitbucket.org/logilab/astroid"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
|
|
|
distfiles="${PYPI_SITE}/a/astroid/astroid-${version}.tar.gz"
|
2015-08-03 09:23:52 +00:00
|
|
|
checksum=3971c35c675dc7acfceb636eb1758b7df9fc3ad75b5f81ca89f57ccf51719442
|
2014-12-14 14:38:15 +00:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# no tests
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/astroid/tests
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-astroid_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="python3.4-logilab-common python3.4-six"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="astroid"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|