net-im/tencent-qq: bump version to 3.2.15_p241224
[gentoo-zh.git] / dev-db / dbeaver-bin / dbeaver-bin-24.3.1.ebuild
blob4839407495d9b2b63415c16f9eb57c883039f317
1 # Copyright 2019-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
5 inherit desktop wrapper xdg
7 DESCRIPTION="Free universal database tool (community edition)."
8 HOMEPAGE="https://dbeaver.io/"
9 MY_PN="${PN%-bin*}"
10 SRC_URI="https://dbeaver.io/files/${PV}/${MY_PN}-ce-${PV}-linux.gtk.x86_64-nojdk.tar.gz -> ${P}-amd64.tar.gz"
11 S="${WORKDIR}/${MY_PN}"
13 LICENSE="Apache-2.0 EPL-1.0 BSD"
14 SLOT="0"
15 KEYWORDS="~amd64"
17 RDEPEND=">=virtual/jdk-17"
18 DEPEND="${RDEPEND}"
20 src_prepare() {
21 sed -e "s/^Icon=.*/Icon=${MY_PN}/" \
22 -e 's:/usr/share/dbeaver:/opt/dbeaver:g' \
23 -e '/^WMCLASS.*/d' \
24 -e "s:^Exec=.*:Exec=${EPREFIX}/usr/bin/${MY_PN}:" \
25 -i "${MY_PN}-ce.desktop" || die
26 default
29 src_install() {
30 doicon -s 128 "${MY_PN}.png"
31 newicon icon.xpm "${MY_PN}.xpm"
32 domenu "${MY_PN}-ce.desktop"
33 einstalldocs
34 rm "${MY_PN}-ce.desktop" "${MY_PN}.png" icon.xpm readme.txt || die
35 insinto "/opt/${MY_PN}-ce"
36 doins -r *
37 fperms 0755 "/opt/${MY_PN}-ce/${MY_PN}"
38 make_wrapper "${MY_PN}" "/opt/${MY_PN}-ce/${MY_PN}" "/opt/${MY_PN}-ce"