37 lines
978 B
Bash
37 lines
978 B
Bash
# Template file for 'python-Pygments'
|
|
pkgname=python-Pygments
|
|
version=2.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="Pygments-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-setuptools"
|
|
pycompile_module="pygments"
|
|
short_desc="Python2 syntax highlighter"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://pygments.org/"
|
|
license="2-clause-BSD"
|
|
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
|
|
checksum=13a0ef5fafd7b16cf995bc28fe7aab0780dab1b2fda0fc89e033709af8b8a47b
|
|
|
|
post_install() {
|
|
cp -f ${DESTDIR}/usr/bin/pygmentize{,3.4}
|
|
replace_interpreter python ${DESTDIR}/usr/bin/pygmentize
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-Pygments_package() {
|
|
noarch=yes
|
|
depends="python3.4-setuptools"
|
|
pycompile_version="3.4"
|
|
pycompile_module="pygments"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/pygmentize3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE
|
|
}
|
|
}
|