mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
_python* packages: do not use Python 3.9 as "defaultVersion" anymore. (#12589)
While switching to 3.10 as default, lets just drop the 3.9 versions of these packages. ---- Checked runtime and build dependencies, but only tried a build of `hatchling` locally. I'll merge as is, and if something breaks, will fix later on.
This commit is contained in:
@@ -13,7 +13,7 @@ COPYRIGHT="2017 Just van Rossum
|
||||
LICENSE="MIT
|
||||
SIL Open Font License v1.1
|
||||
Apache v2"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
SOURCE_URI="https://github.com/fonttools/fonttools/archive/$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="fonttools-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="f03f5a5414587fed31d11e007e680ea522a918ea27a793a5931641ef5915bcd2"
|
||||
@@ -31,12 +31,11 @@ BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
defaultVersion=3.9
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
PYTHON_VERSIONS=(3.10)
|
||||
defaultVersion=3.10
|
||||
|
||||
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
eval "PROVIDES_${pythonPackage}=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
@@ -73,9 +72,8 @@ done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
python=python$pythonVersion
|
||||
rm -rf build
|
||||
@@ -99,7 +97,7 @@ INSTALL()
|
||||
mv $prefix/share/man/* $manDir
|
||||
rm -rf $prefix/share
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
$binDir \
|
||||
$manDir
|
||||
|
||||
Reference in New Issue
Block a user