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

44 lines
902 B
Bash
Raw Normal View History

2023-02-28 10:10:44 +03:00
# 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
2023-02-28 10:10:44 +03:00
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"
fi
2023-02-28 10:10:44 +03:00
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
}