void-packages/srcpkgs/python-setuptools/template

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2013-08-31 11:07:55 +02:00
# Template file for 'python-setuptools'
pkgname=python-setuptools
2014-07-01 19:24:17 +02:00
version=5.3
revision=1
2013-08-31 11:07:55 +02:00
wrksrc="setuptools-${version}"
build_style=python-module
hostmakedepends="python-devel python3.4-devel"
makedepends="${hostmakedepends}"
depends="python>=2.7"
noarch="yes"
python_versions="2.7 3.4"
pycompile_module="easy_install.py pkg_resources.py _markerlib setuptools"
provides="python-distribute-${version}_1"
replaces="python-distribute>=0"
short_desc="Easily download, build, install, upgrade, and uninstall Python2 packages"
maintainer="Alessio Sergi <al3hex@gmail.com>"
2013-08-31 11:07:55 +02:00
homepage="http://pypi.python.org/pypi/setuptools"
license="PSF"
distfiles="http://pypi.python.org/packages/source/s/setuptools/setuptools-${version}.tar.gz"
2014-07-01 19:24:17 +02:00
checksum=b2ef5d25b38a970b64f44f95df6a4e5e78e80b35da45d63ae01a452c3c00ed87
post_install() {
rm -f ${DESTDIR}/usr/bin/easy_install
ln -sf easy_install-2.7 ${DESTDIR}/usr/bin/easy_install
}
python3.4-setuptools_package() {
noarch="yes"
depends="python3.4"
pycompile_version="3.4"
pycompile_module="easy_install.py pkg_resources.py _markerlib setuptools"
short_desc="${short_desc//Python2/Python3.4}"
provides="python3-distribute-${version}_1"
replaces="python3-distribute>=0"
pkg_install() {
vmove /usr/bin/easy_install-3.4
vmove /usr/lib/python3.4
ln -sf easy_install-3.4 ${PKGDESTDIR}/usr/bin/easy_install3
}
}