diff options
author | Alexander Tsoy <alexander@tsoy.me> | 2023-03-05 23:00:10 +0300 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-03-09 08:06:13 +0100 |
commit | b93c51bc46ea5ab203444b0b90dce8d6801a1537 (patch) | |
tree | cdee34a2d750fa44a6fc2aaa0e8cef667315ebff /media-sound/guitarix | |
parent | profiles: unmask media-gfx/frogr (diff) | |
download | gentoo-b93c51bc46ea5ab203444b0b90dce8d6801a1537.tar.gz gentoo-b93c51bc46ea5ab203444b0b90dce8d6801a1537.tar.bz2 gentoo-b93c51bc46ea5ab203444b0b90dce8d6801a1537.zip |
media-sound/guitarix: EAPI 8 and py3.11
Also switch to github repo. SourceForge repo is outdated.
Closes: https://bugs.gentoo.org/897030
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Closes: https://github.com/gentoo/gentoo/pull/29944
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/guitarix')
-rw-r--r-- | media-sound/guitarix/files/guitarix-0.41.0-py3.11.patch | 26 | ||||
-rw-r--r-- | media-sound/guitarix/guitarix-0.44.1.ebuild | 9 | ||||
-rw-r--r-- | media-sound/guitarix/guitarix-9999.ebuild | 8 | ||||
-rw-r--r-- | media-sound/guitarix/metadata.xml | 3 |
4 files changed, 36 insertions, 10 deletions
diff --git a/media-sound/guitarix/files/guitarix-0.41.0-py3.11.patch b/media-sound/guitarix/files/guitarix-0.41.0-py3.11.patch new file mode 100644 index 000000000000..34a8bc68c824 --- /dev/null +++ b/media-sound/guitarix/files/guitarix-0.41.0-py3.11.patch @@ -0,0 +1,26 @@ +From 39d7c21c4173eb0f121b1bbff439d9cf43331a00 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net> +Date: Wed, 11 Jan 2023 18:55:36 -0500 +Subject: [PATCH] waf: python 3.11 removed the 'U' open mode + +Python3 deprecated it already by making this the default behaviour. +--- + trunk/wscript | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/trunk/wscript b/trunk/wscript +index 947fd3d1..3f1f5cf3 100644 +--- a/wscript ++++ b/wscript +@@ -537,7 +537,7 @@ def sub_file(task): + dst_fname = task.outputs[0].abspath() + lst = task.generator.sub_list + +- with open(src_fname, 'rU') as f: ++ with open(src_fname, 'r') as f: + txt = f.read() + for (key, val) in lst: + re_pat = re.compile(key, re.M) +-- +2.39.2 + diff --git a/media-sound/guitarix/guitarix-0.44.1.ebuild b/media-sound/guitarix/guitarix-0.44.1.ebuild index 05d31784013b..04e6a893b200 100644 --- a/media-sound/guitarix/guitarix-0.44.1.ebuild +++ b/media-sound/guitarix/guitarix-0.44.1.ebuild @@ -1,18 +1,16 @@ # Copyright 2019-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) PYTHON_REQ_USE='threads(+)' inherit python-any-r1 waf-utils xdg -MY_P="${PN}2-${PV}" - DESCRIPTION="Virtual guitar amplifier for Linux" HOMEPAGE="https://guitarix.org/" -SRC_URI="mirror://sourceforge/guitarix/guitarix/${MY_P}.tar.xz" +SRC_URI="https://github.com/brummer10/${PN}/releases/download/V${PV}/guitarix2-${PV}.tar.xz" LICENSE="GPL-2" SLOT="0" @@ -65,6 +63,7 @@ DOCS=( changelog README ) PATCHES=( "${FILESDIR}"/${PN}-0.41.0-nostrip.patch + "${FILESDIR}"/${PN}-0.41.0-py3.11.patch ) src_configure() { diff --git a/media-sound/guitarix/guitarix-9999.ebuild b/media-sound/guitarix/guitarix-9999.ebuild index 80afc539188d..0f1305ac3816 100644 --- a/media-sound/guitarix/guitarix-9999.ebuild +++ b/media-sound/guitarix/guitarix-9999.ebuild @@ -1,9 +1,9 @@ # Copyright 2019-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) PYTHON_REQ_USE='threads(+)' EGIT_OVERRIDE_REPO_ENYOJS_BOOTPLATE="https://github.com/enyojs/bootplate.git" @@ -11,11 +11,9 @@ EGIT_OVERRIDE_BRANCH_ENYOJS_BOOTPLATE="master" inherit python-any-r1 waf-utils xdg git-r3 -MY_P="${PN}2-${PV}" - DESCRIPTION="Virtual guitar amplifier for Linux" HOMEPAGE="https://guitarix.org/" -EGIT_REPO_URI="https://git.code.sf.net/p/guitarix/git" +EGIT_REPO_URI="https://github.com/brummer10/${PN}.git" S="${WORKDIR}/${P}/trunk" LICENSE="GPL-2" diff --git a/media-sound/guitarix/metadata.xml b/media-sound/guitarix/metadata.xml index 34ccfab7be05..e08a9c3c4ba8 100644 --- a/media-sound/guitarix/metadata.xml +++ b/media-sound/guitarix/metadata.xml @@ -18,4 +18,7 @@ <flag name="nsm">Build NSM (Non Session Manager) support</flag> <flag name="standalone">Build standalone application</flag> </use> + <upstream> + <remote-id type="github">brummer10/guitarix</remote-id> + </upstream> </pkgmetadata> |