You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1008 B
47 lines
1008 B
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{8..11} )
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Audio synchronization feature for vidify"
|
|
HOMEPAGE="https://vidify.org"
|
|
SRC_URI="https://github.com/vidify/old-audiosync/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="LGPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE="debug test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
media-sound/pulseaudio
|
|
media-video/ffmpeg[openssl]
|
|
media-video/vidify[${PYTHON_USEDEP}]
|
|
sci-libs/fftw
|
|
debug? ( sci-visualization/gnuplot )
|
|
"
|
|
BDEPEND="test? ( dev-util/cmake )"
|
|
|
|
S="${WORKDIR}/old-audiosync-${PV}"
|
|
|
|
python_prepare_all() {
|
|
if use debug; then
|
|
sed -i -e "/defines.append(('DEBUG', '1'))/s/^# *//" setup.py || die
|
|
fi
|
|
distutils-r1_python_prepare_all
|
|
}
|
|
|
|
python_test() {
|
|
mkdir "test_build_${EPYTHON}" || die
|
|
cd "test_build_${EPYTHON}" || die
|
|
cmake .. -DBUILD_TESTING=YES || die
|
|
emake
|
|
emake test
|
|
cd .. || die
|
|
}
|