2018-04-15 01:35:34 +02:00
|
|
|
# Template file for 'python-pex'
|
|
|
|
pkgname=python-pex
|
2018-12-08 23:53:26 +01:00
|
|
|
version=1.6.0
|
2018-04-15 01:35:34 +02:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
2018-11-09 17:38:53 +01:00
|
|
|
wrksrc="pex-${version}"
|
2018-04-15 01:35:34 +02:00
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="pex"
|
|
|
|
hostmakedepends="python-setuptools python3-setuptools python-Sphinx python3-Sphinx"
|
2018-12-08 23:53:26 +01:00
|
|
|
depends="python"
|
2018-04-15 01:35:34 +02:00
|
|
|
short_desc="Library & tool for generating .pex (Python EXecutable) files (Python2)"
|
|
|
|
maintainer="Daniel Santana <daniel@santana.tech>"
|
|
|
|
license="Apache-2.0"
|
|
|
|
homepage="https://github.com/pantsbuild/pex"
|
|
|
|
distfiles="${PYPI_SITE}/p/pex/pex-${version}.tar.gz"
|
2018-12-08 23:53:26 +01:00
|
|
|
checksum=7bfd1193c92935da97490a00148a63cffc4252c43da428dac9db669dd687cd4d
|
2018-04-15 01:35:34 +02:00
|
|
|
alternatives="
|
|
|
|
pex:pex:/usr/bin/pex2
|
|
|
|
pex:pex.1:/usr/share/man/man1/pex2.1"
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
rm -r pex.egg-info
|
|
|
|
}
|
|
|
|
|
|
|
|
post_build() {
|
|
|
|
cd docs
|
|
|
|
make man
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vman docs/_build/man/pex.1 pex2.1
|
|
|
|
}
|
|
|
|
|
|
|
|
python3-pex_package() {
|
|
|
|
noarch=yes
|
|
|
|
pycompile_module="pex"
|
2018-12-08 23:53:26 +01:00
|
|
|
depends="python3"
|
2018-04-15 01:35:34 +02:00
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
alternatives="
|
|
|
|
pex:pex:/usr/bin/pex3
|
|
|
|
pex:pex.1:/usr/share/man/man1/pex3.1"
|
|
|
|
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/*3
|
|
|
|
vmove usr/lib/python3*
|
|
|
|
vman docs/_build/man/pex.1 pex3.1
|
|
|
|
}
|
|
|
|
}
|