1 |
commit: 69b901f49c050658c00111339bd094ae8bdd88c4 |
2 |
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Mon Aug 30 19:31:45 2021 +0000 |
4 |
Commit: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
5 |
CommitDate: Mon Aug 30 19:32:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=69b901f4 |
7 |
|
8 |
media-gfx/WebPlotDigitizer-bin: new package |
9 |
|
10 |
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> |
11 |
|
12 |
media-gfx/WebPlotDigitizer-bin/Manifest | 1 + |
13 |
.../WebPlotDigitizer-bin-4.5.ebuild | 48 ++++++++++++++++++++++ |
14 |
media-gfx/WebPlotDigitizer-bin/metadata.xml | 15 +++++++ |
15 |
3 files changed, 64 insertions(+) |
16 |
|
17 |
diff --git a/media-gfx/WebPlotDigitizer-bin/Manifest b/media-gfx/WebPlotDigitizer-bin/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..071e928ff |
20 |
--- /dev/null |
21 |
+++ b/media-gfx/WebPlotDigitizer-bin/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST WebPlotDigitizer-4.5-linux-x64.zip 103164957 BLAKE2B e302c193d998638bea65818f48a7da5cc77ebde2ec32ca98fad7281fefb258d71b702012826f7214476a7c17b73f3e6a92700ecae826d105995ad936f44b2bae SHA512 e3712c2ade930a39c82e1cd430e74b844742089f9f0e2a7e702b45472538d64e601d73890cd407146c155b33e02ed5d7832f20856a79d7981552bc3275bbe9ab |
24 |
|
25 |
diff --git a/media-gfx/WebPlotDigitizer-bin/WebPlotDigitizer-bin-4.5.ebuild b/media-gfx/WebPlotDigitizer-bin/WebPlotDigitizer-bin-4.5.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..516df26a1 |
28 |
--- /dev/null |
29 |
+++ b/media-gfx/WebPlotDigitizer-bin/WebPlotDigitizer-bin-4.5.ebuild |
30 |
@@ -0,0 +1,48 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..9} ) |
37 |
+MY_PN=${PN%-*} |
38 |
+ |
39 |
+inherit desktop python-single-r1 xdg |
40 |
+ |
41 |
+DESCRIPTION="Web based tool to extract data from plots, images, and maps" |
42 |
+HOMEPAGE="https://automeris.io/${MY_PN}/" |
43 |
+SRC_URI="https://automeris.io/downloads/${MY_PN}-${PV}-linux-x64.zip" |
44 |
+ |
45 |
+LICENSE="AGPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64" |
48 |
+#RESTRICT="strip" |
49 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
50 |
+ |
51 |
+QA_PREBUILT=" |
52 |
+ */libGLESv2.so |
53 |
+ */libEGL.so |
54 |
+ */libffmpeg.so |
55 |
+ */libvk_swiftshader.so |
56 |
+ */${MY_PN}-${PV} |
57 |
+ " |
58 |
+ |
59 |
+## RDEPEND is still required to be filled with actual runtime-deps: |
60 |
+## python is just assumed runtime-dependency. |
61 |
+RDEPEND="${PYTHON_DEPS}" |
62 |
+ |
63 |
+S="${WORKDIR}/${MY_PN}-${PV}-linux-x64" |
64 |
+ |
65 |
+src_install() { |
66 |
+ insinto "/opt/${P}" |
67 |
+ doins -r "${S}/." |
68 |
+ |
69 |
+ exeinto "/opt/${P}" |
70 |
+ doexe "/${S}/${MY_PN}-${PV}" |
71 |
+ dosym ../../opt/"${MY_PN}"-bin-"${PV}/${MY_PN}-${PV}" /usr/bin/"${PN}" |
72 |
+ |
73 |
+ newicon "/${S}/resources/app/images/icon/icon.png" ${PN}-icon.png |
74 |
+ |
75 |
+ make_desktop_entry "/opt/${P}/${MY_PN}-${PV}" "${MY_PN}" "${PN}-icon" "Graphics" |
76 |
+ ## After opening via xdg-open the js scripts could not work (i.e. "File - Load Image" menu) |
77 |
+ make_desktop_entry "/usr/bin/xdg-open /opt/${P}/resources/app/index.html" "${MY_PN} html" "viewhtml" "Graphics" |
78 |
+} |
79 |
|
80 |
diff --git a/media-gfx/WebPlotDigitizer-bin/metadata.xml b/media-gfx/WebPlotDigitizer-bin/metadata.xml |
81 |
new file mode 100644 |
82 |
index 000000000..a6624a990 |
83 |
--- /dev/null |
84 |
+++ b/media-gfx/WebPlotDigitizer-bin/metadata.xml |
85 |
@@ -0,0 +1,15 @@ |
86 |
+<?xml version="1.0" encoding="UTF-8"?> |
87 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
88 |
+<pkgmetadata> |
89 |
+ <maintainer type="person"> |
90 |
+ <email>torokhov-s-a@××××××.ru</email> |
91 |
+ <name>Sergey Torokhov</name> |
92 |
+ </maintainer> |
93 |
+ <longdescription> |
94 |
+ A web based tool to extract numerical data from plot images. |
95 |
+ Supports XY, Polar, Ternary diagrams and Maps. |
96 |
+ </longdescription> |
97 |
+ <upstream> |
98 |
+ <remote-id type="github">ankitrohatgi/WebPlotDigitizer</remote-id> |
99 |
+ </upstream> |
100 |
+</pkgmetadata> |