gentoo-overlay/media-sound/dr14_tmeter/dr14_tmeter-1.0.16.ebuild

45 lines
944 B
Bash

# Copyright 2017-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1
DESCRIPTION="Compute the DR14 value of the given audio files"
HOMEPAGE="http://dr14tmeter.sourceforge.net/"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/simon-r/dr14_t.meter.git"
else
KEYWORDS="~amd64"
SRC_URI="https://github.com/simon-r/dr14_t.meter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/dr14_t.meter-${PV}"
fi
LICENSE="GPL-3+"
SLOT="0"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
media-libs/flac
media-libs/mutagen
media-video/ffmpeg[encode]"
src_prepare() {
default
sed -i '/cmdclass/d' setup.py
}
python_install_all() {
distutils-r1_python_install_all
doman man/dr14_tmeter.1
}