diff options
Diffstat (limited to 'dev-util/azuredatastudio')
-rw-r--r-- | dev-util/azuredatastudio/Manifest | 2 | ||||
-rw-r--r-- | dev-util/azuredatastudio/azuredatastudio-1.50.0.ebuild | 107 |
2 files changed, 109 insertions, 0 deletions
diff --git a/dev-util/azuredatastudio/Manifest b/dev-util/azuredatastudio/Manifest index 3dac5491c05b..5a288c32771d 100644 --- a/dev-util/azuredatastudio/Manifest +++ b/dev-util/azuredatastudio/Manifest @@ -1,3 +1,5 @@ DIST azuredatastudio-1.49.1-amd64.deb 135026616 BLAKE2B 0ad8652e7c6752cbd2f4187a9da4437175f3aa06a9b186786217f14bda91d4caf675110d582eaf03f627c59803c9dbc8fe2b6e1d75af1fccd01d2f776c2f9991 SHA512 2b8c8316a1761ea3b4e9475189058cc63b9c562dbc24f8d9a74194e18a65e4d16a5b07f01b0637eea277f2ba8b0f79ebf80143d52edb87cb6a6ee2564fbcd59a +DIST azuredatastudio-1.50.0-amd64.deb 142500668 BLAKE2B b6d1a957857be1584ae2a9f64d2f58952d79f44ec49db70fe51f28da5292334d97130b8c9ae779e6baf90eff98bd6e531719bd90b5e81db333d4f8cf6af2386c SHA512 4d9d33e6ad31e668e56f170d8fea9e3de0422b5f6a397820094c8c522f4970c3ec55388a29cc110584cf4e1e9f3e59356eae4db2a05fad9284ffec35426c37d2 EBUILD azuredatastudio-1.49.1-r1.ebuild 2413 BLAKE2B 589447fe9c02235692f18c6dd0297128b1bd5fc15feaf8f55bbcbf026915b48f8905f3ef2bb97e00ad3a8c9ce2ec8aadbdcbaa578f5f9499dbe7841de4ffca99 SHA512 d62d22906db23008e5ee1c83eaed0fa53f26aa422f39ecd16c09454c32503a61335a760e1923cfab71cedda791b38d7d642d8caa747fe6af7c3b5627eb17380e +EBUILD azuredatastudio-1.50.0.ebuild 2413 BLAKE2B d51698efe670bc17715331e3d9a3bd1e03b35cbd5d90653404d83e6dd9c4ee2bd6f1f7a6e0a318f1b44f8bd64431bcbd985795226c80a064cd65ad0e78350e46 SHA512 b8fc73d2093470d8baf6a1bb444746334b313b36fdeb91394ee80384d9d04de84e7eadcff596bb0fa506f82c63c7989c47950c6df8a8e11d2825abe9b52a95ad MISC metadata.xml 822 BLAKE2B 72cadf27f137f7276f8cd3b3fc81afd0ac1eefa9f12e39aea8d81705454a17aa8d2b49de9d61c0523fda304dcf0363ef463d0b2fdbd04a524aa63a2ced6a6a6a SHA512 27dbc8a269df130994b8d59cefb193440b276638ef460f68d72e887dc02d40473218febc1ecf242a51f55593d90a3ea42255e4a8d8ce4237421c9e56e52c7030 diff --git a/dev-util/azuredatastudio/azuredatastudio-1.50.0.ebuild b/dev-util/azuredatastudio/azuredatastudio-1.50.0.ebuild new file mode 100644 index 000000000000..af042f7066aa --- /dev/null +++ b/dev-util/azuredatastudio/azuredatastudio-1.50.0.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2024 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://learn.microsoft.com/sql/azure-data-studio/ + https://github.com/microsoft/azuredatastudio/" +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 + dev-util/lttng-ust:0/2.12 + media-libs/alsa-lib + || ( + media-libs/libcanberra-gtk3 + 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}/resources/app" || die + + # Kerberos libs, same issue as VSCode/VSCodium. + if ! use kerberos ; then + rm -r node_modules.asar.unpacked/kerberos || die + fi + + # Patch "System.Security.Cryptography.Native.OpenSsl.so": *.so.10 -> *.so.1.0.0 + local mssql_ext_version="5.0.20241115.1" + local mssql_ext_lib="libSystem.Security.Cryptography.Native.OpenSsl.so" + cd "extensions/mssql/sqltoolsservice/Linux/${mssql_ext_version}" || die + patchelf --add-needed libcrypto.so.1.0.0 "${mssql_ext_lib}" || die + patchelf --add-needed libssl.so.1.0.0 "${mssql_ext_lib}" || die + patchelf --remove-needed libcrypto.so.10 "${mssql_ext_lib}" || die + patchelf --remove-needed libssl.so.10 "${mssql_ext_lib}" || die +} + +src_install() { + cp -r . "${ED}" || die + + dosym -r "/usr/share/${PN}/${PN}" "/usr/bin/${PN}" +} |