1 |
commit: bce959d51807c43b500d0c354b9805fa80e18df5 |
2 |
Author: Jian Lin <jlin.gentoo <AT> outlook <DOT> com> |
3 |
AuthorDate: Sat Dec 26 19:59:35 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sat Dec 26 19:59:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bce959d5 |
7 |
|
8 |
media-video/qliveplayer: version bump to 3.21.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, 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.21.0.ebuild | 60 +++++++++++++++++++++++ |
15 |
2 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/media-video/qliveplayer/Manifest b/media-video/qliveplayer/Manifest |
18 |
index 9044a522..1775acc8 100644 |
19 |
--- a/media-video/qliveplayer/Manifest |
20 |
+++ b/media-video/qliveplayer/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST QLivePlayer-3.20.1.tar.gz 1504693 BLAKE2B 815e85aa0c190b0d44a20bae81b6533befe3a73402e2f31c5d56c330fd9542c6d8bdd9aae81a39bbf42397c614715de55d67b8fa2dfdb08e5fb6c487133b3605 SHA512 896e7313666a94c7aeacf776782acd1514d7d39cbeb45054b61c5391b90418d1b39da9e33b152d906710c7cdd153d14b7a8f0d8e8848ebcae9825a2f55b808b1 |
23 |
DIST QLivePlayer-3.20.2.tar.gz 638142 BLAKE2B f9b7f6f69a4d751b57441e61b670a909408317801463415c8b0c311766bdbf16913c811e11c7a31096a6609b2e5e6f8ae64688d03d04dd1ebab97ebdf1644e08 SHA512 9ea868c59ff15ee6efa4a9c02578fee628c0f2985203d2696496512f9e1fd05b5d1642d4812711ef3be3843077b6f655288f07d48da7ceb80add20e7442cbf5b |
24 |
+DIST QLivePlayer-3.21.0.tar.gz 639005 BLAKE2B 254257cbab62b2578be5a2980c95b982b2da9223756a1efaf3098df1a313d4a252aac70bc032bc13f4e6e330e67d3525a6615d61cec494eab3d666b0ccfc3208 SHA512 755d975b37488979c257ecb8473a3702ee20859d1e1c10c42a7077b84e6b9a890dfb5af442c7a4a30c73bf2a088671ec14c1a4a95c849a724cabf88e6a407ec3 |
25 |
|
26 |
diff --git a/media-video/qliveplayer/qliveplayer-3.21.0.ebuild b/media-video/qliveplayer/qliveplayer-3.21.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..45575fd8 |
29 |
--- /dev/null |
30 |
+++ b/media-video/qliveplayer/qliveplayer-3.21.0.ebuild |
31 |
@@ -0,0 +1,60 @@ |
32 |
+# Copyright 1999-2020 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 |
40 |
+ |
41 |
+MY_P="QLivePlayer-${PV}" |
42 |
+ |
43 |
+DESCRIPTION="A cute and useful Live Stream Player 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" |
51 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
52 |
+ |
53 |
+COMMON_DEPEND=" |
54 |
+ ${PYTHON_DEPS} |
55 |
+ >=dev-qt/qtcore-5.12 |
56 |
+ >=dev-qt/qtgraphicaleffects-5.12 |
57 |
+ >=dev-qt/qtquickcontrols-5.12 |
58 |
+ >=dev-qt/qtquickcontrols2-5.12 |
59 |
+" |
60 |
+RDEPEND=" |
61 |
+ ${COMMON_DEPEND} |
62 |
+ $(python_gen_cond_dep ' |
63 |
+ dev-python/aiohttp[${PYTHON_USEDEP}] |
64 |
+ ') |
65 |
+ media-video/mpv |
66 |
+ media-video/ffmpeg |
67 |
+ net-misc/curl |
68 |
+" |
69 |
+DEPEND=" |
70 |
+ ${COMMON_DEPEND} |
71 |
+ kde-frameworks/extra-cmake-modules |
72 |
+" |
73 |
+ |
74 |
+src_prepare() |
75 |
+{ |
76 |
+ cmake_src_prepare |
77 |
+ # fix python version |
78 |
+ sed -i "s/python3/${EPYTHON}/" src/qlphelper/bilivideo.cpp \ |
79 |
+ || die "Sed failed to set python version!" |
80 |
+ sed -i "s/python3/${EPYTHON}/" src/qlphelper/danmakulauncher.cpp \ |
81 |
+ || die "Sed failed to set python version!" |
82 |
+ sed -i "s/python3/${EPYTHON}/" src/qlphelper/streamfinder.cpp \ |
83 |
+ || die "Sed failed to set python version!" |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() |
87 |
+{ |
88 |
+ xdg_pkg_postinst |
89 |
+ optfeature "twitch support" "net-misc/streamlink" |
90 |
+ optfeature "youtube support" "net-misc/streamlink dev-python/protobuf-python" |
91 |
+} |