From dde5020dd8fa8368c5bb742f5e2e4a8a0486a254 Mon Sep 17 00:00:00 2001 From: Igor V Belousov Date: Thu, 7 Sep 2023 20:53:06 +0300 Subject: [PATCH] add mongodb compass --- dev-util/mongodb-compass-bin/Manifest | 1 + .../mongodb-compass-bin-1.39.4.ebuild | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 dev-util/mongodb-compass-bin/Manifest create mode 100644 dev-util/mongodb-compass-bin/mongodb-compass-bin-1.39.4.ebuild diff --git a/dev-util/mongodb-compass-bin/Manifest b/dev-util/mongodb-compass-bin/Manifest new file mode 100644 index 0000000..692c42b --- /dev/null +++ b/dev-util/mongodb-compass-bin/Manifest @@ -0,0 +1 @@ +DIST mongodb-compass_1.39.4_amd64.deb 101996014 BLAKE2B cf2f8d9eeaefcda7abb20fd491d7ff2f805f37eb2df5b238b47a6ca976a3f2a8d173d6e07388f028ddd8b7cd0af9426bd1842fc53d307c67c2cf403ff29487d3 SHA512 f1cfa9d5927e27ea9e43e1554b4dacfab8c3d55e69ad17af50556866832aac87276d348e167acf210d010c43ec1a03a76e9e57643f02b7ff2893b338cc3c2d1d diff --git a/dev-util/mongodb-compass-bin/mongodb-compass-bin-1.39.4.ebuild b/dev-util/mongodb-compass-bin/mongodb-compass-bin-1.39.4.ebuild new file mode 100644 index 0000000..944df1c --- /dev/null +++ b/dev-util/mongodb-compass-bin/mongodb-compass-bin-1.39.4.ebuild @@ -0,0 +1,37 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop unpacker xdg + +DESCRIPTION="The GUI for MongoDB" +HOMEPAGE="https://mongodb.com/compass https://github.com/mongodb-js/compass" +SRC_URI="https://github.com/mongodb-js/compass/releases/download/v${PV}/mongodb-compass_${PV}_amd64.deb" + +LICENSE="SSPL-1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}" + +src_install() { + default + + insinto /usr/lib/mongodb-compass + doins -r usr/lib/mongodb-compass/. + + domenu usr/share/applications/mongodb-compass.desktop + doicon usr/share/pixmaps/mongodb-compass.png + + fperms +x "/usr/lib/mongodb-compass/MongoDB Compass" + fperms 4755 /usr/lib/mongodb-compass/chrome-sandbox + + # Included binary doesn't work, make a symlink instead + rm usr/bin/mongodb-compass || die + dosym "../lib/mongodb-compass/MongoDB Compass" "usr/bin/mongodb-compass" +}