aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Smaniotto <smaniotto.nicola@gmail.com>2023-01-12 16:11:16 +0100
committerNicola Smaniotto <smaniotto.nicola@gmail.com>2023-01-12 16:12:40 +0100
commitdf1a786af911cec6690dda853725535d0b6ec979 (patch)
treeef64bf13b4f83e9c33a3214e547f6dab6ce6fcef /mpv-plugin/mpv_thumbnail_script
parentdev-cpp/trompeloeil: keyword 43 for ~amd64 (diff)
downloadguru-df1a786af911cec6690dda853725535d0b6ec979.tar.gz
guru-df1a786af911cec6690dda853725535d0b6ec979.tar.bz2
guru-df1a786af911cec6690dda853725535d0b6ec979.zip
mpv-plugin/mpv_thumbnail_script: add 0.5.2, drop 0.4.8
Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
Diffstat (limited to 'mpv-plugin/mpv_thumbnail_script')
-rw-r--r--mpv-plugin/mpv_thumbnail_script/Manifest2
-rw-r--r--mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.4.8.ebuild30
-rw-r--r--mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.5.2.ebuild54
3 files changed, 55 insertions, 31 deletions
diff --git a/mpv-plugin/mpv_thumbnail_script/Manifest b/mpv-plugin/mpv_thumbnail_script/Manifest
index 809d8a3c0..7177b9745 100644
--- a/mpv-plugin/mpv_thumbnail_script/Manifest
+++ b/mpv-plugin/mpv_thumbnail_script/Manifest
@@ -1,3 +1,3 @@
-DIST mpv_thumbnail_script-0.4.8.tar.gz 2583047 BLAKE2B dabcc477b49ceac3b15ffcde0c6ff072797a42109a2a8a0b4bcb2a029964fe8b3095f45691b6a03924ad960c1643354f09bc370caa63aa64a3bfa2aadc94a326 SHA512 b28b8dc2b268725d15aa1f0ca2a8dd512d6eb5f9a520786a0d59beae79a1608b6e7a783c92cb75950f36c85893834acf85c75f457995248116c54fc1832792bd
DIST mpv_thumbnail_script-0.4.9.tar.gz 2583482 BLAKE2B 195addae18b2876bec80ab64455bdeda026f135f407a92352b34687561da4fb02d9027005a88cc91632c97edc51e5108713ea90b2e6cd7a5e984ff6294e42cfb SHA512 1453f07d29dec36cca1af826d2c99354f0aa8092f0b753e9e3c0ecd00c52d6f1d82490c210d51693faec79d8bd34e71c8cddbabf51bcbdca3abde120544be6ed
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
diff --git a/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.4.8.ebuild b/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.4.8.ebuild
deleted file mode 100644
index 21d82b623..000000000
--- a/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.4.8.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-MPV_REQ_USE="lua"
-PYTHON_COMPAT=( python3_{8..10} )
-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
-}
diff --git a/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.5.2.ebuild b/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.5.2.ebuild
new file mode 100644
index 000000000..3d94d769a
--- /dev/null
+++ b/mpv-plugin/mpv_thumbnail_script/mpv_thumbnail_script-0.5.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MPV_REQ_USE="lua"
+PYTHON_COMPAT=( python3_{8..11} )
+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(){
+ 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
+}