summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2024-03-30 10:22:18 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2024-03-30 10:22:18 +0100
commit0523d4eea9887ae0a160560f2b913b9a3724ddca (patch)
treee14be69aae7938f6baf7e8931b322bece3e13b4e /media-sound/alsa-scarlett-gui
parentmedia-sound/fluidsynth: bump to 2.3.5 (diff)
downloadgentoo-0523d4eea9887ae0a160560f2b913b9a3724ddca.tar.gz
gentoo-0523d4eea9887ae0a160560f2b913b9a3724ddca.tar.bz2
gentoo-0523d4eea9887ae0a160560f2b913b9a3724ddca.zip
media-sound/alsa-scarlett-gui: bump to 0.4.0, dropped 0.3.3-r1
Closes: https://bugs.gentoo.org/925843 Closes: https://bugs.gentoo.org/918908 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/alsa-scarlett-gui')
-rw-r--r--media-sound/alsa-scarlett-gui/Manifest2
-rw-r--r--media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.4.0.ebuild (renamed from media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3-r1.ebuild)8
-rw-r--r--media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-cflags.patch32
-rw-r--r--media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-fabs.patch33
-rw-r--r--media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.4.0-no-Werror.patch11
5 files changed, 17 insertions, 69 deletions
diff --git a/media-sound/alsa-scarlett-gui/Manifest b/media-sound/alsa-scarlett-gui/Manifest
index dbd80f4f96f5..8d9183725f08 100644
--- a/media-sound/alsa-scarlett-gui/Manifest
+++ b/media-sound/alsa-scarlett-gui/Manifest
@@ -1 +1 @@
-DIST alsa-scarlett-gui-0.3.3.tar.gz 3113190 BLAKE2B 16128c8795c4a4ebd9d711f64dad1dd0e38ba17e34a50d17cf43b8ce454409ee2a5bc817120d5b421b367d3f1e5ef0f9f7868fb1109af6edb8d820579cad7b14 SHA512 38b0e8cb0bb1d9039463d7635ee81ad1ae477628b885f5f1f3601c163369ff59c7effbba140fb761b26dca7cf9c0f6b5a3f8db0b68a8c604078fe8f08cea082f
+DIST alsa-scarlett-gui-0.4.0.tar.gz 3434771 BLAKE2B 5bdab633a8271e99eec06aac8b9629ad50eb9a4cf892fe962f30848fc7644036093056d0db75f60accd13757dbeb578c0cfa365aa6dcd2655985564e1039a7d9 SHA512 9cc316f153cd197823295dc57012931f75b3cb06f9ea87661853626e3d9326ce1a433adfb8af23bcdc1e76f9ab59d2175bee9e3d02da0b4a7b3365caf734e1e2
diff --git a/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3-r1.ebuild b/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.4.0.ebuild
index 8f4c27ffd11c..0961a09d3b1e 100644
--- a/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3-r1.ebuild
+++ b/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.4.0.ebuild
@@ -1,8 +1,10 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+inherit xdg
+
DESCRIPTION="A UI for Focusrite Scarlett and Clarett audio interfaces"
HOMEPAGE="https://github.com/geoffreybennett/alsa-scarlett-gui"
SRC_URI="https://github.com/geoffreybennett/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
@@ -20,9 +22,9 @@ RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
- "${FILESDIR}"/"${P}"-cflags.patch
- "${FILESDIR}"/"${P}"-fabs.patch
+ "${FILESDIR}/${PN}-0.4.0-no-Werror.patch"
)
+
MAKEOPTS="${MAKEOPTS} -C src"
export PREFIX="/usr"
diff --git a/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-cflags.patch b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-cflags.patch
deleted file mode 100644
index 696df40d6269..000000000000
--- a/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-cflags.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 00c84902e508c20c61b003a64f772cfe82f18d43 Mon Sep 17 00:00:00 2001
-From: "Jason A. Donenfeld" <Jason@zx2c4.com>
-Date: Fri, 1 Dec 2023 04:39:56 +0100
-Subject: [PATCH] Makefile: prefer distro cflags if specified
-
-The compilation flags that are necessary for building and part of the
-developer's intentions belong in the `+=` section, but the base flags
-that distros like to override belong in a `?=` section, so that build
-systems using their own are respected.
-
-Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
----
- src/Makefile | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/Makefile b/src/Makefile
-index 2c9d51b..bba8d42 100644
---- a/src/Makefile
-+++ b/src/Makefile
-@@ -12,7 +12,8 @@ VERSION := $(shell \
- DEPDIR := .deps
- DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d
-
--CFLAGS += -Wall -Werror -ggdb -fno-omit-frame-pointer -O2 -D_FORTIFY_SOURCE=2
-+CFLAGS ?= -ggdb -fno-omit-frame-pointer -O2
-+CFLAGS += -Wall -Werror -D_FORTIFY_SOURCE=2
- CFLAGS += -DVERSION=\"$(VERSION)\"
- CFLAGS += -Wno-error=deprecated-declarations
-
---
-2.42.0
-
diff --git a/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-fabs.patch b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-fabs.patch
deleted file mode 100644
index 31f21bed199a..000000000000
--- a/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-fabs.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 883541a1073e5bd2f8a8f759db56e48d90a2f448 Mon Sep 17 00:00:00 2001
-From: "Jason A. Donenfeld" <Jason@zx2c4.com>
-Date: Tue, 5 Dec 2023 00:00:34 +0100
-Subject: [PATCH] gtkdial: use fabs() for double
-
-Passing a double to abs() truncates it to an integer, which is probably
-not intended, and also causes fatal errors on clang.
-
-Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
----
- src/gtkdial.c | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/src/gtkdial.c b/src/gtkdial.c
-index ce06515..931b06b 100644
---- a/src/gtkdial.c
-+++ b/src/gtkdial.c
-@@ -832,9 +832,9 @@ gtk_dial_scroll_controller_scroll (GtkEventControllerScroll *scroll,
- double dy,
- GtkDial *dial)
- {
-- double delta = dx ? dx : dy;
-- if (abs(delta) > 1)
-- delta *= abs(delta);
-+ double delta = dx ? dx : dy, absolute_delta = fabs(delta);
-+ if (absolute_delta > 1)
-+ delta *= absolute_delta;
- double step = -gtk_adjustment_get_step_increment(dial->adj)*delta;
-
- set_value(dial, gtk_adjustment_get_value(dial->adj) + step);
---
-2.42.0
-
diff --git a/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.4.0-no-Werror.patch b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.4.0-no-Werror.patch
new file mode 100644
index 000000000000..e6c98f5c4889
--- /dev/null
+++ b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.4.0-no-Werror.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -13,7 +13,7 @@ DEPDIR := .deps
+ DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d
+
+ CFLAGS ?= -ggdb -fno-omit-frame-pointer -O2
+-CFLAGS += -Wall -Werror -D_FORTIFY_SOURCE=2
++CFLAGS += -Wall -D_FORTIFY_SOURCE=2
+ CFLAGS += -DVERSION=\"$(VERSION)\"
+ CFLAGS += -Wno-error=deprecated-declarations
+