diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-03 00:07:26 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-03 00:07:26 +0100 |
commit | a3bb28551df94028000fb72308a9e9baa01458b0 (patch) | |
tree | 33b14c7bf0dffbd5bb04dbd5b395514ebdda4896 /media-libs/aubio | |
parent | 6657c680376cedf378fcf328e5fa03ed3b41d580 (diff) |
gentoo auto-resync : 03:06:2024 - 00:07:25
Diffstat (limited to 'media-libs/aubio')
-rw-r--r-- | media-libs/aubio/Manifest | 2 | ||||
-rw-r--r-- | media-libs/aubio/aubio-0.4.9-r3.ebuild | 167 |
2 files changed, 169 insertions, 0 deletions
diff --git a/media-libs/aubio/Manifest b/media-libs/aubio/Manifest index 889f9ed890eb..19d51746da3a 100644 --- a/media-libs/aubio/Manifest +++ b/media-libs/aubio/Manifest @@ -2,5 +2,7 @@ AUX aubio-0.4.9-docdir.patch 1192 BLAKE2B 617f5a63d51440eba157687b752822b3e14316 AUX aubio-0.4.9-remove-universal-newlines.patch 1198 BLAKE2B 9cd5a5b3880075706938df7c008c6dc160e48402b0cfddf41f7d248c4d0e91a7531a1e87b40d51569220d720b679126ab02693588c4bf4a8c9b12af2a8653665 SHA512 0675f850ddbff6857b1fb7cc6a0f6f5188436fdf74e6c4c123d734e02eee82a0914edf26d2a99351dca4ff9b9a4715d86b24a747746d2b1c4bf4ea7d2cdaf2f1 AUX ffmpeg5.patch 745 BLAKE2B f353faf80b4fdfb26b2d8a135ab0415ac3f6780a2b5894e18b12e137fb109b1b89b4c8500f8dc1e809d763f851ce186f199f32c680a80c816f40ece997639d0f SHA512 8eeeac40bbf4e1faf7a99d2cbfe4a7b3bc85b5b5927c7bf69ef774ad06fcedcb0a84296dce7300f4907b2ca16525e6db854acad371d788c7f5fb7bd4a94efc86 DIST aubio-0.4.9.tar.bz2 397604 BLAKE2B b849d92678ea8fb20e17921b1a61fdc85a84d4a528acfefa3278169ab5f7fe935217ec37dd9f931202f0f0a1fd3a9518372afbce34cc2dd3ca30c6b4e5d9a301 SHA512 0cb81bb4b15051db3f3f4d160d500af56fdfb237e0a74e3f366f53c2870030aa0a7cee8469a611a9694c36b8866d3d42ffb48241c999de08f3fee43e6d903130 +DIST waf-2.0.27.tar.bz2 693624 BLAKE2B 34dcb84df2f42d7c92988226ae0208a9407a091f79e47b8abe1d3b33105d58df06072bfb3c22a7bb6dfa8f083224642c55fa2c9fc0110a2d49d3d10ea754c928 SHA512 a62dbb1ee89d88969c31d3f634577d80b8a595460d445cae9b42ca423cfcbbb96347b5b67697165833f3dd496b4bc7e312e166af86cb3b97ed57ffe59f46b98a EBUILD aubio-0.4.9-r2.ebuild 3188 BLAKE2B ead6dd22007fe53e2f9a4ce33d1fe0ee1e9ff4b898eb2ff5c9cb4609360c20f187c9feca1530f42dfc04bb6a2f86d9fec1406c9065aa2f92b779cb2c218bf09c SHA512 542e18d674c33b54718cdcf11700c5476356071534db7b0986e32c10a706a2fa35295d7af5a2a5c147a3e22182817c9900aea7c0c830d51cd62526eb8c759200 +EBUILD aubio-0.4.9-r3.ebuild 3531 BLAKE2B df93ac0477da16296c2861b0b7b716801dc3359b5423ce9289f424f7f62ca4122ea2c4c3370f33a0a1eb8a1c28a9f27082ca2a1da54a4619596b25ed820381a8 SHA512 4dfff6c9ce1a46422f3707791de1037c88855a5655482f62c8dbcc5b00a156f331be91c4269336c37197221e67a6f45d107fbbf73a1dd8ec4874b651e6814991 MISC metadata.xml 424 BLAKE2B 427627520c0e31649dc3bfa4011cb80b48cac5bc2ba6bea55812b033b1a92e2a07477729f83057ae0c213c82ed20899e05978e6968db3d3ff166e153c4b1c1ea SHA512 a9cb14aef216e074f21616493f1a9276c43f05709b14492de8cbd90d4f19878bc9f905545327985639f05ee75234d11689eba519f88c6bafaa8b848bd887178d diff --git a/media-libs/aubio/aubio-0.4.9-r3.ebuild b/media-libs/aubio/aubio-0.4.9-r3.ebuild new file mode 100644 index 000000000000..4a910ed12d2e --- /dev/null +++ b/media-libs/aubio/aubio-0.4.9-r3.ebuild @@ -0,0 +1,167 @@ +# Copyright 1999-2024 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..12} ) +PYTHON_REQ_USE='threads(+)' +inherit distutils-r1 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="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-text/doxygen + dev-python/sphinx[${PYTHON_USEDEP}] + ) +" +BDEPEND="${DISTUTILS_DEPS}" + +DOCS=( AUTHORS ChangeLog README.md ) +PYTHON_SRC_DIR="${S}" + +PATCHES=( + "${FILESDIR}"/${P}-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 + + # update waf to fix Python 3.12 compatibility + sed -r \ + -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() { + 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 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 +} |