* [gentoo-commits] repo/gentoo:master commit in: media-sound/alsa-scarlett-gui/, media-sound/alsa-scarlett-gui/files/
@ 2023-12-01 3:47 Jason A. Donenfeld
0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2023-12-01 3:47 UTC (permalink / raw
To: gentoo-commits
commit: 0dd094a84a33fe56a582c12d98a15af7fb984ee0
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 1 03:46:46 2023 +0000
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Fri Dec 1 03:46:52 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dd094a8
media-sound/alsa-scarlett-gui: add 0.3.3, drop 0.3.2.0.0.20231129
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
media-sound/alsa-scarlett-gui/Manifest | 2 +-
...31129.ebuild => alsa-scarlett-gui-0.3.3.ebuild} | 6 ++--
.../files/alsa-scarlett-gui-0.3.3-cflags.patch | 32 ++++++++++++++++++++++
3 files changed, 36 insertions(+), 4 deletions(-)
diff --git a/media-sound/alsa-scarlett-gui/Manifest b/media-sound/alsa-scarlett-gui/Manifest
index 75e16480604d..dbd80f4f96f5 100644
--- a/media-sound/alsa-scarlett-gui/Manifest
+++ b/media-sound/alsa-scarlett-gui/Manifest
@@ -1 +1 @@
-DIST alsa-scarlett-gui-0.3.2.0.0.20231129.tar.gz 3113572 BLAKE2B 3af6bb7a6e1415285e070e5fde414b1456a1da94c65b88bd058d7cad693417e1f7114664bc386c6652ce6956b71064ec41c754942257811383c0953fe6b4f807 SHA512 4f6c99ee318cee218bb1235fe844f754787985ab44c4e24c73c21e0e8ee7a75e6da1423f7e3f577c2303394f7993d0757928b3e3c3f031f01cdb01816c153dbd
+DIST alsa-scarlett-gui-0.3.3.tar.gz 3113190 BLAKE2B 16128c8795c4a4ebd9d711f64dad1dd0e38ba17e34a50d17cf43b8ce454409ee2a5bc817120d5b421b367d3f1e5ef0f9f7868fb1109af6edb8d820579cad7b14 SHA512 38b0e8cb0bb1d9039463d7635ee81ad1ae477628b885f5f1f3601c163369ff59c7effbba140fb761b26dca7cf9c0f6b5a3f8db0b68a8c604078fe8f08cea082f
diff --git a/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.2.0.0.20231129.ebuild b/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3.ebuild
similarity index 71%
rename from media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.2.0.0.20231129.ebuild
rename to media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3.ebuild
index c29ec55d0c5b..1ff6d2f932c1 100644
--- a/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.2.0.0.20231129.ebuild
+++ b/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3.ebuild
@@ -5,8 +5,7 @@ EAPI=8
DESCRIPTION="A UI for Focusrite Scarlett and Clarett audio interfaces"
HOMEPAGE="https://github.com/geoffreybennett/alsa-scarlett-gui"
-MY_PV="32c00623676e70572195ef28fd01ab8409b82541"
-SRC_URI="https://github.com/geoffreybennett/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/geoffreybennett/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
@@ -20,6 +19,7 @@ DEPEND="
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
-S="${WORKDIR}/${PN}-${MY_PV}/src"
+PATCHES=( "${FILESDIR}"/"${P}"-cflags.patch )
+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
new file mode 100644
index 000000000000..696df40d6269
--- /dev/null
+++ b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-cflags.patch
@@ -0,0 +1,32 @@
+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
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/alsa-scarlett-gui/, media-sound/alsa-scarlett-gui/files/
@ 2024-03-30 9:22 Miroslav Šulc
0 siblings, 0 replies; 2+ messages in thread
From: Miroslav Šulc @ 2024-03-30 9:22 UTC (permalink / raw
To: gentoo-commits
commit: 0523d4eea9887ae0a160560f2b913b9a3724ddca
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 30 09:22:18 2024 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sat Mar 30 09:22:18 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0523d4ee
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 <AT> gentoo.org>
media-sound/alsa-scarlett-gui/Manifest | 2 +-
....3-r1.ebuild => alsa-scarlett-gui-0.4.0.ebuild} | 8 ++++--
.../files/alsa-scarlett-gui-0.3.3-cflags.patch | 32 ---------------------
.../files/alsa-scarlett-gui-0.3.3-fabs.patch | 33 ----------------------
.../files/alsa-scarlett-gui-0.4.0-no-Werror.patch | 11 ++++++++
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
similarity index 83%
rename from media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3-r1.ebuild
rename to 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
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-30 9:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-30 9:22 [gentoo-commits] repo/gentoo:master commit in: media-sound/alsa-scarlett-gui/, media-sound/alsa-scarlett-gui/files/ Miroslav Šulc
-- strict thread matches above, loose matches on Subject: below --
2023-12-01 3:47 Jason A. Donenfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox