aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-06-13 17:30:46 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-06-17 02:54:01 +0500
commit56f6f252061d80b1237310ccc8f2b4074a459233 (patch)
treeffe7b30094a9d5457996d9f920bf6b4d90f7b604 /mpv-plugin/mpv_sponsorblock
parentdev-util/glsl-language-server: Add glsl-language-server-0.3.7 (diff)
downloadguru-56f6f252061d80b1237310ccc8f2b4074a459233.tar.gz
guru-56f6f252061d80b1237310ccc8f2b4074a459233.tar.bz2
guru-56f6f252061d80b1237310ccc8f2b4074a459233.zip
mpv-plugin/mpv_sponsorblock: fix python usage
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'mpv-plugin/mpv_sponsorblock')
-rw-r--r--mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20211223.ebuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20211223.ebuild b/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20211223.ebuild
index ce442491c..196c3ea7f 100644
--- a/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20211223.ebuild
+++ b/mpv-plugin/mpv_sponsorblock/mpv_sponsorblock-20211223.ebuild
@@ -5,26 +5,23 @@ EAPI=8
USE_MPV="rdepend"
MPV_REQ_USE="lua"
-PYTHON_COMPAT=( python3_{8..10} )
-inherit mpv-plugin python-any-r1
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
+inherit mpv-plugin python-single-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"
+S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="GPL-3"
KEYWORDS="~amd64"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-DEPEND="
+RDEPEND="
${PYTHON_DEPS}
"
-S="${WORKDIR}/${MY_P}"
-
MPV_PLUGIN_FILES=(
sponsorblock_shared
sponsorblock.lua
@@ -33,16 +30,17 @@ MPV_PLUGIN_FILES=(
src_prepare() {
default
- # we install in the system folder
- sed -e 's|scripts_dir =.*|scripts_dir = "/etc/mpv/scripts"|' \
- -i sponsorblock.lua || die
+ # we 1) install in the system folder 2) use EPYTHON
+ sed -i sponsorblock.lua \
+ -e 's|scripts_dir =.*|scripts_dir = "/etc/mpv/scripts"|' \
+ -e "s|python3|${EPYTHON}|" || 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 '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."
}