1 |
commit: 1c43f37800eaeb70ac747532c2f2d7ddca02dee3 |
2 |
Author: Jian Lin <jlin.gentoo <AT> outlook <DOT> com> |
3 |
AuthorDate: Fri Jul 9 02:13:05 2021 +0000 |
4 |
Commit: Jian Lin <jlin.gentoo <AT> outlook <DOT> com> |
5 |
CommitDate: Fri Jul 9 02:13:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c43f378 |
7 |
|
8 |
media-video/qliveplayer: bump to 3.22.4 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, 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.4.ebuild | 71 +++++++++++++++++++++++ |
15 |
2 files changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/media-video/qliveplayer/Manifest b/media-video/qliveplayer/Manifest |
18 |
index 8119f4ddb..2a4e376bf 100644 |
19 |
--- a/media-video/qliveplayer/Manifest |
20 |
+++ b/media-video/qliveplayer/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST QLivePlayer-3.22.1.tar.gz 640838 BLAKE2B 8552eefa4b8510b602e65fa553ba257467aaf5bd73710e90f690bcb19ceabc25dd4ae4f00143233df624f166f8170bf083aafbbec2d42e7988bd705037a9308e SHA512 45ec1f3d4d698a52107d07a7a55d457215d634b8106ac4facb9250960974f1ea683c338cedeb6f66fef428e88e05ef4286b3e95e22d23ed576c4bc69c5c7c50a |
23 |
DIST QLivePlayer-3.22.3.tar.gz 640956 BLAKE2B ed752d7321f90f70f68ab4366217116711b1f656eefc2f40b92572427dc11d168d2e9f88e6b0ba6c9e3024ede32922e06e04a208833858432e7ed923793b708d SHA512 c3ed5c8ffb4fa639132fdb0f42c20120a8e49c3e9135fe1234ec5eb6012e89a2e620ae4a3b669ecf995935c70f03fc154ca15833ff09ef6f83bba885e19e91a9 |
24 |
+DIST QLivePlayer-3.22.4.tar.gz 640975 BLAKE2B 313d6a68d9ab2914680e3c8f3478659fc8cae4e060f2006c0dba4441796c7880611ad1ca9d2d754bacd5cc542774eefcb0e46807b6dacc20a04c1538bda0394f SHA512 08fc3abb7b923baba09c60c86185431fe3754a1e06978247247e1482100e3b41c2a5185bc5fea1270fd2e7e9d90509880ea4ba4e8bb133cc4745f229c93744d3 |
25 |
|
26 |
diff --git a/media-video/qliveplayer/qliveplayer-3.22.4.ebuild b/media-video/qliveplayer/qliveplayer-3.22.4.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..ecc8b1752 |
29 |
--- /dev/null |
30 |
+++ b/media-video/qliveplayer/qliveplayer-3.22.4.ebuild |
31 |
@@ -0,0 +1,71 @@ |
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_{8..9} ) |
38 |
+ |
39 |
+inherit cmake optfeature python-single-r1 readme.gentoo-r1 xdg |
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 |
+ >=dev-qt/qtsvg-5.15:5 |
72 |
+" |
73 |
+DEPEND=" |
74 |
+ ${COMMON_DEPEND} |
75 |
+ kde-frameworks/extra-cmake-modules:5 |
76 |
+" |
77 |
+ |
78 |
+src_prepare() { |
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 |
+ cmake_src_install |
94 |
+ readme.gentoo_create_doc |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ xdg_pkg_postinst |
99 |
+ readme.gentoo_print_elog |
100 |
+ optfeature "twitch support" "net-misc/streamlink" |
101 |
+ optfeature "youtube support" "dev-python/protobuf-python net-misc/streamlink" |
102 |
+} |