aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Smaniotto <smaniotto.nicola@gmail.com>2023-10-19 13:15:11 +0200
committerNicola Smaniotto <smaniotto.nicola@gmail.com>2023-10-19 13:15:21 +0200
commit066b8cdeece1ed89de50c39ab0fd03b2c4fa76ed (patch)
treeb61f6d05ec8069f9d004574e8465f0cf3eb894ca /mpv-plugin
parentprofiles: mask media-video/owncast (diff)
downloadguru-066b8cdeece1ed89de50c39ab0fd03b2c4fa76ed.tar.gz
guru-066b8cdeece1ed89de50c39ab0fd03b2c4fa76ed.tar.bz2
guru-066b8cdeece1ed89de50c39ab0fd03b2c4fa76ed.zip
mpv-plugin/mpv_thumbnail_script: add 0.5.3
Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
Diffstat (limited to 'mpv-plugin')
-rw-r--r--mpv-plugin/mpv_thumbnail_script/Manifest1
-rw-r--r--mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.5.3.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/mpv-plugin/mpv_thumbnail_script/Manifest b/mpv-plugin/mpv_thumbnail_script/Manifest
index 4aabeb282..a002df3c9 100644
--- a/mpv-plugin/mpv_thumbnail_script/Manifest
+++ b/mpv-plugin/mpv_thumbnail_script/Manifest
@@ -1,2 +1,3 @@
DIST mpv_thumbnail_script-0.5.1.tar.gz 2585674 BLAKE2B 34db1877694ba71139377ecf97d370ea4a75b7a82694f7f29321abe1ed40c702f2bf47df9e24c300ad999bef126d1b082d12b1abde0cc7227ad66dd965f23209 SHA512 642ede1ec1a73a4bf78839c12bdf19a0f1e4797290b83a811b9ac40e47868ada3703b80798b4963616830d91981cdc4093df2a156d391aba54d48a0569045a87
DIST mpv_thumbnail_script-0.5.2.tar.gz 2585900 BLAKE2B f0b2afe1f1cba942ddb469ae66f32f1d444679302f47b13742feb924bbe3de331c74bb60530079580a8802258109d9d17e6ebe1581910c8083e2897370961274 SHA512 d151c6e5aa0ad276a0a5451f0b0ab36c5bf4426521ce17b3db7ca9a94ee4265bf66f3632ff48f8210a96d176cdba0f7926138e9a4971eca4b0331dfc87034e11
+DIST mpv_thumbnail_script-0.5.3.tar.gz 2588152 BLAKE2B a15399bf2fca65bf721a33718b4c27752fb5a7ce9c158eddff7ea1c6018929b372f0091ddb44a6f102dd3657b1e14148779543db5dac4953ca06fac21689dc3e SHA512 4a785bbd0037f18ffb60aa4980ed94ff6f03f75db43c5ebf5dde5bf53e0afa4970a94ecd5be26b279d71875540a98e2f4efd8c636dd553f2af5e6f3918f8b5fa
diff --git a/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.5.3.ebuild b/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.5.3.ebuild
new file mode 100644
index 000000000..1b7daa2a7
--- /dev/null
+++ b/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.5.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MPV_REQ_USE="lua"
+PYTHON_COMPAT=( python3_{10..12} )
+inherit mpv-plugin python-any-r1
+
+DESCRIPTION="A Lua script to show preview thumbnails in mpv's OSC seekbar"
+HOMEPAGE="https://github.com/marzzzello/mpv_thumbnail_script"
+
+SRC_URI="https://github.com/marzzzello/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64"
+
+BDEPEND="
+ ${PYTHON_DEPS}
+"
+
+MPV_PLUGIN_FILES=(
+ ${PN}_client_osc.lua
+ ${PN}_server.lua
+)
+
+src_compile() {
+ ${EPYTHON} concat_files.py -r "cat_osc.json" || die
+ ${EPYTHON} concat_files.py -r "cat_server.json" || die
+}
+
+src_install() {
+ mpv-plugin_src_install
+
+ # add multiple threads
+ THUMBNAIL_SERVER_THREADS="${THUMBNAIL_SERVER_THREADS:-1}"
+
+ if [[ "${THUMBNAIL_SERVER_THREADS}" -gt 1 ]]; then
+ i=1
+ while [[ ${i} -lt ${THUMBNAIL_SERVER_THREADS} ]]; do
+ dosym -r "/etc/mpv/scripts/mpv_thumbnail_script_server.lua" \
+ "/etc/mpv/scripts/mpv_thumbnail_script_server_${i}.lua" || die
+ (( i++ ))
+ done
+ fi
+}
+
+pkg_postinst(){
+ mpv-plugin_pkg_postinst
+
+ if [[ "${THUMBNAIL_SERVER_THREADS}" -gt 1 ]]; then
+ elog "Created a total of ${THUMBNAIL_SERVER_THREADS} server threads. Setting this too high is not recommended"
+ else
+ elog "You can create multiple thumbnailing threads by setting THUMBNAIL_SERVER_THREADS"
+ fi
+}