commit: e16366b73c86ef0d6420a48a553ef50aeeac552b
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Sun Oct 9 22:15:21 2022 +0000
Commit: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Sun Oct 9 22:15:21 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e16366b7
media-gfx/WebPlotDigitizer-bin: 4.6 version bump
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
media-gfx/WebPlotDigitizer-bin/Manifest | 1 +
.../WebPlotDigitizer-bin-4.6.ebuild | 65 ++++++++++++++++++++++
2 files changed, 66 insertions(+)
diff --git a/media-gfx/WebPlotDigitizer-bin/Manifest
b/media-gfx/WebPlotDigitizer-bin/Manifest
index 071e928ff..d9548b90e 100644
--- a/media-gfx/WebPlotDigitizer-bin/Manifest
+++ b/media-gfx/WebPlotDigitizer-bin/Manifest
@@ -1 +1,2 @@
DIST WebPlotDigitizer-4.5-linux-x64.zip 103164957 BLAKE2B
e302c193d998638bea65818f48a7da5cc77ebde2ec32ca98fad7281fefb258d71b702012826f7214476a7c17b73f3e6a92700ecae826d105995ad936f44b2bae
SHA512
e3712c2ade930a39c82e1cd430e74b844742089f9f0e2a7e702b45472538d64e601d73890cd407146c155b33e02ed5d7832f20856a79d7981552bc3275bbe9ab
+DIST WebPlotDigitizer-4.6-linux-x64.zip 109834831 BLAKE2B
5ec14e9498796c28d191023ca9688a5b581033e75607588357e9320614dd02a3098e76cbaa45ab16508273799afaab16c334f50e40b189f8d7cbf70a09f941ab
SHA512
635e3c040a42d13c1ac4a83d7e76f5e20b3329dbd375c2177446a4b4232a0edfb3de725c912efc072a9ae5c0bae8ffcb4d6998be40ede554fec8a105f9e654d9
diff --git a/media-gfx/WebPlotDigitizer-bin/WebPlotDigitizer-bin-4.6.ebuild
b/media-gfx/WebPlotDigitizer-bin/WebPlotDigitizer-bin-4.6.ebuild
new file mode 100644
index 000000000..65a58ebe0
--- /dev/null
+++ b/media-gfx/WebPlotDigitizer-bin/WebPlotDigitizer-bin-4.6.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+MY_PN=${PN%-*}
+
+inherit desktop python-single-r1 xdg
+
+DESCRIPTION="Web based tool to extract data from plots, images, and maps"
+HOMEPAGE="https://automeris.io/WebPlotDigitizer/"
+SRC_URI="https://automeris.io/downloads/${MY_PN}-${PV}-linux-x64.zip"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+#RESTRICT="strip"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+QA_PREBUILT="
+ */libGLESv2.so
+ */libEGL.so
+ */libffmpeg.so
+ */libvk_swiftshader.so
+ */${MY_PN}-${PV}
+ "
+
+## RDEPEND is still required to be filled with actual runtime-deps:
+## python is just assumed runtime-dependency.
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-libs/nss
+ x11-libs/gtk+:3[X,cups,introspection]
+"
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}-${PV}-linux-x64"
+
+QA_FLAGS_IGNORED="
+ /opt/${P}/chrome-sandbox
+ /opt/${P}/libvulkan.*
+"
+
+## It seems media-libs/alsa-lib is required by chrome-sandbox.
+## Actually this library isn't required to work.
+QA_SONAME="
+ /usr/lib64/libasound.so.2
+ /usr/lib64/libxkbcommon.so.0
+"
+
+src_install() {
+ insinto "/opt/${P}"
+ doins -r "${S}/."
+
+ exeinto "/opt/${P}"
+ doexe "/${S}/${MY_PN}-${PV}"
+ dosym ../../opt/"${MY_PN}"-bin-"${PV}/${MY_PN}-${PV}" /usr/bin/"${PN}"
+
+ newicon "/${S}/resources/app/images/icon/icon.png" ${PN}-icon.png
+
+ make_desktop_entry "/opt/${P}/${MY_PN}-${PV}" "${MY_PN}" "${PN}-icon"
"Graphics"
+ ## After opening via xdg-open the js scripts could not work (i.e. "File
- Load Image" menu)
+ make_desktop_entry "/usr/bin/xdg-open
/opt/${P}/resources/app/index.html" "${MY_PN} html" "viewhtml" "Graphics"
+}