2015-01-19 01:01:15 +01:00
|
|
|
# Template file for 'python-pycparser'
|
|
|
|
pkgname=python-pycparser
|
2015-05-13 09:19:24 +02:00
|
|
|
version=2.13
|
2015-01-19 01:01:15 +01:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="pycparser-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
depends="python-ply"
|
|
|
|
pycompile_module="pycparser"
|
|
|
|
short_desc="Complete C99 parser in pure Python2"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
homepage="https://github.com/eliben/pycparser"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="${PYPI_SITE}/p/pycparser/pycparser-${version}.tar.gz"
|
2015-05-13 09:19:24 +02:00
|
|
|
checksum=b399599a8a0e386bfcbc5e01a38d79dd6e926781f9e358cd5512f41ab7d20eb7
|
2015-04-22 09:22:55 +02:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# replace bundled copy of ply
|
|
|
|
for pyver in $python_versions; do
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/python${pyver}/site-packages/pycparser/ply
|
|
|
|
ln -sf ../ply ${DESTDIR}/usr/lib/python${pyver}/site-packages/pycparser/ply
|
|
|
|
done
|
|
|
|
}
|
2015-01-19 01:01:15 +01:00
|
|
|
|
|
|
|
python3.4-pycparser_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="python3.4-ply"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="pycparser"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|