summaryrefslogtreecommitdiff
path: root/media-libs/rubberband
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-27 03:04:35 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-10-27 03:04:35 +0000
commit83d9fce566bb89f6976f36f5314bfc88b6d261fa (patch)
tree8d8a18f75ff0a6a98313046fcd757ee0135db98c /media-libs/rubberband
parentd0349ca0f4903608beca459a9db2068dab9fa6ea (diff)
gentoo auto-resync : 27:10:2024 - 03:04:35
Diffstat (limited to 'media-libs/rubberband')
-rw-r--r--media-libs/rubberband/Manifest2
-rw-r--r--media-libs/rubberband/rubberband-4.0.0.ebuild87
2 files changed, 89 insertions, 0 deletions
diff --git a/media-libs/rubberband/Manifest b/media-libs/rubberband/Manifest
index fed2514c571b..5ebc1ac3dfe5 100644
--- a/media-libs/rubberband/Manifest
+++ b/media-libs/rubberband/Manifest
@@ -1,3 +1,5 @@
DIST rubberband-3.3.0.tar.bz2 223408 BLAKE2B 2dccdbadbb8a24f837e82e2399f3ca1f09e25bf332fc745252ef8d5b6c80f422a2708227690cc81d0cf10ea22c9f11b21f985c738079e3c80e9d97536758f0fd SHA512 0216c33a250d52d539ad7a0ec28ea94e6d4684a308a9cb62509221b3861f74717021bd79196a1f58a7715799757491f32e0475ad2ddb7884683bb9130c676591
+DIST rubberband-4.0.0.tar.bz2 236705 BLAKE2B 4de34fd67e1e9188177d2cf7c67ff69b9134e754b13a0a791eef788bd032ee8c306d249c08aae320bd64ad6da6cd1ff1a4cd2c0aee54be2caca5cac95b6a9a1e SHA512 975ceead691c9fb9cb8b876d00d5661986d85ba59a97bb3c17bc8a835e8aeaf0bc324dd43ffa20f2854e019572b404d37d5e4868a99076d422f279359c44a7b4
EBUILD rubberband-3.3.0-r1.ebuild 2423 BLAKE2B 783ca54ffc1478a42ec81607225b9af222d115f4bbcdcd5cac3b740ebfe7c245bb897c2c8de88663e0ee52ae89d7b24c879dfcdd2ac5df0e26a71e132fce2252 SHA512 97ec963fc6717e1b450248549ec3d8d0307b39726c0b6251dd2fb94a2f1444d533cf3333b4ded9a7705e8b4d347a5cf8040a211546af621520e04c60a6606b5d
+EBUILD rubberband-4.0.0.ebuild 2429 BLAKE2B b5029185cbf0ac10893770c293d120a062d72d2e3d2411e6a0992ae518263472da048048e5fcb521f3c3de4fe31523c2369988c14d92a7c274d7a6e1f999265a SHA512 07fcb68be25deb80f9d25e7f67e9426060523a9052e44ca3d597b45f4508ba096bf927cf3572fcf653df1e7e11d19413d2deba46f9fa6b1d7f9de5a6d9954515
MISC metadata.xml 542 BLAKE2B 3a2847c1efdc85bd471215d4ab69c44a8e209e701de1d3aece7c1800dfc74107d6c93ea5736a3587a23146f2ed4a8a58f0829c305db9c32aebf92b9bfc8dff46 SHA512 852f9c71e2bce0df67a5a45bd7833472abc6e66dabe149a5a22938a0aef5c29477f2545d03fff5fe39e5eee14a21d30d0e7fcb7597f0b05c7570a0abf9265b54
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
+}