From f54847c265155f8e7208ded75997d3b778bfd1d5 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Fri, 26 Jun 2020 17:49:38 +0800 Subject: [PATCH] add visual-studio-code-1.46.1 --- app-editors/visual-studio-code/Manifest | 2 + .../visual-studio-code-1.46.1.ebuild | 76 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 app-editors/visual-studio-code/Manifest create mode 100644 app-editors/visual-studio-code/visual-studio-code-1.46.1.ebuild diff --git a/app-editors/visual-studio-code/Manifest b/app-editors/visual-studio-code/Manifest new file mode 100644 index 0000000..d3c7b5d --- /dev/null +++ b/app-editors/visual-studio-code/Manifest @@ -0,0 +1,2 @@ +DIST visual-studio-code-1.46.1-amd64.tar.gz 89251663 BLAKE2B 61148268605c94f5faa9cc9755b6638665a80884e3988849ca64d17501514c69392222788731cb31cf910f0b1ba7c2ab0a70330c79db8e8ff4cce3b7607ad9d6 SHA512 916bd084481a9b435aa2f3c9513784cda34092334dff591c52e9921966c178d2f74021ad2015e71d6ced1c889f0406282992fe5654e29a25274094f944b1ba2f +EBUILD visual-studio-code-1.46.1.ebuild 1810 BLAKE2B 006a029fa09bd6950514c9d4a161f10a424d7e529dae6f792be55287782748260a638cb345d0c741712d4d77be2fc07fd2dc2c68a3e94f073d8bb7fc9d36d832 SHA512 be38f53a0e14b557c137d89d6d6df80b53d39d5f5f5efaa3bb4521a37785e7e1f5ee429b7466bcedcc2ec457f83afe7fe4b325c1ba9290c8948d784d2164ae11 diff --git a/app-editors/visual-studio-code/visual-studio-code-1.46.1.ebuild b/app-editors/visual-studio-code/visual-studio-code-1.46.1.ebuild new file mode 100644 index 0000000..b209a86 --- /dev/null +++ b/app-editors/visual-studio-code/visual-studio-code-1.46.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop pax-utils + +MY_PN="vscode" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Multiplatform Visual Studio Code from Microsoft (binary version)" +HOMEPAGE="https://code.visualstudio.com" +BASE_URI="https://update.code.visualstudio.com/${PV}" +SRC_URI=" + amd64? ( ${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz ) + " +RESTRICT="mirror strip bindist" + +LICENSE="MS-vscode-EULA" +SLOT="0" +KEYWORDS="amd64" +IUSE="+global-menu libsecret qt5" + +DEPEND=" + >=media-libs/libpng-1.2.46 + >=x11-libs/gtk+-2.24.8-r1:2 + x11-libs/cairo + gnome-base/gconf + x11-libs/libXtst + !app-editors/vscode +" + +RDEPEND=" + ${DEPEND} + >=net-print/cups-2.0.0 + x11-libs/libnotify + x11-libs/libXScrnSaver + dev-libs/nss + libsecret? ( app-crypt/libsecret[crypt] ) + global-menu? ( + dev-libs/libdbusmenu + qt5? ( + dev-libs/libdbusmenu-qt + ) + ) +" + +DOCS=( resources/app/LICENSE.rtf ) + +QA_PRESTRIPPED="opt/${MY_PN}/code" +QA_PREBUILT="opt/${MY_PN}/code" + +pkg_setup(){ + use amd64 && S="${WORKDIR}/VSCode-linux-x64" + use x86 && S="${WORKDIR}/VSCode-linux-ia32" +} + +src_install(){ + pax-mark m code + insinto "/opt/${PN}" + doins -r * + fperms +x "/opt/${PN}/code" + fperms +x "/opt/${PN}/bin/code" + #fperms +x "/opt/${PN}/libnode.so" + fperms +x "/opt/${PN}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg" + fperms +x "/opt/${PN}/resources/app/extensions/git/dist/askpass.sh" + dosym "/opt/${PN}/bin/code" "/usr/bin/${MY_PN}" + make_desktop_entry "${MY_PN}" "Visual Studio Code" "${MY_PN}" "Development;IDE" + newicon "resources/app/resources/linux/code.png" ${MY_PN}.png + einstalldocs +} + +pkg_postinst(){ + elog "You may install some additional utils, so check them in:" + elog "https://code.visualstudio.com/Docs/setup#_additional-tools" +} \ No newline at end of file