media-video/vidify: move to ::gentoo

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2021-05-22 11:27:45 +02:00
parent 631681a406
commit c4220ead28
6 changed files with 0 additions and 146 deletions

View File

@@ -1 +0,0 @@
DIST vidify-audiosync-0.3.0.tar.gz 61854564 BLAKE2B 106002e578ad9e04af1abf3e7ae67c495c2c3070c62be84d6fa836898b035cd5933bd094c8d7da5f60275cc8f556bee9f921ee7a3264434ce8e1722e6614b903 SHA512 a283feb59b027d85d60ecfb1be1960760870cb66a5d3babe7e1687f3193e12ac7c1c09aafa83d99b89ce65f13e86e0ee7db2f5acd3e1eecc70d00beffc29b5dd

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrewammerlaan@gentoo.org</email>
<name>Andrew Ammerlaan</name>
</maintainer>
</pkgmetadata>

View File

@@ -1,41 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
inherit distutils-r1
DESCRIPTION="Audio synchronization feature for vidify "
HOMEPAGE="https://github.com/vidify/audiosync https://vidify.org"
SRC_URI="https://github.com/vidify/audiosync/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug"
RDEPEND="
media-sound/pulseaudio
media-video/ffmpeg[openssl]
media-video/vidify[${PYTHON_USEDEP}]
sci-libs/fftw
debug? ( sci-visualization/gnuplot )"
S="${WORKDIR}/audiosync-${PV}"
src_prepare() {
use debug && sed -i -e "/defines.append(('DEBUG', '1'))/s/^# *//" setup.py
default
}
src_test() {
mkdir test_build
cd test_build
cmake .. -DBUILD_TESTING=YES
emake
emake test
cd ..
}

View File

@@ -1 +0,0 @@
DIST vidify-2.2.6.tar.gz 2906511 BLAKE2B 3df48ca57e102f664852e2fc2abeb3d19427673e1fec5144a8c0afda112a0f3b281b18db43b4326244266d6e9dfbcb2443319ddad3f864098a61bd1e3c966307 SHA512 15487ee9dcbe647b2b287bd2eb3c09962b557320313a9a3885fb3c0d6af945909531111d5297c1a5fb5b451af5df6fd968b3953bbf79af113980ed368a5674b5

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrewammerlaan@gentoo.org</email>
<name>Andrew Ammerlaan</name>
</maintainer>
<use>
<flag name="vlc">Use python-vlc as backend for vidify</flag>
<flag name="mpv">Use python-mpv as backend for vidify</flag>
<flag name="zeroconf">Use an external network player</flag>
<flag name="dbus">Support local MPRIS players</flag>
</use>
</pkgmetadata>

View File

@@ -1,79 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit xdg distutils-r1 optfeature virtualx
DESCRIPTION="Watch music videos in real time for the songs playing on your device"
HOMEPAGE="https://github.com/vidify/vidify https://vidify.org"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="dbus vlc mpv zeroconf"
REQUIRED_USE="|| ( vlc mpv zeroconf )"
RDEPEND="
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/QtPy[gui,webengine,${PYTHON_USEDEP}]
net-misc/lyricwikia[${PYTHON_USEDEP}]
net-misc/youtube-dl[${PYTHON_USEDEP}]
dbus? ( dev-python/pydbus[${PYTHON_USEDEP}] )
!dbus? ( dev-python/tekore[${PYTHON_USEDEP}] )
mpv? ( dev-python/python-mpv[${PYTHON_USEDEP}] )
vlc? ( dev-python/python-vlc[${PYTHON_USEDEP}] )
zeroconf? ( dev-python/zeroconf[${PYTHON_USEDEP}] )
"
distutils_enable_tests unittest
python_prepare_all() {
# skip online test
rm tests/api/test_spotify_web.py || die
rm tests/player/test_external.py || die
# this needs dbus and a player running
rm tests/api/test_mpris.py || die
# can't parse non-existent config
rm tests/test_api_and_player_data.py || die
# do not hard depend on this
sed -i \
-e '/qdarkstyle/d' \
-e '/python-vlc/d' \
-e '/python-mpv/d' \
-e '/pydbus/d' \
-e '/tekore/d' \
-e '/zeroconf/d' \
-e '/If PySide2 is installed and PyQt5/,/PyQtWebEngine/d' \
setup.py || die
distutils-r1_python_prepare_all
}
python_test() {
virtx "${EPYTHON}" -m unittest discover -v
}
pkg_postinst() {
xdg_pkg_postinst
elog "If video playback is not working please check 'vidify --debug' for missing-codec-errors and recompile media-video/vlc or media-video/mpv with the missing codecs"
optfeature "using a MPRIS(D-Bus) audio player (e.g spotify)" dev-python/pydbus
optfeature "using the Spotify Web API as audio player" dev-python/tekore
optfeature "using an external network player" dev-python/zeroconf
optfeature "using media-video/mpv for video playback" dev-python/python-mpv
optfeature "using media-video/vlc for video playback" dev-python/python-vlc
optfeature "'vidify --dark-mode'" dev-python/qdarkstyle
optfeature "'vidify --audiosync'" media-video/vidify-audiosync
}