commit:     601639873c969071f22de84cfe28d58a0189a0f4
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 26 19:16:34 2025 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Oct 26 19:24:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60163987

media-libs/sbc: add 2.1

Thanks-to: Sam James
Closes: https://bugs.gentoo.org/964699
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 media-libs/sbc/Manifest       |  1 +
 media-libs/sbc/sbc-2.1.ebuild | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/media-libs/sbc/Manifest b/media-libs/sbc/Manifest
index 8a53ba94c6a5..17c77fabfa2d 100644
--- a/media-libs/sbc/Manifest
+++ b/media-libs/sbc/Manifest
@@ -1 +1,2 @@
 DIST sbc-2.0.tar.xz 270888 BLAKE2B 
d6dd20499871a4c217833c98a2f134ed828438ec4e5aa2073c8b9fc96da5c9ffc2d32e7a56697186731ac540ab58ff0c52559aff575feb8f2da30172badd4921
 SHA512 
600e86aa492ca1af512ec8e568a08fe526cf2f6eb7306bb0fbdd9a844d03a2a5dedb5f986725aa2c66fe3fe43a7ba45d111e9666eb8912ff3e3a36b948adbc61
+DIST sbc-2.1.tar.xz 272116 BLAKE2B 
1efaf136969040a80cc1bb5745cc1bf2de1fe8e62d3a035ac7d6d192cd9e9c81edbe7d618b1366db3ed2f204489a261ad0451bc288729ef6908ec70a3ac840c5
 SHA512 
c7c1f624254de930c05de92233b85c95a0d3fb00a983b9f363df48ac8389655a7023a89ade92c7879f8f1e4d264c680aeb1a712c5f298bd6cb8ceecf82aceadd

diff --git a/media-libs/sbc/sbc-2.1.ebuild b/media-libs/sbc/sbc-2.1.ebuild
new file mode 100644
index 000000000000..4cdaf29786d2
--- /dev/null
+++ b/media-libs/sbc/sbc-2.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal
+
+DESCRIPTION="Audio codec to connect bluetooth HQ audio devices as headphones 
or loudspeakers"
+HOMEPAGE="https://git.kernel.org/?p=bluetooth/sbc.git";
+SRC_URI="https://www.kernel.org/pub/linux/bluetooth/${P}.tar.xz";
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+IUSE="static-libs"
+
+# --enable-tester is building src/sbctester but the tarball is missing required
+# .wav file to execute it
+RESTRICT="test"
+
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${PN}-1.5-ifdef-builtin.patch" )
+
+multilib_src_configure() {
+       ECONF_SOURCE=${S} \
+       econf \
+               $(use_enable static-libs static) \
+               --disable-tester
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       find "${D}" -name '*.la' -delete || die
+}

Reply via email to