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