public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/azuredatastudio/
Date: Sun, 31 Dec 2023 03:03:20 +0000 (UTC)	[thread overview]
Message-ID: <1703991798.63af68c3c8ca4ef58d9598c8e3250c07534c26e4.xgqt@gentoo> (raw)

commit:     63af68c3c8ca4ef58d9598c8e3250c07534c26e4
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 31 02:48:05 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Dec 31 03:03:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63af68c3

dev-util/azuredatastudio: new package; add 1.47.0

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-util/azuredatastudio/Manifest                  |   1 +
 .../azuredatastudio/azuredatastudio-1.47.0.ebuild  | 101 +++++++++++++++++++++
 dev-util/azuredatastudio/metadata.xml              |  20 ++++
 3 files changed, 122 insertions(+)

diff --git a/dev-util/azuredatastudio/Manifest b/dev-util/azuredatastudio/Manifest
new file mode 100644
index 000000000000..98750f515155
--- /dev/null
+++ b/dev-util/azuredatastudio/Manifest
@@ -0,0 +1 @@
+DIST azuredatastudio-1.47.0-amd64.deb 138852252 BLAKE2B 20598aefb8ade4f1022213de1dfa17feddfb41ee0a241f8e9919e7573d00f3c3f81bbab947c9fec885a08b1e032a61616b1f49b943f3388c1edeb5502717e773 SHA512 7de1f1bafee735cfe7d52cb32324e38497ccb919a6322463b60bf2002af64546972f4ed207fdf0d9e55c48e33d7f5d7a9a3d10781c9c458edd4d18880ee5d310

diff --git a/dev-util/azuredatastudio/azuredatastudio-1.47.0.ebuild b/dev-util/azuredatastudio/azuredatastudio-1.47.0.ebuild
new file mode 100644
index 000000000000..4db21c59a2ec
--- /dev/null
+++ b/dev-util/azuredatastudio/azuredatastudio-1.47.0.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit unpacker xdg
+
+DESCRIPTION="Data management and development tool from Microsoft"
+HOMEPAGE="https://vscodium.com/"
+SRC_URI="
+	amd64? (
+		https://azuredatastudio-update.azurewebsites.net/${PV}/linux-deb-x64/stable
+			-> ${P}-amd64.deb
+	)
+"
+S="${WORKDIR}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+IUSE="kerberos"
+RESTRICT="bindist"
+
+# This is based on VSCode/VSCodium, so just copy their "RDEPEND".
+RDEPEND="
+	>=app-accessibility/at-spi2-core-2.46.0:2
+	app-crypt/libsecret[crypt]
+	app-misc/ca-certificates
+	dev-libs/expat
+	dev-libs/glib:2
+	dev-libs/nspr
+	dev-libs/nss
+	media-libs/alsa-lib
+	media-libs/libcanberra[gtk3]
+	media-libs/libglvnd
+	media-libs/mesa
+	net-misc/curl
+	net-print/cups
+	sys-apps/dbus
+	sys-libs/zlib
+	sys-process/lsof
+	x11-libs/cairo
+	x11-libs/gtk+:3
+	x11-libs/libdrm
+	x11-libs/libnotify
+	x11-libs/libX11
+	x11-libs/libxcb
+	x11-libs/libXcomposite
+	x11-libs/libXdamage
+	x11-libs/libXext
+	x11-libs/libXfixes
+	x11-libs/libxkbcommon
+	x11-libs/libxkbfile
+	x11-libs/libXrandr
+	x11-libs/libXScrnSaver
+	x11-libs/pango
+	x11-misc/xdg-utils
+	kerberos? ( app-crypt/mit-krb5 )
+"
+DEPEND="
+	dev-libs/openssl-compat:1.0.0
+"
+BDEPEND="
+	dev-util/patchelf
+"
+
+QA_PREBUILT="*"
+
+src_unpack() {
+	unpack_deb "${A}"
+}
+
+src_prepare() {
+	default
+
+	cd "${S}/usr/share" || die
+
+	mv appdata metainfo || die
+	mv zsh/vendor-completions zsh/site-functions || die
+
+	cd "${PN}" || die
+
+	# Kerberos libs, same issue as VSCode/VSCodium.
+	if ! use kerberos ; then
+		rm -r resources/app/node_modules.asar.unpacked/kerberos || die
+	fi
+
+	# Patch "System.Security.Cryptography.Native.OpenSsl.so": *.so.10 -> *.so.1.0.0
+	local lib=System.Security.Cryptography.Native.OpenSsl.so
+	cd resources/app/extensions/mssql/sqltoolsservice/Linux/4.10.1.3 || die
+	patchelf --add-needed libcrypto.so.1.0.0 "${lib}" || die
+	patchelf --add-needed libssl.so.1.0.0 "${lib}" || die
+	patchelf --remove-needed libcrypto.so.10 "${lib}" || die
+	patchelf --remove-needed libssl.so.10 "${lib}" || die
+}
+
+src_install() {
+	cp -r . "${ED}" || die
+
+	dosym -r "/usr/share/${PN}/${PN}" "/usr/bin/${PN}"
+}

diff --git a/dev-util/azuredatastudio/metadata.xml b/dev-util/azuredatastudio/metadata.xml
new file mode 100644
index 000000000000..b89b462e8235
--- /dev/null
+++ b/dev-util/azuredatastudio/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+  <maintainer type="person">
+    <email>xgqt@gentoo.org</email>
+    <name>Maciej Barć</name>
+  </maintainer>
+  <longdescription>
+    Azure Data Studio is a data management and development tool with
+    connectivity to popular cloud and on-premises databases. Azure Data Studio
+    supports Windows, macOS, and Linux, with immediate capability to connect to
+    Azure SQL and SQL Server. Browse the extension library for more database
+    support options including MySQL, PostgreSQL, and MongoDB.
+  </longdescription>
+  <upstream>
+    <bugs-to>https://github.com/microsoft/azuredatastudio/</bugs-to>
+    <remote-id type="github">microsoft/azuredatastudio</remote-id>
+  </upstream>
+</pkgmetadata>


             reply	other threads:[~2023-12-31  3:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-31  3:03 Maciej Barć [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-31 13:21 [gentoo-commits] repo/gentoo:master commit in: dev-util/azuredatastudio/ Maciej Barć
2024-01-12 23:22 Maciej Barć
2024-02-19 15:30 Maciej Barć
2024-02-19 15:30 Maciej Barć
2024-03-04  1:03 Maciej Barć
2024-04-11  1:38 Maciej Barć
2024-06-19 12:46 Maciej Barć
2024-06-22 19:05 Maciej Barć
2024-08-01 13:07 Maciej Barć
2024-08-17 13:27 Maciej Barć
2024-08-17 13:27 Maciej Barć
2024-09-17 21:09 Andreas Sturmlechner
2024-11-22 15:50 Maciej Barć
2025-02-04 12:52 Maciej Barć
2025-02-09 20:50 Maciej Barć
2025-02-12 15:03 Maciej Barć
2025-02-12 15:03 Maciej Barć
2025-02-12 15:03 Maciej Barć

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1703991798.63af68c3c8ca4ef58d9598c8e3250c07534c26e4.xgqt@gentoo \
    --to=xgqt@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox