From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 692651584F2 for ; Wed, 12 Mar 2025 10:14:54 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 4F9EA343175 for ; Wed, 12 Mar 2025 10:14:54 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E71DC1103CB; Wed, 12 Mar 2025 10:14:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id E20A91103CB for ; Wed, 12 Mar 2025 10:14:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 67A22343150 for ; Wed, 12 Mar 2025 10:14:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C134E28E5 for ; Wed, 12 Mar 2025 10:14:45 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1741774302.094fdcf4149ba78197dad438b7545ff4a145cf90.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/aubio/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/aubio/aubio-0.4.9-r5.ebuild X-VCS-Directories: media-libs/aubio/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 094fdcf4149ba78197dad438b7545ff4a145cf90 X-VCS-Branch: master Date: Wed, 12 Mar 2025 10:14:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 21ef52f8-a90d-488d-990f-ea0ec126073b X-Archives-Hash: 16385d047ca23ec6c42194c347c22cc8 commit: 094fdcf4149ba78197dad438b7545ff4a145cf90 Author: Ionen Wolkens gentoo org> AuthorDate: Wed Mar 12 00:42:09 2025 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed Mar 12 10:11:42 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=094fdcf4 media-libs/aubio: use ffmpeg-compat Seems already fixed upstream, but not planning to handle a potential snapshot or backports + testing myself. Given no code changes, plans are to sync keywords back with stable when ready. Bug: https://bugs.gentoo.org/942964 Signed-off-by: Ionen Wolkens gentoo.org> media-libs/aubio/aubio-0.4.9-r5.ebuild | 182 +++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) diff --git a/media-libs/aubio/aubio-0.4.9-r5.ebuild b/media-libs/aubio/aubio-0.4.9-r5.ebuild new file mode 100644 index 000000000000..b2358128f12b --- /dev/null +++ b/media-libs/aubio/aubio-0.4.9-r5.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_REQ_USE='threads(+)' +inherit distutils-r1 ffmpeg-compat waf-utils + +DESCRIPTION="Library for audio labelling" +HOMEPAGE="https://aubio.org/" +WAFVERSION=2.0.27 +WAFTARBALL=waf-${WAFVERSION}.tar.bz2 +SRC_URI=" + https://aubio.org/pub/${P}.tar.bz2 + https://waf.io/${WAFTARBALL} +" + +LICENSE="GPL-3" +SLOT="0/5" +KEYWORDS="~amd64 ~loong ~ppc ~ppc64 ~sparc ~x86" +IUSE="blas doc double-precision examples ffmpeg fftw jack libsamplerate sndfile python test" + +REQUIRED_USE="${PYTHON_REQUIRED_USE} + ?? ( double-precision libsamplerate ) + doc? ( python ) +" + +RESTRICT="!test? ( test )" + +RDEPEND=" + blas? ( virtual/cblas ) + ffmpeg? ( media-video/ffmpeg-compat:6= ) + fftw? ( sci-libs/fftw:3.0= ) + jack? ( virtual/jack ) + libsamplerate? ( media-libs/libsamplerate ) + python? ( + ${PYTHON_DEPS} + dev-python/numpy[${PYTHON_USEDEP}] + ) + sndfile? ( media-libs/libsndfile ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + app-text/txt2man + virtual/pkgconfig + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" +BDEPEND="${DISTUTILS_DEPS}" + +DOCS=( AUTHORS ChangeLog README.md ) +PYTHON_SRC_DIR="${S}" + +PATCHES=( + "${FILESDIR}"/${P}-docdir.patch + "${FILESDIR}"/${P}-gcc-14.patch + "${FILESDIR}"/${P}-numpy-2.patch + "${FILESDIR}"/ffmpeg5.patch +) + +src_prepare() { + default + + # In case when aubio is already installed, calling of the + # `sphinx` function at the wscript causes a python interpreter + # crash on `import aubio` if aubio was built with =2. + # Additionally, it causes duplication of the documentation. + sed \ + -e '/\(doxygen\|sphinx\)(bld)$/d' \ + -e "s/package = 'blas'/package = 'cblas'/" \ + -i wscript || die + + sed -e "s/, 'sphinx.ext.intersphinx'//" -i doc/conf.py || die + + # ERROR: "Skipped: no test sounds, add some in 'python/tests/sounds/'!" + rm python/tests/test_source.py || die + + if ! use test; then + sed -e "/bld.*tests/d" -i wscript || die + fi + + # update waf to fix Python 3.12 compatibility + python_setup + sed -r \ + -e "s:python:${PYTHON}:" \ + -e "s:(WAFVERSION=).*:\1${WAFVERSION}:" \ + -e "s:(WAFURL=).*:\1'${DISTDIR}/${WAFTARBALL}':" \ + -e 's:^fetchwaf$:cp "${WAFURL}" "${WAFTARBALL}":' \ + -i scripts/get_waf.sh || die + emake expandwaf +} + +src_configure() { + # TODO: fix with >=ffmpeg-7 (or mask USE) then drop compat (bug #942964) + use ffmpeg && ffmpeg_compat_setup 6 + + python_setup + + local mywafconfargs=( + --enable-complex + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable blas) + $(use_enable doc docs) + $(use_enable double-precision double) + $(use_enable fftw fftw3) + $(use_enable ffmpeg avcodec) + $(use_enable jack) + $(use_enable libsamplerate samplerate) + $(use_enable sndfile) + ) + + use double-precision || mywafconfargs+=( $(use_enable fftw fftw3f) ) + + waf-utils_src_configure "${mywafconfargs[@]}" + + if use python ; then + cd "${PYTHON_SRC_DIR}" || die + distutils-r1_src_configure + fi +} + +src_compile() { + waf-utils_src_compile --notests + + if use python ; then + cd "${PYTHON_SRC_DIR}" || die + distutils-r1_src_compile + + if use doc ; then + # No API function available for this use case + pushd "${S}"/doc &>/dev/null || die + python_setup + LD_LIBRARY_PATH="${S}/build/src:${LD_LIBRARY_PATH}" \ + PYTHONPATH="${S%%/}-${EPYTHON/./_}/install/usr/lib/${EPYTHON}/site-packages:${PYTHONPATH}" \ + emake html + fi + + cd "${S}" || die + fi +} + +src_test() { + waf-utils_src_compile --alltests + + if use python ; then + cd "${PYTHON_SRC_DIR}" || die + distutils-r1_src_test + fi +} + +python_test() { + LD_LIBRARY_PATH="${S}/build/src:${LD_LIBRARY_PATH}" eunittest python/tests +} + +src_install() { + waf-utils_src_install + + if use examples; then + # install dist_noinst_SCRIPTS from Makefile.am + dodoc -r examples + fi + + if use python ; then + cd "${PYTHON_SRC_DIR}" || die + DOCS="" distutils-r1_src_install + newdoc python/README.md README.python + fi + + if use doc; then + dodoc doc/*.txt + docinto html + dodoc -r doc/_build/html/. + fi + + find "${ED}" -name "*.a" -delete || die +}