From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/cubeb/files/, media-libs/cubeb/
Date: Tue, 28 Nov 2023 14:13:16 +0000 (UTC) [thread overview]
Message-ID: <1701180576.609161adcd475a78d6e233e03e0fadba246316f9.ionen@gentoo> (raw)
commit: 609161adcd475a78d6e233e03e0fadba246316f9
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 28 13:56:26 2023 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Nov 28 14:09:36 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=609161ad
media-libs/cubeb: add 0.2_p20231121
Also simplify by dropping rust (at least for now). I do not use nor
really test this package anymore and rather keep it simple to avoid
complications.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
media-libs/cubeb/Manifest | 1 +
media-libs/cubeb/cubeb-0.2_p20231121.ebuild | 83 ++++++++++++++++++++++
.../files/cubeb-0.2_p20231121-automagic.patch | 32 +++++++++
media-libs/cubeb/metadata.xml | 1 -
4 files changed, 116 insertions(+), 1 deletion(-)
diff --git a/media-libs/cubeb/Manifest b/media-libs/cubeb/Manifest
index a1d9753ddd39..2a74f8408841 100644
--- a/media-libs/cubeb/Manifest
+++ b/media-libs/cubeb/Manifest
@@ -3,6 +3,7 @@ DIST cache-padded-1.2.0.crate 9125 BLAKE2B d50b506aca9cfad3117be593c33bba4a52400
DIST cc-1.0.73.crate 57880 BLAKE2B be8d7a25a54afdd759844e76aec61526fc2bd5ca09480e6cdd3bdcf27e5f9d3a88dc16cbcbf54cd021470a7cc521e1ad468116c112bbd30752bac0d5486939ac SHA512 980f012b90c6410144f6de4995048337e09214f19603076db6d4edb88e9ef9ac9e8c6e25569f66c2be3a47e99298f5886dafc102e1a9122316179aa26bc1c985
DIST cmake-0.1.48.crate 15142 BLAKE2B 5566d196c7ebcaa6b4d91e3361d7c92eb9c60c0a940b6d581d8cfc547606781f04f77d707ed128a6a391ec46fe801a4f65acac3c7c9bc90e0e43cd9e1bd6be03 SHA512 c836208d43f4a716be6ef043a6b5f526d3961b9414f1419171895903491176a2a8dc2f271062667a7568c7deb2bebfe96541b4e4fe73c31aa9aa760557b188b9
DIST cubeb-0.2_p20220922.tar.gz 223096 BLAKE2B 55e9bca6792a9e27e74ad29d0059b97997f15c58b04982a37e9afb0edeecfddf9ef41c40f934207883b46f3b669c5323ee9399fd4abd78b0bf91609ffda7d8ab SHA512 cbdaed8202649cd5ef6970457c412c94e3a7e12036017e551a2396d52ddd66061ed7cd9f5442418e5b410756836f1535bc957af92c2709c72a2a1c8e77f0678a
+DIST cubeb-0.2_p20231121.tar.gz 228779 BLAKE2B aa4b2a1e2f240efc67e827e1fda58c15d13ff9e4ced7c01bcbd4509c3853a247e7f1f77fad18b7622e20c65304550364e847829e34dc25b99a4b2ed6ed67111a SHA512 7ba1cd5b74d49512d2ebf9b07889ee3ad46559afe3293bcbebae0613661f7502f0baaa20b6723738c21b2d71f9d8f72ed1252703533507dec5d2b5ad84784017
DIST cubeb-backend-0.10.1.crate 6359 BLAKE2B 5830be150dfa1dd2ece6dd1bbc3400c23d85867ca066107175f0da8e2cb2066e247f103f2cc4d523018f8ff98235b794fd68272798ee8e09c59a070bbb6b6ce2 SHA512 dd9d47af3f1b0a5af2e6bbccd42e8c8ea50cb995d82f0a090adb236a3759a5107c1b840da03701594181e63138e5d31ca3741262a7a4aa1ca1309e54c8aa50b2
DIST cubeb-core-0.10.1.crate 10915 BLAKE2B e428637a4d0946a630b9a33c9ac856a8a92d4a8e30e33abf375e592bdc061a95c33414345b18c8c447d7753a8b0a1c8fcaa7b0b3e3b15593908816e029182871 SHA512 2d3f6c904c966adaf9fb886b42d33776ff5ad57600e1057a9b35e7cd9e2de34a028b0e33602db69d6f0bc038391ebbe6b102bf3a883e1fa9104f55e2ec124a62
DIST cubeb-pulse-rs-f32b3ef708.tar.gz 37717 BLAKE2B f77cb42b32439025f4d1fbbd4558560b8420b24d8e13881f5280532860a495cc2ce95bd70d114de2777e3cacf785e55f6965b1a3aee9ba8fcca33d14e1a71956 SHA512 f801b24173f34b801b6e78fcec232736d353d78b4b8d3d690e69524c3b146aa0345e746dcb81aa8cf1fe17a85bf0e7f940f4b9c46d64de644e3b03d498af5f76
diff --git a/media-libs/cubeb/cubeb-0.2_p20231121.ebuild b/media-libs/cubeb/cubeb-0.2_p20231121.ebuild
new file mode 100644
index 000000000000..f743f23e580c
--- /dev/null
+++ b/media-libs/cubeb/cubeb-0.2_p20231121.ebuild
@@ -0,0 +1,83 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+HASH_CUBEB=54217bca3f3e0cd53c073690a23dd25d83557909
+
+DESCRIPTION="Cross-platform audio library"
+HOMEPAGE="https://github.com/mozilla/cubeb/"
+SRC_URI="
+ https://github.com/mozilla/cubeb/archive/${HASH_CUBEB}.tar.gz
+ -> ${P}.tar.gz
+"
+S=${WORKDIR}/${PN}-${HASH_CUBEB}
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="alsa doc jack pulseaudio sndio test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ media-libs/speexdsp
+ alsa? ( media-libs/alsa-lib )
+ jack? ( virtual/jack )
+ pulseaudio? ( media-libs/libpulse )
+ sndio? ( media-sound/sndio:= )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-cpp/gtest )
+"
+BDEPEND="doc? ( app-doc/doxygen )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.2_p20231121-automagic.patch
+)
+
+CMAKE_SKIP_TESTS=(
+ # need access to real audio devices, and without sandbox
+ audio
+ callback_ret
+ devices
+ latency
+ sanity
+ tone
+ # fragile unless all backends are enabled
+ device_changed_callback
+ duplex
+ record
+)
+
+src_prepare() {
+ cmake_src_prepare
+
+ # test currently does not build unless use static libs
+ sed -i '/cubeb_add_test(logging)/d' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_RUST_LIBS=no # leaving out unless becomes really needed
+ -DBUILD_TESTS=$(usex test)
+ -DBUILD_TOOLS=no # semi-broken without most backends and not needed
+ -DCHECK_ALSA=$(usex alsa)
+ -DCHECK_JACK=$(usex jack)
+ -DCHECK_PULSE=$(usex pulseaudio)
+ -DCHECK_SNDIO=$(usex sndio)
+ -DLAZY_LOAD_LIBS=no
+ -DUSE_SANITIZERS=no
+ $(cmake_use_find_package doc Doxygen)
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ use doc && dodoc -r "${BUILD_DIR}"/docs/html
+}
diff --git a/media-libs/cubeb/files/cubeb-0.2_p20231121-automagic.patch b/media-libs/cubeb/files/cubeb-0.2_p20231121-automagic.patch
new file mode 100644
index 000000000000..00d6ad3eb2d4
--- /dev/null
+++ b/media-libs/cubeb/files/cubeb-0.2_p20231121-automagic.patch
@@ -0,0 +1,32 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -182,3 +182,5 @@
+
++ if(CHECK_PULSE)
+ pkg_check_modules(libpulse IMPORTED_TARGET libpulse)
++ endif()
+ if(libpulse_FOUND)
+@@ -189,3 +191,5 @@
+
++ if(CHECK_ALSA)
+ pkg_check_modules(alsa IMPORTED_TARGET alsa)
++ endif()
+ if(alsa_FOUND)
+@@ -196,3 +200,5 @@
+
++ if(CHECK_JACK)
+ pkg_check_modules(jack IMPORTED_TARGET jack)
++ endif()
+ if(jack_FOUND)
+@@ -203,3 +209,5 @@
+
++ if(CHECK_SNDIO)
+ check_include_files(sndio.h USE_SNDIO)
++ endif()
+ if(USE_SNDIO)
+@@ -209,3 +217,5 @@
+
++ if(0)
+ check_include_files(aaudio/AAudio.h USE_AAUDIO)
++ endif()
+ if(USE_AAUDIO)
diff --git a/media-libs/cubeb/metadata.xml b/media-libs/cubeb/metadata.xml
index 2d8dcbf48bf3..8f8c47fd0ccd 100644
--- a/media-libs/cubeb/metadata.xml
+++ b/media-libs/cubeb/metadata.xml
@@ -11,6 +11,5 @@
</use>
<upstream>
<remote-id type="github">mozilla/cubeb</remote-id>
- <remote-id type="github">mozilla/cubeb-pulse-rs</remote-id>
</upstream>
</pkgmetadata>
next reply other threads:[~2023-11-28 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-28 14:13 Ionen Wolkens [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-01-01 20:42 [gentoo-commits] repo/gentoo:master commit in: media-libs/cubeb/files/, media-libs/cubeb/ Ionen Wolkens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1701180576.609161adcd475a78d6e233e03e0fadba246316f9.ionen@gentoo \
--to=ionen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox