VisualStudio-Code added app-editors/visual-studio-code-1.38.0
This commit is contained in:
parent
3b95f991e1
commit
2364b3f260
2
app-editors/visual-studio-code/Manifest
Normal file
2
app-editors/visual-studio-code/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST visual-studio-code-1.38.0-amd64.tar.gz 80879094 BLAKE2B efd6ce4e61b424d0581f14d25fb93fd87ac43c492fb956f9fa8708cca188a732b6fb16136b05c609c196f9cd8a6a4a5f159bea1c289a4097e1a56e76d2499aed SHA512 9f13490bca4e8b4bfba75a0c69afdcda3b188f8bd88c33018a77537df01bf4ea8b97035a229300298b440f6b1d68e0543c43ef4e353c2be4b0edd2450c45a4dc
|
||||
EBUILD visual-studio-code-1.38.0.ebuild 1526 BLAKE2B 4efbcda57bea781f7a4f09e9fd9eabb954304c1817319eba9791bbb8898f9513a0f08799e04347cd9e995c174fc9752b29c670800ecf7b9b2e9174202088c763 SHA512 d32f491b9fdbe581300626583cc5a8a28f4a693abe9171fd91bc7339a1ba3927402731ddde5994d982dffebf1323a173ab1397b001f5c93e15c32b9bdb88a749
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop pax-utils
|
||||
|
||||
MY_PN="${PN/-bin}"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Multiplatform Visual Studio Code from Microsoft (binary version)"
|
||||
HOMEPAGE="https://code.visualstudio.com"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${MY_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"
|
||||
}
|
||||
|
||||
src_install(){
|
||||
pax-mark m code
|
||||
mkdir -p "${D}/opt/${MY_PN}"
|
||||
cp -r . "${D}/opt/${MY_PN}/"
|
||||
dosym "/opt/${MY_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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user