void-packages/srcpkgs/python-Pygments/template
Alessio Sergi 977d97943a python-Pygments: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-16 17:27:33 +02:00

41 lines
1.1 KiB
Bash

# Template file for 'python-Pygments'
pkgname=python-Pygments
version=2.1.3
revision=3
noarch=yes
wrksrc="Pygments-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
pycompile_module="pygments"
short_desc="Python2 syntax highlighter"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://pygments.org/"
license="2-clause-BSD"
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
checksum=88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81
alternatives="pygments:pygmentize:/usr/bin/pygmentize2"
post_install() {
vlicense LICENSE
}
python3-Pygments_package() {
noarch=yes
depends="python3-setuptools"
pycompile_module="pygments"
replaces="python3.4-Pygments>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="pygments:pygmentize:/usr/bin/pygmentize3"
pkg_install() {
vmove usr/bin/pygmentize3
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-Pygments_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-Pygments>=${version}_${revision}"
}