blob: 9349302172dd6613dfd1e3a5c7836c11d528a473 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
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.so*
"
## It seems media-libs/alsa-lib is required by chrome-sandbox.
## Actually this library isn't required to work.
QA_SONAME="
/usr/lib.*/libasound.so.2
/usr/lib.*/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"
}
|