commit:     47ddbd0abf290c1c6e37d632b5ddd73f88d5c338
Author:     Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
AuthorDate: Tue May 31 13:11:57 2022 +0000
Commit:     Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
CommitDate: Tue May 31 13:13:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=47ddbd0a

mpv-plugin/mpv_sponsorblock: initial import

Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>

 mpv-plugin/mpv_sponsorblock/Manifest               |  1 +
 mpv-plugin/mpv_sponsorblock/metadata.xml           |  8 ++++
 .../mpv_sponsorblock-20211223.ebuild               | 48 ++++++++++++++++++++++
 3 files changed, 57 insertions(+)

diff --git a/mpv-plugin/mpv_sponsorblock/Manifest 
b/mpv-plugin/mpv_sponsorblock/Manifest
new file mode 100644
index 000000000..b2e00684c
--- /dev/null
+++ b/mpv-plugin/mpv_sponsorblock/Manifest
@@ -0,0 +1 @@
+DIST mpv_sponsorblock-20211223.tar.gz 19424 BLAKE2B 
33e9f83ae36cd04363401edf030350f8e47ac296ef904e084a4c4d8c01192492b904720dbb45262fee813299d72def0314c3551a3c43b7c91d2a31bc842c3a4c
 SHA512 
7bbda9999ff1954ab3992d37d0633cc31b94517d42d32c32196b8343c8b8151f2f5ce01fcec9c19e50b29fd4088a140488b54c5e6ca42afc47f63d51107756e0

diff --git a/mpv-plugin/mpv_sponsorblock/metadata.xml 
b/mpv-plugin/mpv_sponsorblock/metadata.xml
new file mode 100644
index 000000000..be3f1030e
--- /dev/null
+++ b/mpv-plugin/mpv_sponsorblock/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Nicola Smaniotto</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20211223.ebuild 
b/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20211223.ebuild
new file mode 100644
index 000000000..ce442491c
--- /dev/null
+++ b/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20211223.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_MPV="rdepend"
+MPV_REQ_USE="lua"
+PYTHON_COMPAT=( python3_{8..10} )
+inherit mpv-plugin python-any-r1
+
+COMMIT="6743bd47d4cfce3ae3d5dd4f587f3193bd4fb9b2"
+MY_P="${PN}-${COMMIT}"
+
+DESCRIPTION="mpv script to skip sponsored segments of YouTube videos"
+HOMEPAGE="https://github.com/po5/mpv_sponsorblock";
+
+SRC_URI="https://github.com/po5/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64"
+
+DEPEND="
+       ${PYTHON_DEPS}
+"
+
+S="${WORKDIR}/${MY_P}"
+
+MPV_PLUGIN_FILES=(
+       sponsorblock_shared
+       sponsorblock.lua
+)
+
+src_prepare() {
+       default
+
+       # we install in the system folder
+       sed -e 's|scripts_dir =.*|scripts_dir = "/etc/mpv/scripts"|' \
+               -i sponsorblock.lua || die
+}
+
+pkg_postinst() {
+       # will make use of the correct user folders
+       # ref: https://github.com/po5/mpv_sponsorblock/pull/17
+       ewarn "This version of the plugin is not meant to be installed for"
+       ewarn "the whole system. It is advised to add \"local_database = no\""
+       ewarn "in script-opts/sponsorblock.conf to avoid trying to write"
+       ewarn "inside root-owned directories."
+}

Reply via email to