media-gfx/WebPlotDigitizer-bin: new package

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2021-08-30 22:31:45 +03:00
parent bd5f6f8013
commit 69b901f49c
3 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST WebPlotDigitizer-4.5-linux-x64.zip 103164957 BLAKE2B e302c193d998638bea65818f48a7da5cc77ebde2ec32ca98fad7281fefb258d71b702012826f7214476a7c17b73f3e6a92700ecae826d105995ad936f44b2bae SHA512 e3712c2ade930a39c82e1cd430e74b844742089f9f0e2a7e702b45472538d64e601d73890cd407146c155b33e02ed5d7832f20856a79d7981552bc3275bbe9ab

View File

@@ -0,0 +1,48 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
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/${MY_PN}/"
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}"
S="${WORKDIR}/${MY_PN}-${PV}-linux-x64"
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"
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>torokhov-s-a@yandex.ru</email>
<name>Sergey Torokhov</name>
</maintainer>
<longdescription>
A web based tool to extract numerical data from plot images.
Supports XY, Polar, Ternary diagrams and Maps.
</longdescription>
<upstream>
<remote-id type="github">ankitrohatgi/WebPlotDigitizer</remote-id>
</upstream>
</pkgmetadata>