diff options
Diffstat (limited to 'media-libs/rubberband')
-rw-r--r-- | media-libs/rubberband/Manifest | 4 | ||||
-rw-r--r-- | media-libs/rubberband/metadata.xml | 4 | ||||
-rw-r--r-- | media-libs/rubberband/rubberband-1.9.0.ebuild | 66 |
3 files changed, 73 insertions, 1 deletions
diff --git a/media-libs/rubberband/Manifest b/media-libs/rubberband/Manifest index 20be50d0a22c..de6a90923374 100644 --- a/media-libs/rubberband/Manifest +++ b/media-libs/rubberband/Manifest @@ -1,3 +1,5 @@ DIST rubberband-1.8.2.tar.bz2 182232 BLAKE2B 991debac51e0a5516a35e1d063d5ea2c51b9d193b6a183200b0869a6743e184fe4296168d6caaea7b811a4022d25c08ca7909f05491a0e91cfe7dda532ed29cb SHA512 da677f9a843711c44c52c0153faa62e587ac7c010569523ef4fef7ce941b9d292e566f46147700e496f6cfff4c9f22f9901dcc93f2d701fdb9de152ddac0c3a6 +DIST rubberband-1.9.0.tar.bz2 192240 BLAKE2B dd97f80e01b05883645bf7c78730f8a3f873a60379cc209887591a28d0b6292e083c2f522db35ef9435c0a446eaa9b5acab8b5e2c9703514019491a939a804c9 SHA512 2226cfec98f280a12f874f60620c3bf09f7399a7808af5e9f5c9a5154b989cfbf3c4220e162d722e319a4ef046f81c6a07eac2b8c6035c8f6230f0a20b1577a8 EBUILD rubberband-1.8.2-r1.ebuild 1480 BLAKE2B fae62ef316e3f342bc3b860378913a3e079a8d5a9c51489ac1fc5d5ef8e2db05bb9d2c300f48a09d44e7f83fc5330307cc6d554b096909ac0be66706963d7fae SHA512 00aca9daf40563191ad1771fcc7941eacca21112f4d70fcbc8059c149906c416fdca45e404586606229a1f4549c02f34a62dde0bbeba3e5b6bba1d525f6c91c2 -MISC metadata.xml 255 BLAKE2B 7a492321189530430d5c71d5598f8a99b548e020d8ace46bb200f1f18abb3a59c4d0dff84c8dc1f78297137c25684d42386d793b84a02e2363fab4d6dcedd4fa SHA512 9e74b875aa129f5b8108121402291772fde4ac18a157dc60f7b3e19c318ee54cd1be54e283a68bc61562f2dc3f5b338b161028d673ff7baa267192ff3b7e8dc8 +EBUILD rubberband-1.9.0.ebuild 1680 BLAKE2B 7df3dc19cf79cccaf9a937d6aeaac6c16f12ed3f4f68e9436485c53d6076508cdc41bdfd4f1dcb39352865d82a921c5471f9bc89cc0492307a0ff7982df26eb9 SHA512 853ac9d8972b50383088d050e9b6c4ec0e06a7f752a0b74e977cda6a924f9121f81d416ddfb89578ed8cf7950c8c1bb46033fd058ab475bb782a2d57dc8532b4 +MISC metadata.xml 415 BLAKE2B 316ab3a0d89221f5db790350e3d6fb609656ffac3ab36ab1d53b1ea56d537005f41d5d4fec24e14000ba8dd32a094da7d05c1e814fba77bb4e209599129c685b SHA512 7b34bb720df7941a22d174b9f83407071110c9421b4207471f44a74c1bdb5cb6ef7b085386277c3d1f852ba48fc749e665337bc5d3b9fe862e76378a6d7ad4a0 diff --git a/media-libs/rubberband/metadata.xml b/media-libs/rubberband/metadata.xml index f79bb67acbd9..652b82c85b99 100644 --- a/media-libs/rubberband/metadata.xml +++ b/media-libs/rubberband/metadata.xml @@ -5,4 +5,8 @@ <email>proaudio@gentoo.org</email> <name>Gentoo ProAudio Project</name> </maintainer> +<use> + <flag name="programs">Builds also executable applications</flag> + <flag name="vamp">Enables vamp plugins support (Audio analysing plugins)</flag> +</use> </pkgmetadata> diff --git a/media-libs/rubberband/rubberband-1.9.0.ebuild b/media-libs/rubberband/rubberband-1.9.0.ebuild new file mode 100644 index 000000000000..97b291d58908 --- /dev/null +++ b/media-libs/rubberband/rubberband-1.9.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal + +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 ~ppc ~ppc64 ~sparc ~x86" +IUSE="ladspa static-libs +programs vamp" + +BDEPEND=" + virtual/pkgconfig +" +CDEPEND=" + media-libs/libsamplerate[${MULTILIB_USEDEP}] + media-libs/libsndfile + sci-libs/fftw:3.0[${MULTILIB_USEDEP}] + ladspa? ( media-libs/ladspa-sdk ) + vamp? ( media-libs/vamp-plugin-sdk[${MULTILIB_USEDEP}] ) +" +RDEPEND="${CDEPEND}" +DEPEND="${CDEPEND}" + +src_prepare() { + default + if ! use static-libs ; then + sed -e '/^all:/s/$(STATIC_TARGET)//' \ + -e '/^\tcp $(STATIC_TARGET)/d' \ + -i Makefile.in || die + fi + + sed -e '/cp -f.*JNI_TARGET/d' -i Makefile.in || die + + multilib_copy_sources +} + +multilib_src_configure() { + econf \ + $(use_enable programs ) \ + $(use_enable ladspa ) \ + $(use_enable vamp ) +} + +multilib_src_install() { + # fix libdir in .pc file + sed -iE "s%/lib$%/$(get_libdir)%g" "${BUILD_DIR}/rubberband.pc.in" || die "Failed to fix .pc file" + + emake INSTALL_BINDIR="${ED}/usr/bin" \ + INSTALL_INCDIR="${ED}/usr/include/rubberband" \ + INSTALL_LIBDIR="${ED}/usr/$(get_libdir)" \ + INSTALL_VAMPDIR="${ED}/usr/$(get_libdir)/vamp" \ + INSTALL_LADSPADIR="${ED}/usr/$(get_libdir)/ladspa" \ + INSTALL_LRDFDIR="${ED}/usr/share/ladspa/rdf" \ + INSTALL_PKGDIR="${ED}/usr/$(get_libdir)/pkgconfig" \ + install +} + +multilib_src_install_all() { + einstalldocs +} |