瀏覽代碼

Update Visual Studio Code.

master
Rafal Kupiec 5 月之前
父節點
當前提交
2ad0e21831
簽署人: belliash GPG Key ID: 4E829243E0CFE6B4
共有 2 個文件被更改,包括 59 次插入0 次删除
  1. +1
    -0
      app-editors/visual-studio-code/Manifest
  2. +58
    -0
      app-editors/visual-studio-code/visual-studio-code-1.45.1.ebuild

+ 1
- 0
app-editors/visual-studio-code/Manifest 查看文件

@ -24,3 +24,4 @@ DIST visual-studio-code-1.36.0-amd64.tar.gz 77632421 BLAKE2B 14ed5b2a042d8b41375
DIST visual-studio-code-1.38.0-amd64.tar.gz 80879094 BLAKE2B efd6ce4e61b424d0581f14d25fb93fd87ac43c492fb956f9fa8708cca188a732b6fb16136b05c609c196f9cd8a6a4a5f159bea1c289a4097e1a56e76d2499aed SHA512 9f13490bca4e8b4bfba75a0c69afdcda3b188f8bd88c33018a77537df01bf4ea8b97035a229300298b440f6b1d68e0543c43ef4e353c2be4b0edd2450c45a4dc
DIST visual-studio-code-1.39.2-amd64.tar.gz 80262440 BLAKE2B a50933f1a110fbbeef3d5d886d34c1b670b26be1a01607cdee879f1e1739eb4a04b437ee6cd5eb71c356f03e3483869c90abb3df4992edf0460e04e3145faac1 SHA512 f6cf0c04b67ab29613c6ff50df781c9d6264a63eae6f8dbf1d0fc25c804991885c7cbb1ab9db9ad9927c842a41b69ab5f8a8d1ef929623a76ec28673f4517000
DIST visual-studio-code-1.41.1-amd64.tar.gz 81500694 BLAKE2B 575e6aef99eba240c3d47c1f2e849ef5390ee2e6bc35b38486d5351a63c1654903b93d2f4db74f0f5e0923c89f14d9a47dc69b6b1705ee877bfcbaeeaafd15ec SHA512 c180a2e112dd1bff97adca83c5aeb6d1bd66ba391d2a63dbae83629065c7bd3c0547f3f3cc3e0c1d67dac1ea601f3f620c6fe57906018883d8c943ddcc5a7830
DIST visual-studio-code-1.45.1-amd64.tar.gz 87836263 BLAKE2B b595451964062cf517e17a1ff40115781c1c13f98d34281e8f47f31e5add6e2a4e3f132fba8cd1ad6b75fe33a2be9ef62e14b25f6ce388cdc2bed4f2aee54b2e SHA512 1dca6259003da32287378214dd9adf8c4240afb4142f48d1f29c0055936a44c46f1c496963f04d5eb2005f89e4812c6d37d3974d1ee8b56697e8b5cb8af472af

+ 58
- 0
app-editors/visual-studio-code/visual-studio-code-1.45.1.ebuild 查看文件

@ -0,0 +1,58 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils pax-utils
DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
HOMEPAGE="https://code.visualstudio.com"
BASE_URI="https://vscode-update.azurewebsites.net/${PV}"
SRC_URI="${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz"
RESTRICT="mirror strip bindist"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="libsecret"
DEPEND="
>=media-libs/libpng-1.2.46
>=x11-libs/gtk+-2.24.8-r1:2
x11-libs/cairo
gnome-base/gconf
x11-libs/libXtst
"
RDEPEND="
${DEPEND}
x11-libs/libnotify
x11-libs/libXScrnSaver
dev-libs/nss
libsecret? ( app-crypt/libsecret[crypt] )
"
QA_PRESTRIPPED="opt/${PN}/code"
QA_PREBUILT="opt/${PN}/code"
pkg_setup(){
use amd64 && S="${WORKDIR}/VSCode-linux-x64" || S="${WORKDIR}/VSCode-linux-ia32"
}
src_install(){
pax-mark m code
insinto "/opt/${PN}"
doins -r *
dosym "/opt/${PN}/bin/code" "/usr/bin/${PN}"
make_desktop_entry "${PN}" "Visual Studio Code" "${PN}" "Development;IDE"
doicon ${FILESDIR}/${PN}.png
fperms +x "/opt/${PN}/code"
fperms +x "/opt/${PN}/bin/code"
fperms +x "/opt/${PN}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg"
insinto "/usr/share/licenses/${PN}"
}
pkg_postinst(){
elog "You may install some additional utils, so check them in:"
elog "https://code.visualstudio.com/Docs/setup#_additional-tools"
}

Loading…
取消
儲存