mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 19:20:56 +02:00
visual-studio-code-1.47.3.ebuild
This commit is contained in:
parent
a63203fbf8
commit
b596057b4f
3 changed files with 1 additions and 76 deletions
|
|
@ -1,3 +1,2 @@
|
|||
DIST visual-studio-code-1.46.1-amd64.tar.gz 89251663 BLAKE2B 61148268605c94f5faa9cc9755b6638665a80884e3988849ca64d17501514c69392222788731cb31cf910f0b1ba7c2ab0a70330c79db8e8ff4cce3b7607ad9d6 SHA512 916bd084481a9b435aa2f3c9513784cda34092334dff591c52e9921966c178d2f74021ad2015e71d6ced1c889f0406282992fe5654e29a25274094f944b1ba2f
|
||||
DIST visual-studio-code-1.47.0-amd64.tar.gz 89436593 BLAKE2B 82eca244047ff9762a86b471b54b75555aa7c4bf5de3cb80a341e920b1bad38068640d69bc458eca0d955052549a52c0b0440eb88fdb8027a462d961dbb39566 SHA512 2378389f007fed20958b67fe648069a876e193dac658679f5ddc7fed16ddaa0d1c30f9269b545db47c37645c758030c0552ba1ca9dc052923b0500f684475649
|
||||
DIST visual-studio-code-1.47.2-amd64.tar.gz 89440138 BLAKE2B daf86fcb54c363ad0d3a3f1fc368e8ca30425b8784080717d9c489a1b19d1904c80e7751c23fb31a2d352f68632a9d154393be77c7fc7eb6469a590be40bb307 SHA512 a1acdc646edf62ceb62cec80103461815cab6e15154927716ba101ac78249ed65477e3ae59b603a1e14f5241bb8361c5e8ca4c8944c1619e5e11db60128f07f9
|
||||
DIST visual-studio-code-1.47.3-amd64.tar.gz 89445035 BLAKE2B 82ff0d13ff0c2d553d7f9480997b4a4f535588e72af5f8f3960b09200e559fc1fa6aa43a5dd50c2b9239640c83eb5c513e35365a97cb6e1f483234f848757b7a SHA512 0dafd757d9e7fe0edb1e14463cafe66c850d4ba65ef6a16086d0af4047ad8faccc45e961939f1304eb4e2a914583cc6fb6ab6ee937f8ff29631ed1928c364a7b
|
||||
|
|
|
|||
|
|
@ -1,74 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit eutils pax-utils desktop
|
||||
|
||||
DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
|
||||
HOMEPAGE="https://code.visualstudio.com"
|
||||
BASE_URI="https://vscode-update.azurewebsites.net/${PV}"
|
||||
# x86? ( ${BASE_URI}/linux-ia32/stable -> ${P}-x86.tar.gz )
|
||||
SRC_URI="
|
||||
amd64? ( ${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz )
|
||||
"
|
||||
|
||||
RESTRICT="mirror strip bindist"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="gnome-keyring"
|
||||
|
||||
DEPEND="gnome-base/gsettings-desktop-schemas
|
||||
>=media-libs/libpng-1.2.46:0
|
||||
>=x11-libs/cairo-1.14.12:0
|
||||
>=x11-libs/gtk+-2.24.31-r1:2
|
||||
>=x11-libs/libXtst-1.2.3:0
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=net-print/cups-2.1.4:0
|
||||
>=x11-libs/libnotify-0.7.7:0
|
||||
>=x11-libs/libXScrnSaver-1.2.2-r1:0
|
||||
dev-libs/nss
|
||||
gnome-keyring? ( app-crypt/libsecret[crypt] )
|
||||
"
|
||||
|
||||
QA_PREBUILT="opt/${PN}/*"
|
||||
QA_PRESTRIPPED="opt/${PN}/*"
|
||||
|
||||
pkg_setup(){
|
||||
use amd64 && S="${WORKDIR}/VSCode-linux-x64" || S="${WORKDIR}/VSCode-linux-ia32"
|
||||
}
|
||||
|
||||
src_install(){
|
||||
local DEST="/opt/${PN}"
|
||||
pax-mark m code
|
||||
insinto "${DEST}"
|
||||
doins -r *
|
||||
dosym "${DEST}/bin/code" "/usr/bin/${PN}"
|
||||
dosym "${DEST}/bin/code" "/usr/bin/vscode"
|
||||
make_desktop_entry "vscode" "Visual Studio Code" "${PN}" "Development;IDE"
|
||||
doicon "${FILESDIR}/${PN}.png"
|
||||
fperms +x "${DEST}/code"
|
||||
fperms +x "${DEST}/bin/code"
|
||||
# fperms +x "${DEST}/libnode.so"
|
||||
fperms +x "${DEST}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg"
|
||||
fperms +x "${DEST}/resources/app/extensions/git/dist/askpass.sh"
|
||||
insinto "/usr/share/licenses/${PN}"
|
||||
for i in resources/app/LICEN*;
|
||||
do
|
||||
newins "${i}" "`basename ${i}`"
|
||||
done
|
||||
for i in resources/app/licenses/*;
|
||||
do
|
||||
newins "${i}" "`basename ${i}`"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
einfo "You may install some additional utils, so check them in:"
|
||||
einfo "https://code.visualstudio.com/Docs/setup#_additional-tools"
|
||||
}
|
||||
Loading…
Reference in a new issue