-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
76 changes: 76 additions & 0 deletions
76
app-editors/visual-studio-code/visual-studio-code-1.46.1.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |