diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2022-06-28 10:34:54 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-06-28 10:34:54 +0200 |
commit | bcfcf95ae43759af629895eede5e27adf1d31a13 (patch) | |
tree | 8f84e654dba8b30ebf6986d1f06ce448d7d938eb /media-sound/audiotools | |
parent | media-libs/libmtp: fixed udev reload, eapi8, deps versions cleanup (diff) | |
download | gentoo-bcfcf95ae43759af629895eede5e27adf1d31a13.tar.gz gentoo-bcfcf95ae43759af629895eede5e27adf1d31a13.tar.bz2 gentoo-bcfcf95ae43759af629895eede5e27adf1d31a13.zip |
media-sound/audiotools: eapi8, added python 3.10
Bug: https://bugs.gentoo.org/846050
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/audiotools')
-rw-r--r-- | media-sound/audiotools/audiotools-3.1.1-r1.ebuild | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/media-sound/audiotools/audiotools-3.1.1-r1.ebuild b/media-sound/audiotools/audiotools-3.1.1-r1.ebuild new file mode 100644 index 000000000000..e564fa51638b --- /dev/null +++ b/media-sound/audiotools/audiotools-3.1.1-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +DESCRIPTION="A collection of command line audio tools" +HOMEPAGE="http://audiotools.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="aac alsa cdda cdr cue dvda flac gui twolame mp3 opus pulseaudio vorbis wavpack" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + alsa? ( media-libs/alsa-lib ) + cdda? ( dev-libs/libcdio-paranoia:0= ) + dvda? ( media-libs/libdvd-audio ) + twolame? ( media-sound/twolame ) + mp3? ( || ( media-sound/mpg123 media-sound/lame ) ) + opus? ( + media-libs/opus + media-libs/opusfile + ) + pulseaudio? ( media-sound/pulseaudio ) + vorbis? ( media-libs/libvorbis ) + wavpack? ( media-sound/wavpack ) +" +RDEPEND="${DEPEND} + aac? ( + media-libs/faad2 + media-libs/faac + ) + cdr? ( app-cdr/cdrtools ) + cue? ( app-cdr/cdrdao ) + flac? ( media-libs/flac ) + gui? ( + $(python_gen_impl_dep 'tk(+)') + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/urwid[${PYTHON_USEDEP}] + ) +" + +# lots of random failures +RESTRICT="test" + +PATCHES=( "${FILESDIR}"/${P}-libcdio-paranoia.patch ) + +src_prepare() { + default + + local USEFLAG_LIBS=( + cdda:libcdio_paranoia + dvda:libdvd-audio + pulseaudio:libpulse + alsa:alsa + mp3:libmpg123 + mp3:mp3lame + vorbis:vorbisfile + vorbis:vorbisenc + opus:opusfile + opus:opus + twolame:twolame + ) + + # enable/disable deps based on USE flags + local flag_lib flag lib + for flag_lib in "${USEFLAG_LIBS[@]}"; do + flag=${flag_lib/:*} + lib=${flag_lib/*:} + use ${flag} || { sed -i "/^${lib}:/s/probe/no/" setup.cfg || die; } + done +} + +python_compile_all() { + emake -C docs +} + +python_test() { + cd test || die + "${PYTHON}" test.py || die +} + +python_install_all() { + doman docs/*.{1,5} + distutils-r1_python_install_all +} |