mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
ranger: move to Python 3.10. (#11713)
Also, switch from setup.py to build/installer.
This commit is contained in:
@@ -32,14 +32,14 @@ COPYRIGHT="2009-2018 Roman Zimbelmann
|
|||||||
2015-2018 Wojciech Siewierski
|
2015-2018 Wojciech Siewierski
|
||||||
2016-2018 Toon Nolten"
|
2016-2018 Toon Nolten"
|
||||||
LICENSE="GNU GPL v3"
|
LICENSE="GNU GPL v3"
|
||||||
REVISION="1"
|
REVISION="2"
|
||||||
SOURCE_URI="https://ranger.github.io/$portVersionedName.tar.gz"
|
SOURCE_URI="https://ranger.github.io/$portVersionedName.tar.gz"
|
||||||
CHECKSUM_SHA256="ce088a04c91c25263a9675dc5c43514b7ec1b38c8ea43d9a9d00923ff6cdd251"
|
CHECKSUM_SHA256="ce088a04c91c25263a9675dc5c43514b7ec1b38c8ea43d9a9d00923ff6cdd251"
|
||||||
|
|
||||||
ARCHITECTURES="any"
|
ARCHITECTURES="any"
|
||||||
|
|
||||||
# It only makes sense to package this one just for the default Python version.
|
# It only makes sense to package this one just for the default Python version.
|
||||||
pythonVersion=3.9
|
pythonVersion=3.10
|
||||||
pythonPackage=python${pythonVersion//.}
|
pythonPackage=python${pythonVersion//.}
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
@@ -53,8 +53,10 @@ REQUIRES="
|
|||||||
"
|
"
|
||||||
|
|
||||||
BUILD_REQUIRES="
|
BUILD_REQUIRES="
|
||||||
haiku_devel
|
build_$pythonPackage
|
||||||
|
installer_$pythonPackage
|
||||||
setuptools_$pythonPackage
|
setuptools_$pythonPackage
|
||||||
|
wheel_$pythonPackage
|
||||||
"
|
"
|
||||||
BUILD_PREREQUIRES="
|
BUILD_PREREQUIRES="
|
||||||
cmd:python$pythonVersion
|
cmd:python$pythonVersion
|
||||||
@@ -63,12 +65,9 @@ BUILD_PREREQUIRES="
|
|||||||
INSTALL()
|
INSTALL()
|
||||||
{
|
{
|
||||||
python=python$pythonVersion
|
python=python$pythonVersion
|
||||||
installLocation=$prefix/lib/$python/vendor-packages/
|
|
||||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
||||||
|
|
||||||
mkdir -p $installLocation
|
$python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
|
$python -m installer --p $prefix dist/*-$portVersion-*.whl
|
||||||
$python setup.py build install --root=/ --prefix=$prefix
|
|
||||||
|
|
||||||
install -d -m 755 $docDir $manDir
|
install -d -m 755 $docDir $manDir
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user