From 2120283054631daf9f3cbd6f3f0048330f30a6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 10 Jan 2026 17:06:12 +0100 Subject: [PATCH] haikuporter: bump to version 1.3.5 (#13610) Build as a proper python package. --- ...-1.3.3.recipe => haikuporter-1.3.5.recipe} | 33 +++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) rename haiku-apps/haikuporter/{haikuporter-1.3.3.recipe => haikuporter-1.3.5.recipe} (68%) diff --git a/haiku-apps/haikuporter/haikuporter-1.3.3.recipe b/haiku-apps/haikuporter/haikuporter-1.3.5.recipe similarity index 68% rename from haiku-apps/haikuporter/haikuporter-1.3.3.recipe rename to haiku-apps/haikuporter/haikuporter-1.3.5.recipe index 927c70acb..5fdc0c5c0 100644 --- a/haiku-apps/haikuporter/haikuporter-1.3.3.recipe +++ b/haiku-apps/haikuporter/haikuporter-1.3.5.recipe @@ -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 +}