mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
62 lines
1.5 KiB
Bash
62 lines
1.5 KiB
Bash
SUMMARY="Python AST that abstracts the underlying Python version"
|
||
DESCRIPTION="A generic AST to represent Python2 and Python3’s Abstract Syntax Tree(AST).\
|
||
|
||
GAST provides a compatibility layer between the AST of various Python versions, \
|
||
as produced by ast.parse from the standard ast module."
|
||
HOMEPAGE="https://github.com/serge-sans-paille/gast/
|
||
https://pypi.org/project/gast/"
|
||
COPYRIGHT="2024 Serge Guelton"
|
||
LICENSE="BSD (3-clause)"
|
||
REVISION="2"
|
||
SOURCE_URI="https://files.pythonhosted.org/packages/py3/g/$portName/$portName-$portVersion-py3-none-any.whl#noarchive"
|
||
CHECKSUM_SHA256="52b182313f7330389f72b069ba00f174cfe2a06411099547288839c6cbafbd54"
|
||
|
||
ARCHITECTURES="any"
|
||
|
||
PROVIDES="
|
||
$portName = $portVersion
|
||
"
|
||
REQUIRES="
|
||
haiku
|
||
"
|
||
|
||
BUILD_REQUIRES="
|
||
haiku_devel
|
||
"
|
||
|
||
PYTHON_VERSIONS=(3.10)
|
||
|
||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||
pythonPackage=python${pythonVersion//.}
|
||
|
||
eval "PROVIDES_${pythonPackage}=\"
|
||
${portName}_$pythonPackage = $portVersion
|
||
\""
|
||
eval "REQUIRES_$pythonPackage=\"
|
||
haiku
|
||
cmd:python$pythonVersion
|
||
\""
|
||
BUILD_REQUIRES+="
|
||
installer_$pythonPackage
|
||
"
|
||
BUILD_PREREQUIRES+="
|
||
cmd:python$pythonVersion
|
||
"
|
||
done
|
||
|
||
INSTALL()
|
||
{
|
||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||
pythonPackage=python${pythonVersion//.}
|
||
|
||
python=python$pythonVersion
|
||
|
||
$python -m installer -p $prefix $portName-$portVersion-py3-none-any.whl
|
||
|
||
packageEntries $pythonPackage \
|
||
$prefix/lib/python*
|
||
done
|
||
}
|