commit: d80c90bd06fc24c248630011a2e7e76d9783f0df Author: Filip Kobierski <fkobi <AT> pm <DOT> me> AuthorDate: Mon Jun 9 18:21:57 2025 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Sat Jun 14 12:21:52 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d80c90bd
media-libs/libsoundtouch: add 2.4.0 with some improvements - explain subslot in one line - add cpu_flags_arm_neon USE - make `cond && use openp && action` consistent - do not explicitly disable integer samples - specify `-type f` in deleting .la Signed-off-by: Filip Kobierski <fkobi <AT> pm.me> Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/42522 media-libs/libsoundtouch/Manifest | 1 + .../libsoundtouch/libsoundtouch-2.4.0.ebuild | 61 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/media-libs/libsoundtouch/Manifest b/media-libs/libsoundtouch/Manifest index 24e923675286..90593db6b06b 100644 --- a/media-libs/libsoundtouch/Manifest +++ b/media-libs/libsoundtouch/Manifest @@ -1 +1,2 @@ DIST soundtouch-2.3.3.tar.gz 606780 BLAKE2B 266d20975468dc45f449ea7d79503657a4209427a811051344fbb5464dc59c1498f2089bccae921ae20eb266bb01d7933b2dd2ee05c6d4423ae1b215ab3dffb2 SHA512 9cc507e15be065fe404e3f9ac71cdc596474c4a86b04a4b969c6c3ed4aff865cdf6aee24929046818a7d3791f005778aea112d74ef4d8f60b05460755a08dbe3 +DIST soundtouch-2.4.0.tar.gz 607154 BLAKE2B 41237c616f2f6ea81b39e636c8c3e9c4f2f2e76b221a90d0d22a12b102cfb397cc8da69a92476770107741382206cef7ef8e9a2380c50c3e4936b7a5b73c4c03 SHA512 8bd199c6363104ba6c9af1abbd3c4da3567ccda5fe3a68298917817fc9312ecb0914609afba1abd864307b0a596becf450bc7073eeec17b1de5a7c5086fbc45e diff --git a/media-libs/libsoundtouch/libsoundtouch-2.4.0.ebuild b/media-libs/libsoundtouch/libsoundtouch-2.4.0.ebuild new file mode 100644 index 000000000000..bb32c7fe54fa --- /dev/null +++ b/media-libs/libsoundtouch/libsoundtouch-2.4.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic multilib-minimal toolchain-funcs + +MY_PN=${PN/lib} +MY_P=${MY_PN}-${PV} +DESCRIPTION="Audio processing library for changing tempo, pitch and playback rates" +HOMEPAGE="https://www.surina.net/soundtouch/ https://codeberg.org/soundtouch/soundtouch" +SRC_URI="https://www.surina.net/${MY_PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_PN}" + +LICENSE="LGPL-2.1" +SLOT="0/1" # subslot is libSoundTouch.so soname +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="openmp static-libs" +IUSE+=" cpu_flags_arm_neon cpu_flags_x86_sse" + +BDEPEND="virtual/pkgconfig" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default + sed -i "s:^\(dist_doc_DATA=\)COPYING.TXT :\1:" Makefile.am || die + + tc-is-clang && use openmp && append-libs omp + + eautoreconf +} + +multilib_src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable cpu_flags_arm_neon neon-optimizations) + $(use_enable cpu_flags_x86_sse x86-optimizations) + $(use_enable openmp) + $(use_enable static-libs static) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_compile() { + emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" +} + +multilib_src_install() { + emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}/html install +} + +multilib_src_install_all() { + find "${ED}" -type f -name '*.la' -delete || die +}
