diff options
author | Filip Kobierski <fkobi@pm.me> | 2024-12-19 11:57:19 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-12-20 12:06:28 +0100 |
commit | 78c127687997a1feccbc7fdb4b4cb19ec7e0fda1 (patch) | |
tree | 6824b5885871e31da80f1f60f6965f4a6df61106 /media-sound | |
parent | */*: slotmove dev-java/fop 2.8 0 #946557 (diff) | |
download | gentoo-78c127687997a1feccbc7fdb4b4cb19ec7e0fda1.tar.gz gentoo-78c127687997a1feccbc7fdb4b4cb19ec7e0fda1.tar.bz2 gentoo-78c127687997a1feccbc7fdb4b4cb19ec7e0fda1.zip |
media-sound/alsa-scarlett-gui: add 0.4.0-r1 with improvements
- do not fortify source
- use preferred CC
Bug: https://bugs.gentoo.org/936815
Bug: https://bugs.gentoo.org/928245
Signed-off-by: Filip Kobierski <fkobi@pm.me>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.4.0-r1.ebuild | 34 | ||||
-rw-r--r-- | media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.4.0_adjust-cflags.patch | 20 |
2 files changed, 54 insertions, 0 deletions
diff --git a/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.4.0-r1.ebuild b/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.4.0-r1.ebuild new file mode 100644 index 000000000000..12bccb36b04c --- /dev/null +++ b/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.4.0-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs 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" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + dev-libs/glib:2 + gui-libs/gtk:4 + media-libs/alsa-lib +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.4.0_adjust-cflags.patch +) + +MAKEOPTS="${MAKEOPTS} -C src" + +export PREFIX="/usr" + +src_compile() { + emake CC="$(tc-getCC)" +} diff --git a/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.4.0_adjust-cflags.patch b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.4.0_adjust-cflags.patch new file mode 100644 index 000000000000..4b3619f82e9a --- /dev/null +++ b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.4.0_adjust-cflags.patch @@ -0,0 +1,20 @@ +From: Filip Kobierski <fkobi@pm.me> + +This also deletes -Werror as that was done anyway and it's simpler to apply one patch + +Bug: https://bugs.gentoo.org/936815 +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +--- a/src/Makefile ++++ b/src/Makefile +@@ -13,6 +13,6 @@ 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 + CFLAGS += -DVERSION=\"$(VERSION)\" + CFLAGS += -Wno-error=deprecated-declarations |