39 lines
996 B
Bash
39 lines
996 B
Bash
# Template file for 'python-ply'
|
|
pkgname=python-ply
|
|
version=3.9
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="ply-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="ply"
|
|
short_desc="Lex and Yacc for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.dabeaz.com/ply/"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/p/ply/ply-${version}.tar.gz"
|
|
checksum=0d7e2940b9c57151392fceaa62b0865c45e06ce1e36687fd8d03f011a907f43e
|
|
|
|
post_install() {
|
|
sed -n '/Copyright/,/POSSIBILITY/p' README.md >LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-ply_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="ply"
|
|
replaces="python3.4-ply>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-ply_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-ply>=${version}_${revision}"
|
|
}
|