From fc2b228369c1de04da6e2c1b4e0e1bb29c9b97ac Mon Sep 17 00:00:00 2001
From: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Date: Mon, 18 Sep 2023 19:07:49 +0400
Subject: dev-db/dbeaver-bin: add 23.2.0

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
---
 dev-db/dbeaver-bin/Manifest                  |  2 ++
 dev-db/dbeaver-bin/dbeaver-bin-23.2.0.ebuild | 43 ++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 dev-db/dbeaver-bin/dbeaver-bin-23.2.0.ebuild

(limited to 'dev-db')

diff --git a/dev-db/dbeaver-bin/Manifest b/dev-db/dbeaver-bin/Manifest
index dff9f48f7..ea2a7e77f 100644
--- a/dev-db/dbeaver-bin/Manifest
+++ b/dev-db/dbeaver-bin/Manifest
@@ -1,2 +1,4 @@
 DIST dbeaver-bin-23.0.0-amd64.tar.gz 80880171 BLAKE2B 6aeee7959fb229d612acc49aec3b7ae2491888b694a6510d64c70067cc6345a703ba98c5243ec92ebc792d1bb65762451bc24e3c8e0d5d58043afea7ff4e7aef SHA512 ce6ffe672f3e6074a8397d7f6c429ac2509d4ea711f83d497fe6c8989c0f3ba0ef55ab0c1334fe436ab0afc6319e32aad3a86e8d9229e1a79335f00fc08d82da
 DIST dbeaver-bin-23.0.0-arm64.tar.gz 80818981 BLAKE2B 16adecc7cdfe9c0a1fc63a37958b46d5475c366e5ff5a7124b49a98abfa619747f3cd3c8ebcaa83b075f38fe096a8eba4537f0801860dfc8098c067b709c04cd SHA512 84d3560929d4fc78430d421493b48e55897fad284b0597acc75ed790107595863653236cca1aca10f99282581e02e76c034bd05c03604721ff8651e969d942ce
+DIST dbeaver-bin-23.2.0-amd64.tar.gz 86591584 BLAKE2B aba54038967b67bf350b99e900bea1af25ae0d78960d55478775c0536ad517635b9a0ff0ee833f6f183431543b23389d70dd2041cf7cb7b70f333aa8926f96cd SHA512 dcf8c85ca420cc5f5e84f499079185b37d4ed2ed8859324cd4077e988aaa3f604a3f582f15f8fba4779945549e41c243b00241ebb4979bdb2f8192f50e5dc0fd
+DIST dbeaver-bin-23.2.0-arm64.tar.gz 86529720 BLAKE2B 31b0fd16cb3637ff8ea4a2486fbc42785858e47f90ae4b43ef80a41c7650cb47b88c18085f8f214daa931205826c4de82b00da1b497fe136e274d4d19f9af4e9 SHA512 cf7a01aa03b01fa75c5a27421352d8d2a27ec82e3b1093de357be211a3724a019230798dcc68498cc0f2a0f5935d57c0f08df81568e2593f8dc0e4858a56095a
diff --git a/dev-db/dbeaver-bin/dbeaver-bin-23.2.0.ebuild b/dev-db/dbeaver-bin/dbeaver-bin-23.2.0.ebuild
new file mode 100644
index 000000000..41d57ee77
--- /dev/null
+++ b/dev-db/dbeaver-bin/dbeaver-bin-23.2.0.ebuild
@@ -0,0 +1,43 @@
+# 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="virtual/jre:17"
+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"
+}
-- 
cgit v1.2.3-65-gdbad