retext: build with python 3.9

This commit is contained in:
Jerome Duval
2023-03-07 22:58:52 +01:00
parent c0fe8cb219
commit 830b451e79

View File

@@ -5,7 +5,7 @@ HOMEPAGE="https://github.com/retext-project/retext"
COPYRIGHT="20112016 Dmitry Shachnev
20112016 Maurice van der Pot"
LICENSE="GNU GPL v3"
REVISION="4"
REVISION="5"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="c32ccdbcf31094258c792bc0589ff3ff212dea85466d776b7f60fa7b39da4b6c"
PATCHES="retext-$portVersion.patchset"
@@ -19,38 +19,38 @@ PROVIDES="
"
REQUIRES="
haiku$secondaryArchSuffix
markdown_python38
markups_python38
pyqt5_python38
cmd:python3.8
markdown_python39
markups_python39
pyqt5_python39
cmd:python3.9
lib:libxcb$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
pyqt5_python38
setuptools_python38
pyqt5_python39
setuptools_python39
"
BUILD_PREREQUIRES="
cmd:lrelease$secondaryArchSuffix >= 5
cmd:python3.8
cmd:python3.9
"
TEST_REQUIRES="
markups_python38
python_markdown_math_python38
markups_python39
python_markdown_math_python39
qthaikuplugins$secondaryArchSuffix
"
BUILD()
{
$portPackageLinksDir/cmd~python3.8/bin/python3.8 setup.py build
$portPackageLinksDir/cmd~python3.9/bin/python3.9 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python3.8/bin/python3.8
python=$portPackageLinksDir/cmd~python3.9/bin/python3.9
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
@@ -65,5 +65,5 @@ INSTALL()
TEST()
{
python3.8 setup.py test
python3.9 setup.py test
}