gentoo-zh/dev-db/dbeaver-bin/dbeaver-bin-22.3.1.ebuild
HougeLangley d966ecfa3a Bump version and fixed headers years:
1. app-vim/easymotion: bump to 3.0.1 (need build and install test)
close: [nvchecker] app-vim/easymotion can be bump to 3.0.1 #2073
close: [nvchecker] app-vim/easymotion can be bump to 3.0.1 #1851
2. dev-cpp/nameof: bump to 0.10.2 (need build and install test)
close: [nvchecker] dev-cpp/nameof can be bump to 0.10.2 #2085
3. dev-cpp/tgbot-cpp: bump to 1.5 (need build and install test)
close: [nvchecker] dev-cpp/tgbot-cpp can be bump to 1.5 #2325
4. dev-db/dbeaver-bin: bump to 22.3.1 (need build and install test)
close: [nvchecker] dev-db/dbeaver-bin can be bump to 22.3.1 #2311
5. dev-db/mongodb: bump to 6.2.0-rc4 (need build and install test)
close: no issue need close
6. dev-libs/libdwarf: bump to 20150507 (need build and install test)
close: no issue need close
7. net-proxy/clash-verge-bin: bump to 1.2.1 (need build and install test)
close: no issue need close
2023-01-06 20:24:44 +08:00

45 lines
1.3 KiB
Bash

# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop wrapper xdg
DESCRIPTION="Free universal database tool (community edition)."
HOMEPAGE="https://dbeaver.io/"
MY_PN="${PN%-bin*}-ce"
SRC_URI="amd64? ( https://dbeaver.io/files/${PV}/${MY_PN}-${PV}-linux.gtk.x86_64-nojdk.tar.gz -> ${P}-amd64.tar.gz )
arm64? ( https://dbeaver.io/files/${PV}/${MY_PN}-${PV}-linux.gtk.aarch64-nojdk.tar.gz -> ${P}-arm64.tar.gz )"
LICENSE="Apache-2.0 EPL-1.0 BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="dev-java/openjdk-bin:11"
DEPEND="${RDEPEND}"
MY_PN="${PN%-bin*}"
S="${WORKDIR}/${MY_PN}"
src_prepare() {
sed -e "s/^Icon=.*/Icon=${MY_PN}/" \
-e 's:/usr/share/dbeaver:/opt/dbeaver:g' \
-e '/^WMCLASS.*/d' \
-e "s:^Exec=.*:Exec=${EPREFIX}/usr/bin/${MY_PN}:" \
-i "${MY_PN}-ce.desktop"
default
}
src_install() {
doicon -s 128 "${MY_PN}.png"
newicon icon.xpm "${MY_PN}.xpm"
domenu "${MY_PN}-ce.desktop"
einstalldocs
rm "${MY_PN}-ce.desktop" "${MY_PN}.png" icon.xpm readme.txt
insinto "/opt/${MY_PN}-ce"
doins -r *
fperms 0755 "/opt/${MY_PN}-ce/${MY_PN}"
make_wrapper "${MY_PN}" "/opt/${MY_PN}-ce/${MY_PN}" "/opt/${MY_PN}-ce"
sed -e "s:^exec /opt/${MY_PN}-ce/${MY_PN}:exec /opt/${MY_PN}-ce/${MY_PN} -vm ${EPREFIX}/opt/openjdk-bin-11/bin:" \
-i "${D}/usr/bin/${MY_PN}"
}