2014-07-06 00:20:20 +02:00
|
|
|
# Template file for 'python-virtualenv-clone'
|
|
|
|
pkgname=python-virtualenv-clone
|
2015-07-02 10:42:00 +02:00
|
|
|
version=0.2.6
|
2014-07-06 00:20:20 +02:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
build_style=python-module
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2015-07-02 10:42:00 +02:00
|
|
|
depends="python-setuptools"
|
2014-07-06 00:20:20 +02:00
|
|
|
pycompile_module="clonevirtualenv.py"
|
|
|
|
short_desc="Script to clone virtualenvs (Python2)"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
homepage="https://github.com/edwardgeorge/virtualenv-clone"
|
|
|
|
license="MIT"
|
2015-07-02 10:42:00 +02:00
|
|
|
distfiles="${PYPI_SITE}/v/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
|
|
|
|
checksum=6b3be5cab59e455f08c9eda573d23006b7d6fb41fae974ddaa2b275c93cc4405
|
2014-07-06 00:20:20 +02:00
|
|
|
|
|
|
|
pre_build() {
|
2015-07-02 10:42:00 +02:00
|
|
|
cp -a ${wrksrc} /tmp/${pkgname#*-}-2.7
|
|
|
|
cp -a ${wrksrc} /tmp/${pkgname#*-}-3.4
|
|
|
|
mv /tmp/${pkgname#*-}-{2.7,3.4} ${wrksrc}
|
2014-07-06 00:20:20 +02:00
|
|
|
|
2015-07-02 10:42:00 +02:00
|
|
|
cd ${pkgname#*-}-3.4
|
|
|
|
sed -i 's,\(virtualenv-clone\)=,\13=,' setup.py
|
|
|
|
sed -i 's,#!/usr/bin/env python,&3.4,' clonevirtualenv.py
|
|
|
|
}
|
2014-07-06 00:20:20 +02:00
|
|
|
do_build() {
|
2015-07-02 10:42:00 +02:00
|
|
|
for pyver in $python_versions; do
|
|
|
|
cd ${wrksrc}/${pkgname#*-}-${pyver}
|
|
|
|
python${pyver} setup.py build
|
|
|
|
done
|
2014-07-06 00:20:20 +02:00
|
|
|
}
|
|
|
|
do_install() {
|
2015-07-02 10:42:00 +02:00
|
|
|
for pyver in $python_versions; do
|
|
|
|
cd ${wrksrc}/${pkgname#*-}-${pyver}
|
|
|
|
python${pyver} setup.py install --root=${DESTDIR}
|
|
|
|
done
|
2014-07-06 00:20:20 +02:00
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-virtualenv-clone_package() {
|
|
|
|
noarch=yes
|
2015-07-02 10:42:00 +02:00
|
|
|
depends="python3.4-setuptools"
|
2014-07-06 00:20:20 +02:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="clonevirtualenv.py"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/virtualenv-clone3
|
|
|
|
vmove usr/lib/python3.4
|
2015-07-02 10:42:00 +02:00
|
|
|
vlicense LICENSE
|
2014-07-06 00:20:20 +02:00
|
|
|
}
|
|
|
|
}
|