picard: build with python 3.9

This commit is contained in:
Jerome Duval
2023-03-08 21:35:50 +01:00
parent c63c097e7f
commit 6c73be54fd

View File

@@ -12,7 +12,7 @@ HOMEPAGE="https://picard.musicbrainz.org/"
COPYRIGHT="2004-2022 Robert Kaye, Lukas Lalinsky, Laurent Monin, \
Sambhav Kothari, Philipp Wolfer and others"
LICENSE="GNU GPL v2"
REVISION="2"
REVISION="3"
SOURCE_URI="ftp://ftp.eu.metabrainz.org/pub/musicbrainz/picard/picard-$portVersion.tar.gz"
CHECKSUM_SHA256="b1c1f76d5fe92cb481f4362142c6a84f1cf45948e42cfd7c3d3beffd703c54ce"
SOURCE_DIR="picard-release-$portVersion"
@@ -32,27 +32,27 @@ PROVIDES="
REQUIRES="
haiku$secondaryArchSuffix
cmd:fpcalc
cmd:python3.8
dateutil_python38
discid_python38
fasteners_python38
cmd:python3.9
dateutil_python39
discid_python39
fasteners_python39
lib:libdiscid$secondaryArchSuffix
markdown_python38
mutagen_python38
pyjwt_python38
pyqt5_python38
pyyaml_python38
markdown_python39
mutagen_python39
pyjwt_python39
pyqt5_python39
pyyaml_python39
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
pyqt5_python38
setuptools_python38
pyqt5_python39
setuptools_python39
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:msgfmt$secondaryArchSuffix
cmd:python3.8
cmd:python3.9
"
PATCH()
@@ -67,16 +67,16 @@ BUILD()
#Rebuild resources
rm -f resources/picard.qrc
rm -f picard/resources.py
python3.8 resources/makeqrc.py
python3.8 resources/compile.py
python3.9 resources/makeqrc.py
python3.9 resources/compile.py
python3.8 setup.py config
python3.9 setup.py config
}
INSTALL()
{
LC_ALL=en_US.UTF-8
python3.8 setup.py install \
python3.9 setup.py install \
--root=/ --prefix=$prefix \
--install-data=$dataDir \
--install-locales=$dataDir/locale \