From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 455B5158091 for ; Mon, 20 Jun 2022 01:45:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D4B5E0B46; Mon, 20 Jun 2022 01:45:50 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4C0A2E0B46 for ; Mon, 20 Jun 2022 01:45:50 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 200353415EC for ; Mon, 20 Jun 2022 01:45:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B128A480 for ; Mon, 20 Jun 2022 01:45:47 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1655689539.155fb7ff1e66b5effd7dfc4cdf718769a7835156.sam@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-r2.ebuild X-VCS-Directories: media-libs/aubio/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 155fb7ff1e66b5effd7dfc4cdf718769a7835156 X-VCS-Branch: master Date: Mon, 20 Jun 2022 01:45:47 +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: 489fbb2e-a23d-433e-bca1-70484801a546 X-Archives-Hash: 190d513512111e047cd5f184e8803d57 commit: 155fb7ff1e66b5effd7dfc4cdf718769a7835156 Author: Sam James gentoo org> AuthorDate: Mon Jun 20 01:43:14 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jun 20 01:45:39 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=155fb7ff media-libs/aubio: update EAPI 6 -> 7; Python 3.10; fix Python tests - EAPI 6->7 (not 8 b/c waf-utils) - Add Python 3.10 - Python tests weren't actually being run before! They pass w/ all impls. Closes: https://bugs.gentoo.org/799722 Closes: https://bugs.gentoo.org/806866 Closes: https://bugs.gentoo.org/846014 Signed-off-by: Sam James gentoo.org> media-libs/aubio/aubio-0.4.9-r2.ebuild | 151 +++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) diff --git a/media-libs/aubio/aubio-0.4.9-r2.ebuild b/media-libs/aubio/aubio-0.4.9-r2.ebuild new file mode 100644 index 000000000000..f98faae91fcd --- /dev/null +++ b/media-libs/aubio/aubio-0.4.9-r2.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE='threads(+)' +inherit distutils-r1 waf-utils + +DESCRIPTION="Library for audio labelling" +HOMEPAGE="https://aubio.org/" +SRC_URI="https://aubio.org/pub/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0/5" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="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=" + ffmpeg? ( >=media-video/ffmpeg-2.6:0= ) + 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? ( + app-doc/doxygen + dev-python/sphinx + ) +" + +DOCS=( AUTHORS ChangeLog README.md ) +PYTHON_SRC_DIR="${S}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.4.9-docdir.patch + "${FILESDIR}"/ffmpeg5.patch +) + +src_prepare() { + default + + sed -e "s:doxygen:doxygen_disabled:" -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 +} + +src_configure() { + python_setup + + local mywafconfargs=( + --enable-complex + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(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 like distutils_install_for_testing 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/./_}/lib${PYTHONPATH:+:${PYTHONPATH}}" \ + emake dirhtml + 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/dirhtml/. + fi + + find "${ED}" -name "*.a" -delete || die +}