diff --git a/srcpkgs/python-pex/template b/srcpkgs/python-pex/template new file mode 100644 index 00000000000..3198be96d1b --- /dev/null +++ b/srcpkgs/python-pex/template @@ -0,0 +1,48 @@ +# Template file for 'python-pex' +pkgname=python-pex +version=1.4.6 +revision=1 +wrksrc="pex-${version}" +noarch=yes +build_style=python-module +pycompile_module="pex" +hostmakedepends="python-setuptools python3-setuptools python-Sphinx python3-Sphinx" +depends="python python-wheel" +short_desc="Library & tool for generating .pex (Python EXecutable) files (Python2)" +maintainer="Daniel Santana " +license="Apache-2.0" +homepage="https://github.com/pantsbuild/pex" +distfiles="${PYPI_SITE}/p/pex/pex-${version}.tar.gz" +checksum=b82c687b7f9099c6d76bc2bc5707c60e38bd741efa434846eac8c70e4f89ed29 +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" + depends="python3 python3-wheel" + 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 + } +} diff --git a/srcpkgs/python3-pex b/srcpkgs/python3-pex new file mode 120000 index 00000000000..226b36da393 --- /dev/null +++ b/srcpkgs/python3-pex @@ -0,0 +1 @@ +python-pex \ No newline at end of file