35 lines
847 B
Bash
35 lines
847 B
Bash
# Template file for 'python-ply'
|
|
pkgname=python-ply
|
|
version=3.8
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="ply-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-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=e7d1bdff026beb159c9942f7a17e102c375638d9478a7ecd4cc0c76afd8de0b8
|
|
|
|
post_install() {
|
|
sed -n '/Copyright/,/POSSIBILITY/p' README.md >LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-ply_package() {
|
|
noarch=yes
|
|
depends="python3.4"
|
|
pycompile_version="3.4"
|
|
pycompile_module="ply"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE
|
|
}
|
|
}
|