mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
retext: switch to python 3.8
This commit is contained in:
@@ -5,7 +5,7 @@ HOMEPAGE="https://github.com/retext-project/retext"
|
||||
COPYRIGHT="2011–2016 Dmitry Shachnev
|
||||
2011–2016 Maurice van der Pot"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="c32ccdbcf31094258c792bc0589ff3ff212dea85466d776b7f60fa7b39da4b6c"
|
||||
PATCHES="retext-$portVersion.patchset"
|
||||
@@ -18,37 +18,37 @@ PROVIDES="
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
markdown_python3
|
||||
markups_python3
|
||||
pyqt_python3
|
||||
cmd:python3
|
||||
markdown_python38
|
||||
markups_python38
|
||||
pyqt5_python38
|
||||
cmd:python3.8
|
||||
lib:libxcb$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
pyqt_python3 >= 5
|
||||
setuptools_python3
|
||||
pyqt5_python38
|
||||
setuptools_python38
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:lrelease
|
||||
cmd:python3
|
||||
cmd:lrelease >= 5
|
||||
cmd:python3.8
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
markups_python3
|
||||
markups_python38
|
||||
qthaikuplugins$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python3/bin/python3 setup.py build
|
||||
$portPackageLinksDir/cmd~python3.8/bin/python3.8 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$portPackageLinksDir/cmd~python3/bin/python3
|
||||
python=$portPackageLinksDir/cmd~python3.8/bin/python3.8
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
@@ -63,5 +63,5 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
python3 setup.py test
|
||||
python3.8 setup.py test
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user