mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
lazy-object-proxy, fix versioning (#7992)
* lazy-object-proxy, fix versioning * lazy_object_proxy, switch to secondary architecture on 32bit, add cmd:gcc$secondaryArchSuffix
This commit is contained in:
@@ -6,26 +6,27 @@ to the target object"
|
||||
HOMEPAGE="https://github.com/ionelmc/python-lazy-object-proxy"
|
||||
COPYRIGHT="2014-2019, Ionel Cristian Mărieș"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://github.com/ionelmc/python-lazy-object-proxy/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="b28708f92930b4e2c0ab39def12ebc6be466db5e91fad88bfc7ebf9aa9c9de16"
|
||||
SOURCE_DIR="python-lazy-object-proxy-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python3 python38 python39)
|
||||
PYTHON_VERSIONS=(3.7 3.8 3.9)
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
@@ -40,11 +41,13 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_scm_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
Reference in New Issue
Block a user