# Template file for 'python-Pygments' pkgname=python-Pygments version=2.5.2 revision=1 archs=noarch wrksrc="Pygments-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="python-setuptools" checkdepends="python-nose python3-nose" short_desc="Python2 syntax highlighter" maintainer="Alessio Sergi " license="BSD-2-Clause" homepage="http://pygments.org/" distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz" checksum=98c8aa5a9f778fcd1026a17361ddaf7330d1b7c62ae97c3bb0ae73e0b9b6b0fe alternatives="pygments:pygmentize:/usr/bin/pygmentize2" do_check() { python2 tests/run.py python3 tests/run.py } post_install() { vlicense LICENSE } python3-Pygments_package() { archs=noarch depends="python3-setuptools" short_desc="${short_desc/Python2/Python3}" alternatives="pygments:pygmentize:/usr/bin/pygmentize3" pkg_install() { vmove usr/bin/pygmentize3 vmove usr/lib/python3* vlicense LICENSE } }