blob: e7a28759bbdbbfdc838f6ddff37058bb5fc180e2 (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop xdg
DESCRIPTION="Visualisation for Electronic and STructural Analysis"
HOMEPAGE="https://jp-minerals.org/vesta/en/"
SRC_URI="https://jp-minerals.org/vesta/archives/${PV}/VESTA-gtk3.tar.bz2"
S="${WORKDIR}/VESTA-gtk3"
LICENSE="VESTA"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror strip"
QA_PREBUILT="opt/VESTA/*"
# As of 3.5.6, wayland support required for gtk even when running on xorg.
RDEPEND="app-accessibility/at-spi2-core:2
dev-libs/glib:2
media-libs/fontconfig:1.0
x11-libs/cairo
x11-libs/gdk-pixbuf:2
>=x11-libs/gtk+-2.10:2
>=x11-libs/gtk+-3.22:3[wayland]
x11-libs/libX11
x11-libs/libXtst
x11-libs/libXxf86vm
x11-libs/pango
virtual/glu
>=virtual/jre-1.4.1
virtual/opengl[X]"
BDEPEND="dev-util/patchelf"
src_prepare() {
default
patchelf --set-rpath '$ORIGIN' VESTA-gui || die "Failed to add RUNPATH"
}
src_install() {
insinto /opt/VESTA
doins -r *
fperms +x /opt/VESTA/VESTA
fperms +x /opt/VESTA/VESTA-gui
newicon -s 128x128 img/logo.png VESTA.png
newicon -s 256x256 img/logo@2x.png VESTA.png
make_desktop_entry "/opt/VESTA/VESTA" \
"VESTA" \
"VESTA" \
"Science;"
}
|