gentoo-zh/sci-chemistry/vesta/vesta-3.5.7.ebuild
chn 61505acfc9 sci-chemistry/vesta: add new package
since there is a behavior change from 3.5.6, it is necessary
to preserve an old version.
2021-12-06 16:47:44 +08:00

60 lines
1.3 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop xdg
DESCRIPTION="Visualization for Electronic and STructural Analysis"
HOMEPAGE="https://jp-minerals.org/vesta"
SRC_URI="https://jp-minerals.org/vesta/archives/${PV}/VESTA-gtk3.tar.bz2 -> ${PN}-${PV}.tar.bz2"
LICENSE="VESTA"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RESTRICT="mirror strip"
DEPEND=""
RDEPEND="
x11-libs/gtk+
virtual/glu
dev-util/desktop-file-utils
x11-libs/libXtst
virtual/jdk
${DEPEND}"
BDEPEND=""
S="${WORKDIR}/VESTA-gtk3"
QA_PREBUILD="*"
src_install() {
insinto /opt/VESTA
doins -r *
fperms +x /opt/VESTA/VESTA
fperms +x /opt/VESTA/VESTA-gui
domenu "${FILESDIR}/VESTA.desktop"
dosym ../VESTA/VESTA /opt/bin/VESTA
dosym ../VESTA/VESTA /opt/bin/vesta
}
pkg_postinst() {
xdg_desktop_database_update
elog "Since version 3.5.6, a behavior change has been made, which may cause deleted atoms appear again."
elog "See: https://groups.google.com/g/vesta-discuss/c/y7TCMRe1HlA"
elog "To restore the previous behavior, please install version 3.5.5 or earlier."
elog "If you meet any abnormal behavior while using VESTA after upgrade or downgrade,"
elog "try remove ~/.VESTA and restart VESTA. Note that this will make you lost"
elog "all your saved configs."
}
pkg_postrm() {
xdg_desktop_database_update
}