From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1046B158042 for ; Sat, 26 Oct 2024 07:46:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA248E09D8; Sat, 26 Oct 2024 07:46:17 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 91F59E09D8 for ; Sat, 26 Oct 2024 07:46:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C8A5D343007 for ; Sat, 26 Oct 2024 07:46:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A0A4AE7 for ; Sat, 26 Oct 2024 07:46:15 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1729928755.15d9ba4f87895d5d0e988ebce342e642024c8e6e.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/rubberband/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/rubberband/Manifest media-libs/rubberband/rubberband-4.0.0.ebuild X-VCS-Directories: media-libs/rubberband/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 15d9ba4f87895d5d0e988ebce342e642024c8e6e X-VCS-Branch: master Date: Sat, 26 Oct 2024 07:46:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c7980635-c18c-447a-bb04-b87571cf9bb6 X-Archives-Hash: fbb0d673aa8297dae9d21e1c2ec9c1e5 commit: 15d9ba4f87895d5d0e988ebce342e642024c8e6e Author: Miroslav Šulc gentoo org> AuthorDate: Sat Oct 26 07:45:55 2024 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Sat Oct 26 07:45:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15d9ba4f media-libs/rubberband: bump to 4.0.0 Signed-off-by: Miroslav Šulc gentoo.org> media-libs/rubberband/Manifest | 1 + media-libs/rubberband/rubberband-4.0.0.ebuild | 87 +++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/media-libs/rubberband/Manifest b/media-libs/rubberband/Manifest index bc7b9091b0c9..fe81013ad418 100644 --- a/media-libs/rubberband/Manifest +++ b/media-libs/rubberband/Manifest @@ -1 +1,2 @@ DIST rubberband-3.3.0.tar.bz2 223408 BLAKE2B 2dccdbadbb8a24f837e82e2399f3ca1f09e25bf332fc745252ef8d5b6c80f422a2708227690cc81d0cf10ea22c9f11b21f985c738079e3c80e9d97536758f0fd SHA512 0216c33a250d52d539ad7a0ec28ea94e6d4684a308a9cb62509221b3861f74717021bd79196a1f58a7715799757491f32e0475ad2ddb7884683bb9130c676591 +DIST rubberband-4.0.0.tar.bz2 236705 BLAKE2B 4de34fd67e1e9188177d2cf7c67ff69b9134e754b13a0a791eef788bd032ee8c306d249c08aae320bd64ad6da6cd1ff1a4cd2c0aee54be2caca5cac95b6a9a1e SHA512 975ceead691c9fb9cb8b876d00d5661986d85ba59a97bb3c17bc8a835e8aeaf0bc324dd43ffa20f2854e019572b404d37d5e4868a99076d422f279359c44a7b4 diff --git a/media-libs/rubberband/rubberband-4.0.0.ebuild b/media-libs/rubberband/rubberband-4.0.0.ebuild new file mode 100644 index 000000000000..1bbd4bb4556a --- /dev/null +++ b/media-libs/rubberband/rubberband-4.0.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson-multilib flag-o-matic toolchain-funcs + +DESCRIPTION="An audio time-stretching and pitch-shifting library and utility program" +HOMEPAGE="https://www.breakfastquay.com/rubberband/" +SRC_URI="https://breakfastquay.com/files/releases/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="ladspa lv2 jni static-libs +programs test vamp" +RESTRICT="!test? ( test )" + +DEPEND=" + media-libs/libsamplerate[${MULTILIB_USEDEP}] + sci-libs/fftw:3.0[${MULTILIB_USEDEP}] + jni? ( >=virtual/jdk-1.8:* ) + ladspa? ( media-libs/ladspa-sdk[${MULTILIB_USEDEP}] ) + lv2? ( media-libs/lv2[${MULTILIB_USEDEP}] ) + programs? ( media-libs/libsndfile[${MULTILIB_USEDEP}] ) + vamp? ( media-libs/vamp-plugin-sdk[${MULTILIB_USEDEP}] ) +" +RDEPEND=" + ${DEPEND} + ppc? ( sys-devel/gcc:* ) +" +BDEPEND=" + virtual/pkgconfig + test? ( dev-libs/boost[${MULTILIB_USEDEP}] ) +" + +EMESON_BUILDTYPE=release + +src_prepare() { + sed -i \ + -e "s/if have_jni/if get_option('jni')/g" \ + -e "s/if have_ladspa/if get_option('ladspa')/g" \ + -e "s/if have_lv2/if get_option('lv2')/g" \ + -e "s/if have_vamp/if get_option('vamp')/g" \ + -e "s/if have_sndfile/if get_option('cmdline')/g" \ + "meson.build" || die + + sed -i -e "s/type: 'feature', value: 'auto'/type: 'boolean', value: 'false'/g" "meson_options.txt" || die + + default +} + +multilib_src_configure() { + if use ppc ; then + # bug #827203 + # meson doesn't respect/use LIBS but mangles LDFLAGS with libs + # correctly. Use this until we get a Meson test for libatomic. + append-ldflags -latomic + elif tc-is-clang && [[ $(tc-get-cxx-stdlib) == libstdc++ ]] ; then + # bug #860078 + # undefined reference to `__atomic_is_lock_free' + append-ldflags -latomic + fi + + local emesonargs=( + -Dfft=fftw + -Dresampler=libsamplerate + -Ddefault_library=$(use static-libs && echo "both" || echo "shared") + $(meson_use ladspa) + $(meson_use lv2) + $(meson_use jni) + $(meson_use programs cmdline) + $(meson_use vamp) + $(meson_use test tests) + ) + use jni && emesonargs+=( + -Dextra_include_dirs="$(java-config -g JAVA_HOME)/include,$(java-config -g JAVA_HOME)/include/linux" + ) + meson_src_configure +} + +multilib_src_test() { + meson_src_test --timeout-multiplier=30 +} + +multilib_src_install_all() { + ! use jni && find "${ED}" -name "*.a" -delete +}