haikuporter: bump to version 1.3.5 (#13610)

Build as a proper python package.
This commit is contained in:
Joachim Mairböck
2026-01-10 17:06:12 +01:00
committed by GitHub
parent 5937544a1f
commit 2120283054

View File

@@ -8,11 +8,11 @@ patches, builds the software, and packages it according to so-called 'recipes'.
See the wiki on the HaikuPorter website for more information on its usage \
and details on how to create those recipes."
HOMEPAGE="https://github.com/haikuports/haikuporter"
COPYRIGHT="2013-2025 Haiku, Inc."
COPYRIGHT="2013-2026 Haiku, Inc."
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/haikuports/haikuporter/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="81d3530d083852b00345dc46170d26e81cd39bcf49510a2e69549afe2e5b3ba3"
CHECKSUM_SHA256="cb007b47c3ad1cc4ac38e31e509944578eb3d7a9ea8b1e97adc17f6b24edebce"
ARCHITECTURES="any"
@@ -21,6 +21,7 @@ GLOBAL_WRITABLE_FILES="
"
pythonVersion=3.10
pythonPackage="python${pythonVersion//./}"
PROVIDES="
haikuporter = $portVersion
@@ -33,23 +34,35 @@ REQUIRES="
"
BUILD_REQUIRES="
build_$pythonPackage
flit_core_$pythonPackage
installer_$pythonPackage
"
BUILD_PREREQUIRES="
cmd:cp
cmd:mkdir
cmd:python$pythonVersion
"
TEST_REQUIRES="
pytest_$pythonPackage
"
BUILD()
{
python$pythonVersion -m build --wheel --no-isolation
}
INSTALL()
{
# This is very manual, however was done due to
# https://github.com/haikuports/haikuports/issues/286
# TODO: move to setuptools now that this is closed
mkdir -p $binDir
cp haikuporter $binDir/
mkdir -p $libDir/python$pythonVersion/vendor-packages/
cp -R HaikuPorter $libDir/python$pythonVersion/vendor-packages/
python$pythonVersion -m installer --prefix $prefix \
dist/haikuporter-$portVersion-py3-none-any.whl
mkdir -p $settingsDir
cp haikuports-sample.conf $settingsDir/haikuports.conf
}
TEST()
{
python$pythonVersion -m pytest
}