diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2023-07-29 09:44:45 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-07-29 09:44:50 +0200 |
commit | 002285a43018937d187e9c395be45bac7777ffa2 (patch) | |
tree | 080a52a0750f464cbc8fe5e89e7a2d61c39ef82b /media-libs/rubberband | |
parent | net-ftp/filezilla: add 3.65.0 (diff) | |
download | gentoo-002285a43018937d187e9c395be45bac7777ffa2.tar.gz gentoo-002285a43018937d187e9c395be45bac7777ffa2.tar.bz2 gentoo-002285a43018937d187e9c395be45bac7777ffa2.zip |
media-libs/rubberband: bump to 3.3.0
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-libs/rubberband')
-rw-r--r-- | media-libs/rubberband/Manifest | 1 | ||||
-rw-r--r-- | media-libs/rubberband/rubberband-3.3.0.ebuild | 87 |
2 files changed, 88 insertions, 0 deletions
diff --git a/media-libs/rubberband/Manifest b/media-libs/rubberband/Manifest index b7394da09764..b8652fff4d6c 100644 --- a/media-libs/rubberband/Manifest +++ b/media-libs/rubberband/Manifest @@ -1,3 +1,4 @@ DIST rubberband-3.1.2.tar.bz2 218361 BLAKE2B 26d2850adea8b564e49ce1eb24abcd9cd83d20a5eda6bcfc1254b3357a0e720b04faa9e9f2de769b65f6449afe138de9051505f745f69a73cc1275786029838c SHA512 b21605a0cf882e34fc2eada38a446220257e4b067475e36dfeef00d491425ad51398fbb49773dbd162683531b70f7c864ab02bff744d7e0dde7ed1d64aa1d327 DIST rubberband-3.1.3.tar.bz2 218532 BLAKE2B edc9ada6a67af2b45f15a6240b46d77830068595f5b873b50b55e91be29abc30600025713e7bd84e99d05ea1d0fcdb36873cbf966b00d7e805cfea99a4462e1d SHA512 c7e42020c543b1741e1d3e7ad79f92081177953f63a8b7b1c302a185cb7a0b828d9519e03a6df39c1cff356b324370313501df54bc74be32dcdb955c789b6485 DIST rubberband-3.2.1.tar.bz2 221756 BLAKE2B 6b2bb540037495892907285561982b2f87affa60b6ad84315654e92f3321be097dfc23fec9dde6eb9e3a7a3e38d6e3126f683dc88f442845722f321ddeb8c24d SHA512 c2278d874ebaeafa2ff6be4bdd3dea40235debce7ced8b93f1b73a93b5796b77ee5f6024cb539776f11bd936c2f100c084d7e91c006e81c1e6f3cf5eff602cbf +DIST rubberband-3.3.0.tar.bz2 223408 BLAKE2B 2dccdbadbb8a24f837e82e2399f3ca1f09e25bf332fc745252ef8d5b6c80f422a2708227690cc81d0cf10ea22c9f11b21f985c738079e3c80e9d97536758f0fd SHA512 0216c33a250d52d539ad7a0ec28ea94e6d4684a308a9cb62509221b3861f74717021bd79196a1f58a7715799757491f32e0475ad2ddb7884683bb9130c676591 diff --git a/media-libs/rubberband/rubberband-3.3.0.ebuild b/media-libs/rubberband/rubberband-3.3.0.ebuild new file mode 100644 index 000000000000..eb57f8180d7c --- /dev/null +++ b/media-libs/rubberband/rubberband-3.3.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2023 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 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="ladspa lv2 jni static-libs +programs test vamp" + +BDEPEND=" + virtual/pkgconfig +" +CDEPEND=" + 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=" + ${CDEPEND} + sys-devel/gcc:* +" +DEPEND="${CDEPEND}" +BDEPEND="test? ( dev-libs/boost[${MULTILIB_USEDEP}] )" +RESTRICT="!test? ( test )" + +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=( + --buildtype=release + -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 +} |