diff options
Diffstat (limited to 'media-libs/rubberband')
-rw-r--r-- | media-libs/rubberband/Manifest | 4 | ||||
-rw-r--r-- | media-libs/rubberband/metadata.xml | 1 | ||||
-rw-r--r-- | media-libs/rubberband/rubberband-3.1.2.ebuild | 87 |
3 files changed, 91 insertions, 1 deletions
diff --git a/media-libs/rubberband/Manifest b/media-libs/rubberband/Manifest index 518a95e70acb..4fcf1ced0005 100644 --- a/media-libs/rubberband/Manifest +++ b/media-libs/rubberband/Manifest @@ -1,4 +1,6 @@ AUX rubberband-3.1.1-build.patch 6962 BLAKE2B 78dce6bb9f749bf2504735302f8aec74eb1405496d376485fc020155652d7726676a7d1bc701ecf1ebecd012c974e50306f2c0eafcdd1a12d9f0f812597a299a SHA512 425b8fdb99d38c8b070b4e42d8809acaf16b8955403604a0329fcdb5dfe2237615712dab4b17fd5faa110946ef246f54d3171191725760b495b7f550b318f428 DIST rubberband-3.1.1.tar.bz2 217586 BLAKE2B 17f616eab563f0949dc89103775dac2c932b8ade79e7445524c87d9ced46ecd30d9cff53960e2638ce571c1f6ddbc9ad50e7371900b96eb0ec22c58cc80e585e SHA512 240ad6cd486f975099f76c6ac8bcf34add45670f58164089ffc9767ebef4c7dfdd7e58ad0c3d99a96f56af0d1f7669e55c5fc3e79277357c62fba21cb3bfe4cd +DIST rubberband-3.1.2.tar.bz2 218361 BLAKE2B 26d2850adea8b564e49ce1eb24abcd9cd83d20a5eda6bcfc1254b3357a0e720b04faa9e9f2de769b65f6449afe138de9051505f745f69a73cc1275786029838c SHA512 b21605a0cf882e34fc2eada38a446220257e4b067475e36dfeef00d491425ad51398fbb49773dbd162683531b70f7c864ab02bff744d7e0dde7ed1d64aa1d327 EBUILD rubberband-3.1.1-r1.ebuild 1777 BLAKE2B 006f2b1e51b9445703d547d8a8bbf5c0b793ab824738bbf9274b4b7acaf11b982f6bf52db67e982359c8b8456927d2a320889faefde2e92b6de8f3b9a0a95a28 SHA512 e42edbfa26c594a74acdf6230fc6f60fe7b4c928c698216e327c1528039c4c6238d69dd79c227ad3211ab96ea981e94ba67dd185bcbb407db5aada1b8d4d5e75 -MISC metadata.xml 491 BLAKE2B bda0db771d95de138274eb35f4c135f3bd9fb3a1b75ce60a8c57ad71e0c0a894924bb52060c8ca87e689f2a0f581213639de2ca5615a134dfecfa4f008698b2a SHA512 c549bcf465808927153a79f145b222379270d2813e150606382dcb1c15980a37a89d7f0178d3fee2fd3eb7216dd6ad989efe0a24e398f67af95872f6c92d570a +EBUILD rubberband-3.1.2.ebuild 2427 BLAKE2B 309b5bbde0d54854104d58b53335bcf50288e583d6c5301d085520f136e6ce7f3bf3a248c3e756457fdde17fcba88451ea9fc00d69dff31c0e4f4fdf28ec71f0 SHA512 dc0b68de4f8dc0cd8ff89177310a23a4d147f3a96986ca802a0bd9639093017b13013d27e07242a822820b3549f0cffb510d75cfb97b7086853c5302645f4a90 +MISC metadata.xml 542 BLAKE2B 3a2847c1efdc85bd471215d4ab69c44a8e209e701de1d3aece7c1800dfc74107d6c93ea5736a3587a23146f2ed4a8a58f0829c305db9c32aebf92b9bfc8dff46 SHA512 852f9c71e2bce0df67a5a45bd7833472abc6e66dabe149a5a22938a0aef5c29477f2545d03fff5fe39e5eee14a21d30d0e7fcb7597f0b05c7570a0abf9265b54 diff --git a/media-libs/rubberband/metadata.xml b/media-libs/rubberband/metadata.xml index 6f2b55160a8d..4ff27baf18e4 100644 --- a/media-libs/rubberband/metadata.xml +++ b/media-libs/rubberband/metadata.xml @@ -9,5 +9,6 @@ <flag name="jni">Enables building of Java Native Interface library</flag> <flag name="programs">Builds also executable applications</flag> <flag name="vamp">Enables vamp plugins support (Audio analysing plugins)</flag> + <flag name="lv2">Add support for Ladspa V2</flag> </use> </pkgmetadata> diff --git a/media-libs/rubberband/rubberband-3.1.2.ebuild b/media-libs/rubberband/rubberband-3.1.2.ebuild new file mode 100644 index 000000000000..be550007a6d4 --- /dev/null +++ b/media-libs/rubberband/rubberband-3.1.2.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 ~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 )" +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 +} |