Gentoo Archives: gentoo-commits

From: Jian Lin <jlin.gentoo@×××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/qliveplayer/
Date: Mon, 01 Mar 2021 17:58:38
Message-Id: 1614621225.40db11f9ff1bc428f289a0a1f6c6f47964c070be.jian@gentoo
1 commit: 40db11f9ff1bc428f289a0a1f6c6f47964c070be
2 Author: Jian Lin <jlin.gentoo <AT> outlook <DOT> com>
3 AuthorDate: Mon Mar 1 17:53:45 2021 +0000
4 Commit: Jian Lin <jlin.gentoo <AT> outlook <DOT> com>
5 CommitDate: Mon Mar 1 17:53:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=40db11f9
7
8 media-video/qliveplayer: bump to 3.22.0
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Jian Lin <jlin.gentoo <AT> outlook.com>
12
13 media-video/qliveplayer/Manifest | 1 +
14 media-video/qliveplayer/qliveplayer-3.22.0.ebuild | 73 +++++++++++++++++++++++
15 2 files changed, 74 insertions(+)
16
17 diff --git a/media-video/qliveplayer/Manifest b/media-video/qliveplayer/Manifest
18 index 4618de8a..b25f8c1a 100644
19 --- a/media-video/qliveplayer/Manifest
20 +++ b/media-video/qliveplayer/Manifest
21 @@ -1,2 +1,3 @@
22 DIST QLivePlayer-3.21.0.tar.gz 639005 BLAKE2B 254257cbab62b2578be5a2980c95b982b2da9223756a1efaf3098df1a313d4a252aac70bc032bc13f4e6e330e67d3525a6615d61cec494eab3d666b0ccfc3208 SHA512 755d975b37488979c257ecb8473a3702ee20859d1e1c10c42a7077b84e6b9a890dfb5af442c7a4a30c73bf2a088671ec14c1a4a95c849a724cabf88e6a407ec3
23 DIST QLivePlayer-3.21.1.tar.gz 639098 BLAKE2B 956edafc652d5124ea14357a8015450c6678d1fa46b9701b5e65e23ca824bcc4e2b2598ff9c5441210afaa32c21c21affb432b323b452053fa5a548816765c56 SHA512 8aca7a62ff4839ff0640b3d982fa6f498996add39d6ed7e4904db2530347c35a56c524cb3c75c85d3de7c635142ff1dc8e3ac69644eef19f4aa55d77a21dd2f1
24 +DIST QLivePlayer-3.22.0.tar.gz 640034 BLAKE2B 2038a1b003140525dd03ec14fb357b36826c28d3744133781622b89aee1c973db94ba823c2c64697eb1a3bc77a633f37e6deec14b2678c632f34f853c4881104 SHA512 cd8f7255c101565dd1b90d9e9a7faedfff7b423d5a8d5f7cd0d35d0e991ce28f06b2631a90e9c4d8f787daa0ceb921004a206eaa1a25332a8c592f57c282ab11
25
26 diff --git a/media-video/qliveplayer/qliveplayer-3.22.0.ebuild b/media-video/qliveplayer/qliveplayer-3.22.0.ebuild
27 new file mode 100644
28 index 00000000..532060f9
29 --- /dev/null
30 +++ b/media-video/qliveplayer/qliveplayer-3.22.0.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 2020-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +
39 +inherit xdg cmake optfeature python-single-r1 readme.gentoo-r1
40 +
41 +MY_P="QLivePlayer-${PV}"
42 +
43 +DESCRIPTION="A player and recorder for live streams and videos with danmaku support"
44 +HOMEPAGE="https://github.com/IsoaSFlus/QLivePlayer"
45 +SRC_URI="https://github.com/IsoaSFlus/QLivePlayer/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
46 +S="${WORKDIR}/${MY_P}"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +COMMON_DEPEND="
54 + ${PYTHON_DEPS}
55 + >=dev-qt/qtcore-5.15:5
56 + >=dev-qt/qtdeclarative-5.15:5
57 + >=dev-qt/qtgui-5.15:5
58 + >=dev-qt/qtnetwork-5.15:5
59 + >=dev-qt/qtwidgets-5.15:5
60 +"
61 +RDEPEND="
62 + ${COMMON_DEPEND}
63 + $(python_gen_cond_dep '
64 + dev-python/aiohttp[${PYTHON_USEDEP}]
65 + ')
66 + media-video/ffmpeg
67 + media-video/mpv
68 + net-misc/curl
69 + >=dev-qt/qtquickcontrols-5.15:5
70 + >=dev-qt/qtquickcontrols2-5.15:5
71 +"
72 +DEPEND="
73 + ${COMMON_DEPEND}
74 + kde-frameworks/extra-cmake-modules:5
75 +"
76 +
77 +src_prepare()
78 +{
79 + xdg_environment_reset
80 + cmake_src_prepare
81 + # respect PYTHON_SINGLE_TARGET
82 + grep 'p.start("python3", args);' src/qlphelper/bilivideo.cpp >/dev/null || die
83 + sed -i "s/python3/${EPYTHON}/" src/qlphelper/bilivideo.cpp || die
84 + grep 'dmcPyProcess->start("python3", dmcPy);' \
85 + src/qlphelper/danmakulauncher.cpp >/dev/null || die
86 + sed -i "s/python3/${EPYTHON}/" src/qlphelper/danmakulauncher.cpp || die
87 + grep 'proc->start("python3", args);' \
88 + src/qlphelper/streamfinder.cpp >/dev/null || die
89 + sed -i "s/python3/${EPYTHON}/" src/qlphelper/streamfinder.cpp || die
90 +}
91 +
92 +src_install()
93 +{
94 + cmake_src_install
95 + readme.gentoo_create_doc
96 +}
97 +
98 +pkg_postinst()
99 +{
100 + xdg_pkg_postinst
101 + readme.gentoo_print_elog
102 + optfeature "twitch support" "net-misc/streamlink"
103 + optfeature "youtube support" "dev-python/protobuf-python net-misc/streamlink"
104 +}