aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hlynskyi <ahlincq@gmail.com>2018-10-08 14:07:12 +0300
committerAndrew Hlynskyi <ahlincq@gmail.com>2018-10-08 14:10:51 +0300
commitcb3fa853bfd2fb7d636cbb5fa68220ae4c1c87ff (patch)
treed082e0baf13af8d61754d033aba9d09e992eee4e
parentapp-editors/visual-studio-code: Bump 1.27.2 (diff)
downloaddotnet-cb3fa853bfd2fb7d636cbb5fa68220ae4c1c87ff.tar.gz
dotnet-cb3fa853bfd2fb7d636cbb5fa68220ae4c1c87ff.tar.bz2
dotnet-cb3fa853bfd2fb7d636cbb5fa68220ae4c1c87ff.zip
app-editors/visual-studio-code: Rename executable symlink from 'code' to 'vscode'
The "code" name is too broad and may lead to name clashes so it's better to use short but well known "vscode" name.
-rw-r--r--app-editors/visual-studio-code/visual-studio-code-1.27.2.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/app-editors/visual-studio-code/visual-studio-code-1.27.2.ebuild b/app-editors/visual-studio-code/visual-studio-code-1.27.2.ebuild
index c4ac60f..6196f21 100644
--- a/app-editors/visual-studio-code/visual-studio-code-1.27.2.ebuild
+++ b/app-editors/visual-studio-code/visual-studio-code-1.27.2.ebuild
@@ -5,6 +5,7 @@ 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}"
@@ -47,8 +48,8 @@ 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" "/usr/bin/code"
- make_desktop_entry "code" "Visual Studio Code" "${PN}" "Development;IDE"
+ dosym "${EPREFIX}/opt/${PN}/bin/code" "/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.txt" "LICENSE"