visual-studio-code to visual-studio-code-bin
This commit is contained in:
parent
de0ec775fb
commit
abb8cdcf96
5
app-editors/visual-studio-code-bin/Manifest
Normal file
5
app-editors/visual-studio-code-bin/Manifest
Normal file
@ -0,0 +1,5 @@
|
||||
AUX visual-studio-code.desktop 195 BLAKE2B 3cbbff8ba830866029b2b9600dc9e8299e441b9b8281d4cafefd68804b347f85fdcf75dd538ff678d19de754572b2712337568ce08ca33b7e00d3122a3d40fb5 SHA512 8fa6766d549c056d99a10d5fa8ed00c074127a4ff17d34e931a86a2bb60d728eafebdc1e52b6ebcd8f8812283cab474c2e418cab880de5fb25b90c208bcdb1dd
|
||||
AUX visual-studio-code.png 20541 BLAKE2B 8febeed62abc40c5b19ea6bf7156bacf35f6527e385d946465dde8d772de8293ae85dbf18dbe3f42ba5c35e0910942a9d13f4271e2e70ae29409a6eb8c1c01b6 SHA512 8778ac3f72669374a974642f4879dc9bcddadd179a423c80676c1283001582830d8aa7bab280176e51c1dbade5a413aa47774973e425f4c94037ea7de709e718
|
||||
DIST visual-studio-code-1.33.9999-amd64.tar.gz 67983655 BLAKE2B 3e40bf563414d7cfbf827b55cbaad04faf1a5e75aa7332045d59b21338ab4cc032edf56845f4cd9d9a402b711152f0cbf326fc99f618659dc8a2ac3904947da6 SHA512 d881380e568f7e3c2843c5b02cf615c77205d5ce9a87dd419cd945e56d97591ae0ea9e0386edb4eefecf57b352d937519e94be1e588c65022744e1736eb43433
|
||||
EBUILD visual-studio-code-1.33.9999.ebuild 1497 BLAKE2B f27f1696b6a6737351350389a951f3ade3833142ba9c410c9c57ed95f90ed9217d603f7ac469d3c987cf42bc4c8003d1849d8f55739f7d2232e18279857d62a5 SHA512 b0a113d2af75d4b1fb636ff37538f103ace8b321243e836589257c8fabe4dbbb94398745baf14eb9eb63fc8e568d0e09dcc66e6c2fe54c432cb918b3d6f0f61a
|
||||
MISC metadata.xml 246 BLAKE2B 5a79402c1e1c5f0f86d2b3e63eaaf5181866aa5b40cd9802e42d1d0a5bc4f2e9800d018dfd82cfde53de475f15a1fd839da7204bb13059553c0fece3aef027df SHA512 be3d20d060cf57dd1d5522d73192f87bafde42258cf5a12db1e79c1b2de380b55d3176f001cc435bb2ef196643c6e09bb5cbb7ca67e18d69fba8453c61031519
|
@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Name=Visual Studio Code
|
||||
Type=Application
|
||||
Comment=Multiplatform Visual Studio Code from Microsoft
|
||||
Exec=vscode %F
|
||||
TryExec=vscode
|
||||
Icon=visual-studio-code
|
||||
Categories=Development;IDE;
|
BIN
app-editors/visual-studio-code-bin/files/visual-studio-code.png
Normal file
BIN
app-editors/visual-studio-code-bin/files/visual-studio-code.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils
|
||||
|
||||
EXEC_NAME=vscode
|
||||
DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
|
||||
HOMEPAGE="https://code.visualstudio.com"
|
||||
BASE_URI="https://vscode-update.azurewebsites.net/${PV}"
|
||||
SRC_URI="https://go.microsoft.com/fwlink/?LinkId=723968 -> ${P}-amd64.tar.gz"
|
||||
RESTRICT="mirror strip bindist"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=gnome-base/gconf-3.2.6-r4:2
|
||||
>=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}
|
||||
>=app-crypt/libsecret-0.18.5:0[crypt]
|
||||
>=net-print/cups-2.1.4:0
|
||||
>=x11-libs/libnotify-0.7.7:0
|
||||
>=x11-libs/libXScrnSaver-1.2.2-r1:0"
|
||||
|
||||
QA_PRESTRIPPED="opt/${PN}/code"
|
||||
QA_PREBUILT="opt/${PN}/code"
|
||||
|
||||
pkg_setup() {
|
||||
if use amd64; then
|
||||
S="${WORKDIR}/VSCode-linux-x64"
|
||||
elif use x86; then
|
||||
S="${WORKDIR}/VSCode-linux-ia32"
|
||||
else
|
||||
# shouldn't be possible with -* special keyword
|
||||
die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir "/opt"
|
||||
# Using doins -r would strip executable bits from all binaries
|
||||
cp -pPR "${S}" "${D}/opt/${PN}" || die "Failed to copy files"
|
||||
dosym "${EPREFIX}/opt/${PN}/bin/code-insiders" "/usr/bin/${EXEC_NAME}"
|
||||
make_desktop_entry "${EXEC_NAME}" "Visual Studio Code" "${PN}" "Development;IDE"
|
||||
newicon "${S}/resources/app/resources/linux/code.png" "${PN}.png"
|
||||
insinto "/usr/share/licenses/${PN}"
|
||||
newins "resources/app/LICENSE.rtf" "LICENSE.rtf"
|
||||
}
|
Loading…
Reference in New Issue
Block a user