blob: 67801b98a81bcea5ad008e7b3fb39f1d28e3b909 (
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
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop prefix xdg
MY_PV="${PV//./-}"
DESCRIPTION="Mathematics software for geometry"
HOMEPAGE="https://www.geogebra.org"
SRC_URI="https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${MY_PV}.tar.bz2
https://dev.gentoo.org/~gyakovlev/distfiles/Geogebra.svg"
LICENSE="Geogebra CC-BY-NC-SA-3.0 GPL-3 Apache-2.0 BSD-2 BSD BSD-4 colt EPL-1.0 icu LGPL-2.1 LGPL-2.1+ MIT W3C || ( GPL-2 CDDL )"
SLOT="0"
KEYWORDS="~amd64 ~ppc64"
IUSE=""
RDEPEND="
dev-java/openjdk[javafx]
!sci-mathematics/geogebra
"
# no tests
RESTRICT="test"
src_unpack() {
default
mv -v GeoGebra-Linux-Portable-* "${P}" || die
rm -rf "${P}/jre"* || die
rm -f "${P}/geogebra-portable" || die
}
src_prepare() {
eapply_user
}
src_install() {
insinto /opt
doins -r geogebra
newbin "$(prefixify_ro "${FILESDIR}"/geogebra.sh)" geogebra
fperms 0755 /opt/geogebra/geogebra
doicon "${DISTDIR}/Geogebra.svg"
make_desktop_entry geogebra Geogebra Geogebra Science
}
src_test() {
ewarn "package has no tests"
}
|