python3-typed-ast: update to 1.4.1.
This commit is contained in:
parent
64a04b5352
commit
c8a86c3d65
1 changed files with 30 additions and 6 deletions
|
@ -1,16 +1,40 @@
|
|||
# Template file for 'python3-typed-ast'
|
||||
pkgname=python3-typed-ast
|
||||
version=1.4.0
|
||||
revision=2
|
||||
version=1.4.1
|
||||
revision=1
|
||||
wrksrc="typed_ast-${version}"
|
||||
build_style=python3-module
|
||||
pycompile_module="typed_ast"
|
||||
hostmakedepends="python3-devel python3-setuptools"
|
||||
hostmakedepends="python3-setuptools"
|
||||
makedepends="python3-devel"
|
||||
short_desc="Ast module with type comment support"
|
||||
maintainer="whoami <whoami@systemli.org>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://github.com/python/typed_ast"
|
||||
distfiles="https://github.com/python/typed_ast/archive/${version}.tar.gz"
|
||||
checksum=bd02998404953db788e9d09c1030c4f0eb9d87986b08bd30e9fc00a8e30d6dd8
|
||||
nocross="https://travis-ci.org/void-linux/void-packages/jobs/509366923#L1009"
|
||||
checksum=498a6cd88f78e4b2058092ff38c9941d61f4eba2c12b371240ba663f063adf7d
|
||||
|
||||
do_patch() {
|
||||
# python3-typed-ast uses the same header name with Python
|
||||
# Thus, we'll run to problem on cross-compile.
|
||||
# Fix it by specify include file relative to the file.
|
||||
# And -Iast/Include
|
||||
local _ifile _rfile
|
||||
local _ast27_re=""
|
||||
local _ast3_re=""
|
||||
cd ast27/Include
|
||||
for _ifile in *.h; do
|
||||
_rfile=${_ifile/./[.]}
|
||||
_ast27_re+="s%^[[:space:]]*#[[:space:]]*include[[:space:]]*\"$_rfile\".*$%#include \"../Include/$_ifile\"%;"
|
||||
done
|
||||
cd ..
|
||||
find . -type f -exec sed -i -e "$_ast27_re" {} +
|
||||
cd ..
|
||||
cd ast3/Include
|
||||
for _ifile in *.h; do
|
||||
_rfile=${_ifile/./[.]}
|
||||
_ast3_re+="s%^[[:space:]]*#[[:space:]]*include[[:space:]]*\"$_rfile\".*$%#include \"../Include/$_ifile\"%;"
|
||||
done
|
||||
cd ..
|
||||
find . -type f -exec sed -i -e "$_ast3_re" {} +
|
||||
cd ..
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue