picard: switch to python 3.10

This commit is contained in:
Jerome Duval
2023-12-01 10:08:11 +01:00
parent 1cacd79a17
commit 684bad82a7

View File

@@ -12,7 +12,7 @@ HOMEPAGE="https://picard.musicbrainz.org/"
COPYRIGHT="2004-2023 Robert Kaye, Lukas Lalinsky, Laurent Monin, \
Sambhav Kothari, Philipp Wolfer and others"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="ftp://ftp.eu.metabrainz.org/pub/musicbrainz/picard/picard-$portVersion.tar.gz"
CHECKSUM_SHA256="5a97133e3549a81367c5128678237b0cb013f49ca8279ba88272a09a5cdc3939"
SOURCE_DIR="picard-$portVersion"
@@ -32,27 +32,27 @@ PROVIDES="
REQUIRES="
haiku$secondaryArchSuffix
cmd:fpcalc
cmd:python3.9
dateutil_python39
discid_python39
fasteners_python39
cmd:python3.10
dateutil_python310
discid_python310
fasteners_python310
lib:libdiscid$secondaryArchSuffix
markdown_python39
mutagen_python39
pyjwt_python39
pyqt5_python39
pyyaml_python39
markdown_python310
mutagen_python310
pyjwt_python310
pyqt5_python310
pyyaml_python310
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
pyqt5_python39
setuptools_python39
pyqt5_python310
setuptools_python310
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:msgfmt$secondaryArchSuffix
cmd:python3.9
cmd:python3.10
"
PATCH()
@@ -67,16 +67,16 @@ BUILD()
#Rebuild resources
rm -f resources/picard.qrc
rm -f picard/resources.py
python3.9 resources/makeqrc.py
python3.9 resources/compile.py
python3.10 resources/makeqrc.py
python3.10 resources/compile.py
python3.9 setup.py config
python3.10 setup.py config
}
INSTALL()
{
LC_ALL=en_US.UTF-8
python3.9 setup.py install \
python3.10 setup.py install \
--root=/ --prefix=$prefix \
--install-data=$dataDir \
--install-locales=$dataDir/locale \