35 lines
1 KiB
Bash
35 lines
1 KiB
Bash
# Template file for 'python-logilab-common'
|
|
pkgname=python-logilab-common
|
|
version=1.0.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="logilab-common-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-six"
|
|
pycompile_module="logilab"
|
|
short_desc="Collection of low-level Python2 modules used by Logilab projects"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.logilab.org/project/logilab-common"
|
|
license="GPL-2, LGPL-2.1"
|
|
distfiles="${PYPI_SITE}/l/logilab-common/logilab-common-${version}.tar.gz"
|
|
checksum=e031701efd2ff26f36ede7dbfcd82d639d6e7ac261ef286dc6cac1eaf8ab7d63
|
|
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/bin/pytest
|
|
vbin build-2.7/scripts-2.7/pytest
|
|
vbin build-3.4/scripts-3.4/pytest pytest3
|
|
}
|
|
|
|
python3.4-logilab-common_package() {
|
|
noarch=yes
|
|
depends="python3.4-six"
|
|
pycompile_version="3.4"
|
|
pycompile_module="logilab"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/pytest3
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|