dev-tcltk/snack: PythonCompatUpdate

Closes: https://bugs.gentoo.org/929524
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2024-04-20 16:27:37 +02:00
parent 462058e7ce
commit 535f35b436
3 changed files with 21 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
--- a/python/tkSnack.py 2024-04-20 16:01:28.403396211 +0200
+++ b/python/tkSnack.py 2024-04-20 16:01:55.094084757 +0200
@@ -267,7 +267,7 @@
def pitch(self, method=None, **kw):
"""Returns a list of pitch values."""
- if method is None or method is "amdf" or method is "AMDF":
+ if method is None or method == "amdf" or method == "AMDF":
result = self.tk.call((self.name, 'pitch') + self._options(kw))
return self._getdoubles(result)
else:

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -13,9 +13,11 @@ DESCRIPTION="The Snack Sound Toolkit (Tcl)"
HOMEPAGE="http://www.speech.kth.se/snack/"
SRC_URI="http://www.speech.kth.se/snack/dist/${PN}${PV}.tar.gz"
S="${WORKDIR}/${PN}${PV}/unix"
LICENSE="GPL-2"
KEYWORDS="amd64 ~hppa ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
SLOT="0"
KEYWORDS="amd64 ~hppa ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="alsa examples python vorbis"
RESTRICT="!test? ( test )"
@@ -33,8 +35,6 @@ BDEPEND="python? (
REQUIRED_USE=${PYTHON_REQUIRED_USE}
S="${WORKDIR}/${PN}${PV}/unix"
PATCHES=(
"${FILESDIR}"/alsa-undef-sym.patch
"${FILESDIR}"/${P}-CVE-2012-6303-fix.patch

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
PYTHON_COMPAT=( python3_{9..12} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_OPTIONAL=yes
@@ -13,10 +13,12 @@ DESCRIPTION="The Snack Sound Toolkit (Tcl)"
HOMEPAGE="http://www.speech.kth.se/snack/"
SRC_URI="http://www.speech.kth.se/snack/dist/${PN}${PV}.tar.gz"
S="${WORKDIR}/${PN}${PV}/unix"
LICENSE="GPL-2"
KEYWORDS="amd64 ~arm64 ~hppa ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~hppa ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="alsa examples python vorbis"
RESTRICT="!test? ( test )"
DEPEND="
@@ -33,8 +35,6 @@ BDEPEND="python? (
REQUIRED_USE=${PYTHON_REQUIRED_USE}
S="${WORKDIR}/${PN}${PV}/unix"
PATCHES=(
"${FILESDIR}"/alsa-undef-sym.patch
"${FILESDIR}"/${P}-CVE-2012-6303-fix.patch
@@ -46,6 +46,7 @@ PATCHES=(
"${FILESDIR}"/${P}-configure-clang16.patch
"${FILESDIR}"/${P}-implicit.patch
"${FILESDIR}"/${P}-parallelMake.patch
"${FILESDIR}"/${P}-py3.8.patch
)
HTML_DOCS="${WORKDIR}/${PN}${PV}/doc/*"