diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-10 23:40:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-10 23:40:16 +0100 |
commit | 51af5f0eb4cddbe6aa7953717873691d77aae9ff (patch) | |
tree | 1541525274162b033ebbc3ed38abaf335fbbd49a /media-sound/audiotools | |
parent | 7014a5a3ea0feffab9701fdd6b64cc7667a985af (diff) |
gentoo resync : 11.07.2019
Diffstat (limited to 'media-sound/audiotools')
-rw-r--r-- | media-sound/audiotools/Manifest | 4 | ||||
-rw-r--r-- | media-sound/audiotools/audiotools-3.1.1.ebuild | 92 | ||||
-rw-r--r-- | media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch | 36 | ||||
-rw-r--r-- | media-sound/audiotools/metadata.xml | 17 |
4 files changed, 149 insertions, 0 deletions
diff --git a/media-sound/audiotools/Manifest b/media-sound/audiotools/Manifest new file mode 100644 index 000000000000..25cb63281a04 --- /dev/null +++ b/media-sound/audiotools/Manifest @@ -0,0 +1,4 @@ +AUX audiotools-3.1.1-libcdio-paranoia.patch 1337 BLAKE2B 2594bf98a09df1064009dfa27764f64aeda7d92e43c82aaff3e44f6742db28f6fa2e87bd19d1f7eba8b82ac8ab338c9d7e7e7817817d49985809b927383d218d SHA512 cabc5f86e2977171c6616722640fa271d3c339bb223e229ec31697c81bd2c06c620a4b3d7a9057d7a90e05a2db7e2c7ca4d26403d60612ceebaaca0370845e10 +DIST audiotools-3.1.1.tar.gz 6325408 BLAKE2B 065b5dc23796ea8d1dc72dc581a8929fe26e08180af2f0719470d80d5c82be2455ffda28fe8fd5ca63ae078f7fa5c6b5153e8fae496736da8f97a4eae38c4876 SHA512 dfba0dab8ef1573a12366bb4d46552eeb6c23c4abde34d9df51238fc97f573135b564cc3e5dbcaf7691c4502d8173dc926d8eb5ecd169fe619278ae89ff24c3a +EBUILD audiotools-3.1.1.ebuild 1895 BLAKE2B 1114ec6ec3f67fbabd52ea288f36ddc42c4b043c9cf946520f620895ed237f52e305c1f850738b5e1a8c14246a562ad01c29f64f90f9c7a4d995ace5d233eab8 SHA512 bdd66316f877c9af0741ef3b8744dc2410b25abb010ca3a99dc8e756baf2e35af91370a42ee638ef9bf51d9601c52b81f9f5bed8f7058d38e775f52c11d7c269 +MISC metadata.xml 588 BLAKE2B 54e5abae3b9af738c32845f8ac3390948b89bc1781668a997b73fdb726f8e02c14e7e02bda930cd1e5615d42c58923c5a9535ff873764f6629409f374cd4fa36 SHA512 ea55e192d295d61967aa415d2f7520531f1d53be60357cf682f1863358275fdb9cbb28919f321ba8be8216b52317325b5926942c1c5f0167b2eac20aea81eaf2 diff --git a/media-sound/audiotools/audiotools-3.1.1.ebuild b/media-sound/audiotools/audiotools-3.1.1.ebuild new file mode 100644 index 000000000000..6b5fa12fc8a5 --- /dev/null +++ b/media-sound/audiotools/audiotools-3.1.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7} ) +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? ( virtual/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 +} diff --git a/media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch b/media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch new file mode 100644 index 000000000000..f0ac41661d9d --- /dev/null +++ b/media-sound/audiotools/files/audiotools-3.1.1-libcdio-paranoia.patch @@ -0,0 +1,36 @@ +Add support for Gentoo's dev-libs/libcdio-paranoia file layout and +versioning. + +--- audiotools-3.1.1/setup.py ++++ audiotools-3.1.1/setup.py +@@ -190,6 +190,14 @@ + return tuple(int(s) for s in pkg_config_stdout.split(".")) + except ValueError: + # version isn't all integers ++ # try to split off libcdio_paranoia extended versioning ++ if library == 'libcdio_paranoia': ++ version = pkg_config_stdout.partition('+')[2] ++ if version: ++ try: ++ return tuple(int(s) for s in version.split(".")) ++ except ValueError: ++ pass + return tuple() + else: + # library not found +--- audiotools-3.1.1/src/cdiomodule.h ++++ audiotools-3.1.1/src/cdiomodule.h +@@ -1,11 +1,6 @@ + #include <Python.h> +-#ifdef OLD_PARANOIA +-#include <cdio/cdda.h> +-#include <cdio/paranoia.h> +-#else +-#include <cdio/cdparanoia/cdda.h> +-#include <cdio/cdparanoia/paranoia.h> +-#endif ++#include <cdio/paranoia/cdda.h> ++#include <cdio/paranoia/paranoia.h> + + /******************************************************** + Audio Tools, a module and set of tools for manipulating audio data diff --git a/media-sound/audiotools/metadata.xml b/media-sound/audiotools/metadata.xml new file mode 100644 index 000000000000..6e38a80b6a68 --- /dev/null +++ b/media-sound/audiotools/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> + </maintainer> + <use> + <flag name="cue">Enable CUE sheet support</flag> + <flag name="dvda">Enable DVD-Audio support</flag> + <flag name="gui">Enable support for GUI tools</flag> + <flag name="twolame">Enable twolame support (MPEG Audio Layer 2 encoder)</flag> + </use> + <upstream> + <remote-id type="sourceforge">audiotools</remote-id> + </upstream> +</pkgmetadata> |