mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-13 18:43:51 +02:00
python-Pygments: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
57ce9cc55e
commit
977d97943a
2 changed files with 17 additions and 11 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-Pygments'
|
# Template file for 'python-Pygments'
|
||||||
pkgname=python-Pygments
|
pkgname=python-Pygments
|
||||||
version=2.1.3
|
version=2.1.3
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="Pygments-${version}"
|
wrksrc="Pygments-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
||||||
depends="python-setuptools"
|
depends="python-setuptools"
|
||||||
pycompile_module="pygments"
|
pycompile_module="pygments"
|
||||||
short_desc="Python2 syntax highlighter"
|
short_desc="Python2 syntax highlighter"
|
||||||
|
@ -15,22 +14,28 @@ homepage="http://pygments.org/"
|
||||||
license="2-clause-BSD"
|
license="2-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
|
||||||
checksum=88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81
|
checksum=88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81
|
||||||
alternatives="pygments:pygmentize:/usr/bin/pygmentize2.7"
|
alternatives="pygments:pygmentize:/usr/bin/pygmentize2"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-Pygments_package() {
|
python3-Pygments_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4-setuptools"
|
depends="python3-setuptools"
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="pygments"
|
pycompile_module="pygments"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
replaces="python3.4-Pygments>=0"
|
||||||
alternatives="pygments:pygmentize:/usr/bin/pygmentize3.4"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="pygments:pygmentize:/usr/bin/pygmentize3"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pygmentize3.4
|
vmove usr/bin/pygmentize3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
vlicense LICENSE
|
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}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-Pygments
Symbolic link
1
srcpkgs/python3-Pygments
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-Pygments
|
Loading…
Add table
Reference in a new issue