25 lines
877 B
Bash
25 lines
877 B
Bash
# Template file for 'python3-Pygments'
|
|
pkgname=python3-Pygments
|
|
version=2.11.2
|
|
revision=1
|
|
wrksrc="Pygments-${version}"
|
|
build_style=python3-module
|
|
# Ignored tests rely on unpackaged wcag_contrast_ratio module
|
|
make_check_args="--ignore=tests/contrast/test_contrasts.py"
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3"
|
|
checkdepends="python3-pytest python3-lxml"
|
|
short_desc="Generic syntax highlighter written in Python"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://pygments.org"
|
|
changelog="https://raw.githubusercontent.com/pygments/pygments/master/CHANGES"
|
|
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
|
|
checksum=4e426f72023d88d03b2fa258de560726ce890ff3b630f88c21cbb8b2503b8c6a
|
|
alternatives="pygments:pygmentize:/usr/bin/pygmentize3"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
mv ${DESTDIR}/usr/bin/pygmentize{,3}
|
|
}
|