Gentoo Archives: gentoo-commits

From: Nicola Smaniotto <smaniotto.nicola@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: mpv-plugin/mpv_sponsorblock/
Date: Tue, 29 Nov 2022 14:09:22
Message-Id: 1669730803.f9d19e277e997f337781e73d00f7e80e7f953304.smaniotto.nicola@gentoo
1 commit: f9d19e277e997f337781e73d00f7e80e7f953304
2 Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
3 AuthorDate: Tue Nov 29 13:50:11 2022 +0000
4 Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
5 CommitDate: Tue Nov 29 14:06:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f9d19e27
7
8 mpv-plugin/mpv_sponsorblock: add 20220924
9
10 Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>
11
12 mpv-plugin/mpv_sponsorblock/Manifest | 1 +
13 .../mpv_sponsorblock-20220924.ebuild | 37 ++++++++++++++++++++++
14 2 files changed, 38 insertions(+)
15
16 diff --git a/mpv-plugin/mpv_sponsorblock/Manifest b/mpv-plugin/mpv_sponsorblock/Manifest
17 index b2e00684c..85b6dc4fa 100644
18 --- a/mpv-plugin/mpv_sponsorblock/Manifest
19 +++ b/mpv-plugin/mpv_sponsorblock/Manifest
20 @@ -1 +1,2 @@
21 DIST mpv_sponsorblock-20211223.tar.gz 19424 BLAKE2B 33e9f83ae36cd04363401edf030350f8e47ac296ef904e084a4c4d8c01192492b904720dbb45262fee813299d72def0314c3551a3c43b7c91d2a31bc842c3a4c SHA512 7bbda9999ff1954ab3992d37d0633cc31b94517d42d32c32196b8343c8b8151f2f5ce01fcec9c19e50b29fd4088a140488b54c5e6ca42afc47f63d51107756e0
22 +DIST mpv_sponsorblock-20220924.tar.gz 19518 BLAKE2B bcf132f6ccfea2dc43fb9134ae03c7eb3fa712c2fb878a864f70ba6546086265c5a9510248f4032d9a1a024d8f7fbf569d711cc23962335bbfcce57ca9a540e1 SHA512 44621fbfdbbb7ebdc167040cc4db3e8290ce359574366f14e16f8c815090eea94e13ef0a73ba606a71b6cda64af039c361741d601c987a0a6d97027e0b98c0b6
23
24 diff --git a/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20220924.ebuild b/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20220924.ebuild
25 new file mode 100644
26 index 000000000..e7b800c44
27 --- /dev/null
28 +++ b/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20220924.ebuild
29 @@ -0,0 +1,37 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +USE_MPV="rdepend"
36 +MPV_REQ_USE="lua"
37 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
38 +inherit mpv-plugin python-single-r1
39 +
40 +COMMIT="248d108c1280e05de551c42867aebb72cf0c83b9"
41 +DESCRIPTION="mpv script to skip sponsored segments of YouTube videos"
42 +HOMEPAGE="https://github.com/po5/mpv_sponsorblock"
43 +SRC_URI="https://github.com/po5/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
44 +S="${WORKDIR}/${PN}-${COMMIT}"
45 +
46 +LICENSE="GPL-3"
47 +KEYWORDS="~amd64"
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 +
50 +RDEPEND="
51 + ${PYTHON_DEPS}
52 +"
53 +
54 +MPV_PLUGIN_FILES=(
55 + sponsorblock_shared
56 + sponsorblock.lua
57 +)
58 +
59 +src_prepare() {
60 + default
61 +
62 + # we 1) install in the system folder 2) use EPYTHON
63 + sed -i sponsorblock.lua \
64 + -e 's|scripts_dir =.*|scripts_dir = "/etc/mpv/scripts"|' \
65 + -e "s|python3|${EPYTHON}|" || die
66 +}