39 lines
1 KiB
Bash
39 lines
1 KiB
Bash
|
# Template file for 'python-logilab-common'
|
||
|
pkgname=python-logilab-common
|
||
|
version=0.63.2
|
||
|
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=603ba00c9bb09219a3bd2906c214d9455481110dacc472f450b53d5ae90f28e7
|
||
|
|
||
|
pre_install() {
|
||
|
mv build-3.4/scripts-3.4/pytest{,3}
|
||
|
}
|
||
|
|
||
|
post_install() {
|
||
|
rm -f ${DESTDIR}/usr/bin/pytest
|
||
|
vbin build-2.7/scripts-2.7/pytest
|
||
|
}
|
||
|
|
||
|
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
|
||
|
}
|
||
|
}
|