diff options
| author | 2021-02-14 16:51:50 +0100 | |
|---|---|---|
| committer | 2021-02-14 16:55:33 +0100 | |
| commit | abfd0675a9b0deefe183b1822c5c3195550ca20d (patch) | |
| tree | 0422149fcc3cf6a263c5f80ec3946145cf4d43bc | |
| parent | sys-fs/btrfs-heatmap: New ebuild (diff) | |
| download | guru-abfd0675a9b0deefe183b1822c5c3195550ca20d.tar.gz guru-abfd0675a9b0deefe183b1822c5c3195550ca20d.tar.bz2 guru-abfd0675a9b0deefe183b1822c5c3195550ca20d.zip | |
media-video/qliveplayer: Fix dependencies.
dev-qt/qtdeclarative[widgets] pulls in dev-qt/qtcore, dev-qt/qtgui,
dev-qt/qtnetwork and dev-qt/qtwidgets.
Added dev-qt/qtquickcontrols and dev-qt/qtquickcontrols2.
Closes: https://bugs.gentoo.org/770529
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
| -rw-r--r-- | media-video/qliveplayer/qliveplayer-3.21.0-r1.ebuild | 59 | ||||
| -rw-r--r-- | media-video/qliveplayer/qliveplayer-3.21.1-r1.ebuild | 59 |
2 files changed, 118 insertions, 0 deletions
diff --git a/media-video/qliveplayer/qliveplayer-3.21.0-r1.ebuild b/media-video/qliveplayer/qliveplayer-3.21.0-r1.ebuild new file mode 100644 index 000000000..afb66067d --- /dev/null +++ b/media-video/qliveplayer/qliveplayer-3.21.0-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit xdg cmake optfeature python-single-r1 + +MY_P="QLivePlayer-${PV}" + +DESCRIPTION="A cute and useful Live Stream Player with danmaku support" +HOMEPAGE="https://github.com/IsoaSFlus/QLivePlayer" +SRC_URI="https://github.com/IsoaSFlus/QLivePlayer/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +COMMON_DEPEND=" + ${PYTHON_DEPS} + >=dev-qt/qtdeclarative-5.12:5[widgets] + >=dev-qt/qtquickcontrols-5.12:5 + >=dev-qt/qtquickcontrols2-5.12:5 +" +RDEPEND=" + ${COMMON_DEPEND} + $(python_gen_cond_dep ' + dev-python/aiohttp[${PYTHON_USEDEP}] + ') + media-video/ffmpeg + media-video/mpv + net-misc/curl +" +DEPEND=" + ${COMMON_DEPEND} + kde-frameworks/extra-cmake-modules:5 +" + +src_prepare() +{ + cmake_src_prepare + # fix python version + sed -i "s/python3/${EPYTHON}/" src/qlphelper/bilivideo.cpp \ + || die "Sed failed to set python version!" + sed -i "s/python3/${EPYTHON}/" src/qlphelper/danmakulauncher.cpp \ + || die "Sed failed to set python version!" + sed -i "s/python3/${EPYTHON}/" src/qlphelper/streamfinder.cpp \ + || die "Sed failed to set python version!" +} + +pkg_postinst() +{ + xdg_pkg_postinst + optfeature "twitch support" "net-misc/streamlink" + optfeature "youtube support" "dev-python/protobuf-python net-misc/streamlink" +} diff --git a/media-video/qliveplayer/qliveplayer-3.21.1-r1.ebuild b/media-video/qliveplayer/qliveplayer-3.21.1-r1.ebuild new file mode 100644 index 000000000..54fc27099 --- /dev/null +++ b/media-video/qliveplayer/qliveplayer-3.21.1-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit xdg cmake optfeature python-single-r1 + +MY_P="QLivePlayer-${PV}" + +DESCRIPTION="A cute and useful Live Stream Player with danmaku support" +HOMEPAGE="https://github.com/IsoaSFlus/QLivePlayer" +SRC_URI="https://github.com/IsoaSFlus/QLivePlayer/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +COMMON_DEPEND=" + ${PYTHON_DEPS} + >=dev-qt/qtdeclarative-5.15:5[widgets] + >=dev-qt/qtquickcontrols-5.15:5 + >=dev-qt/qtquickcontrols2-5.15:5 +" +RDEPEND=" + ${COMMON_DEPEND} + $(python_gen_cond_dep ' + dev-python/aiohttp[${PYTHON_USEDEP}] + ') + media-video/ffmpeg + media-video/mpv + net-misc/curl +" +DEPEND=" + ${COMMON_DEPEND} + kde-frameworks/extra-cmake-modules:5 +" + +src_prepare() +{ + cmake_src_prepare + # fix python version + sed -i "s/python3/${EPYTHON}/" src/qlphelper/bilivideo.cpp \ + || die "Sed failed to set python version!" + sed -i "s/python3/${EPYTHON}/" src/qlphelper/danmakulauncher.cpp \ + || die "Sed failed to set python version!" + sed -i "s/python3/${EPYTHON}/" src/qlphelper/streamfinder.cpp \ + || die "Sed failed to set python version!" +} + +pkg_postinst() +{ + xdg_pkg_postinst + optfeature "twitch support" "net-misc/streamlink" + optfeature "youtube support" "dev-python/protobuf-python net-misc/streamlink" +} |
