diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-08-11 09:17:40 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-08-11 09:21:57 +0300 |
commit | 3501bea572078607e4d38ad935111c9e9bf04a98 (patch) | |
tree | 9d3450fe484648fe9a5deeba826d8774fd83cdeb /app-editors/vscode | |
parent | www-servers/fnord: Fix incompatible function pointer types (diff) | |
download | gentoo-3501bea572078607e4d38ad935111c9e9bf04a98.tar.gz gentoo-3501bea572078607e4d38ad935111c9e9bf04a98.tar.bz2 gentoo-3501bea572078607e4d38ad935111c9e9bf04a98.zip |
app-editors/vscode: add 1.81.1
Closes: https://bugs.gentoo.org/911706
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/vscode')
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.81.1.ebuild | 113 |
2 files changed, 116 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 7bb521ac347d..9e849ccbf9af 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.80.2-arm64.tar.gz 131631847 BLAKE2B 0e6cbf72dc2720a1685d569940cf1a DIST vscode-1.81.0-amd64.tar.gz 128464266 BLAKE2B c3d2c19062d9999363db60f9356c075518b9de5a9364bd396585f0fb185362e603db9ecb37fd1ded2bc09c0a760ea7973a8b0e26cff84fb9e78cb72ca7da695b SHA512 7eccf494c6e36137ad5b6f7aecef4905c2bad2e9d10954904f9766f80b591ce6ee7f7ee29d02b30744168805ec242d06dd459712caf5e3a9dc3eaf33a3e1571b DIST vscode-1.81.0-arm.tar.gz 113352419 BLAKE2B 5597a92af36d4f5caedf00fca528b87735756b251b67565f720214fc72424c52aadd914f10cf3bab48a0bf9b94c3e91a097f7d40617e46194243f845cc5eb25c SHA512 cc09c865d35aec1842cc0200875a429b66fd7d936a4ea0e2708808495504758bb12a07e22905bae2584a9122e266a4e0a09b6f72a84983270b74c4b5b91cf83b DIST vscode-1.81.0-arm64.tar.gz 124958839 BLAKE2B 5e4595bd42736a7d2a9d0d97897d9f1a28fabe006a90ac0904e47edac4cefd956b63d23dc042db95ac24bcf96579dfe1ca8f5c7c2a3753e944e5a36ffcc08c84 SHA512 4dc7fd77954cdd4be3b7722bbbdb2eb592deb38953339d9e57552d5d23fb984407a34511ddeaaeb44e24af7dc2f9742aad7f78ce7a1884bb197f83fea6598cc7 +DIST vscode-1.81.1-amd64.tar.gz 128457191 BLAKE2B ae24ceca58b1a23ff1b22ace4ff65a4e648435c70ab418babd64b0d5a337190046f274c3e2618c97493faa992320cf3418d6b7faaadd4966129defe7c9d4c249 SHA512 c00bc1e9d583334a5936853071420937963ead2a556ac2767efb0b286687abf16ce9d1e3d6042025fb1843629352b9b0406a33234615e1300b4e2b7133a215ac +DIST vscode-1.81.1-arm.tar.gz 113366792 BLAKE2B 127a7accf96bc9e0bef7cc592fae31963c7335ad61425c677b41851fb0712c38c1f9e2a0f80b0c431654643ad3a84c49cd3f073f3d34b276a2743eeb2c6e0c17 SHA512 de935ba4c9d9cd8e3c1a157e4d37e30d58422f0844a16963ee9f682723b5ba0a8390c422d400793148aec223ca9acc6ce92efa203be3e447710e6394d223ef0b +DIST vscode-1.81.1-arm64.tar.gz 124991405 BLAKE2B 1812a924857d78023c2b93dd714ea3eb690f28cf644f2ce0a7d083ceb52e1c67f137d31e262cf143f3a0cf2d86128bf6d584321627d0cc85df6c482d0c9d4118 SHA512 4f8e37c1189be47dca0259db54d2dcb33c94bfd9c8392031792d64200d5ff5b780a5e38dc91c2aba62f42ef6ebc5aaadc7539ef8b9839b5d3387c328a630e920 diff --git a/app-editors/vscode/vscode-1.81.1.ebuild b/app-editors/vscode/vscode-1.81.1.ebuild new file mode 100644 index 000000000000..9c672dc963a9 --- /dev/null +++ b/app-editors/vscode/vscode-1.81.1.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop pax-utils xdg optfeature + +DESCRIPTION="Multiplatform Visual Studio Code from Microsoft" +HOMEPAGE="https://code.visualstudio.com" +SRC_URI=" + amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz ) + arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz ) + arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz ) +" +S="${WORKDIR}" + +RESTRICT="mirror strip bindist" + +LICENSE=" + Apache-2.0 + BSD + BSD-1 + BSD-2 + BSD-4 + CC-BY-4.0 + ISC + LGPL-2.1+ + Microsoft-vscode + MIT + MPL-2.0 + openssl + PYTHON + TextMate-bundle + Unlicense + UoI-NCSA + W3C +" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" +IUSE="kerberos" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + sys-apps/util-linux + sys-apps/dbus + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libdrm + 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/libxshmfence + x11-libs/pango + kerberos? ( app-crypt/mit-krb5 ) +" + +QA_PREBUILT="*" + +src_install() { + if use amd64; then + cd "${WORKDIR}/VSCode-linux-x64" || die + elif use arm; then + cd "${WORKDIR}/VSCode-linux-armhf" || die + elif use arm64; then + cd "${WORKDIR}/VSCode-linux-arm64" || die + else + die "Visual Studio Code only supports amd64, arm and arm64" + fi + + # Cleanup + rm -r ./resources/app/ThirdPartyNotices.txt || die + + # Disable update server + sed -e "/updateUrl/d" -i ./resources/app/product.json || die + + if ! use kerberos; then + rm -r ./resources/app/node_modules.asar.unpacked/kerberos || die + fi + + # Install + pax-mark m code + mkdir -p "${ED}/opt/${PN}" || die + cp -r . "${ED}/opt/${PN}" || die + fperms 4711 /opt/${PN}/chrome-sandbox + + dosym -r "/opt/${PN}/bin/code" "usr/bin/vscode" + dosym -r "/opt/${PN}/bin/code" "usr/bin/code" + dosym -r "/opt/${PN}/bin/code-tunnel" "usr/bin/code-tunnel" + domenu "${FILESDIR}/vscode.desktop" + domenu "${FILESDIR}/vscode-url-handler.desktop" + domenu "${FILESDIR}/vscode-wayland.desktop" + domenu "${FILESDIR}/vscode-url-handler-wayland.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "keyring support inside vscode" "virtual/secret-service" +} |