commit:     790597564b6ec7f12b2fee007d79fa945af9c2a9
Author:     kuzetsa <kuzetsa <AT> gmail <DOT> com>
AuthorDate: Tue Mar  6 07:32:04 2018 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Mar  6 07:32:04 2018 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=79059756

app-editors/visual-studio-code: initial commit

repoman is still (slightly) angry with this

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/visual-studio-code.desktop               |   8 +++
 .../files/visual-studio-code.png                   | Bin 0 -> 20541 bytes
 app-editors/visual-studio-code/metadata.xml        |   8 +++
 .../visual-studio-code-1.20.1.ebuild               |  54 +++++++++++++++++++++
 4 files changed, 70 insertions(+)

diff --git a/app-editors/visual-studio-code/files/visual-studio-code.desktop 
b/app-editors/visual-studio-code/files/visual-studio-code.desktop
new file mode 100644
index 0000000..46ee644
--- /dev/null
+++ b/app-editors/visual-studio-code/files/visual-studio-code.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Visual Studio Code
+Type=Application
+Comment=Multiplatform Visual Studio Code from Microsoft
+Exec=visual-studio-code %F
+TryExec=visual-studio-code
+Icon=visual-studio-code
+Categories=Development;IDE;

diff --git a/app-editors/visual-studio-code/files/visual-studio-code.png 
b/app-editors/visual-studio-code/files/visual-studio-code.png
new file mode 100644
index 0000000..eea08d6
Binary files /dev/null and 
b/app-editors/visual-studio-code/files/visual-studio-code.png differ

diff --git a/app-editors/visual-studio-code/metadata.xml 
b/app-editors/visual-studio-code/metadata.xml
new file mode 100644
index 0000000..09d7c7e
--- /dev/null
+++ b/app-editors/visual-studio-code/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>kuze...@gmail.com</email>
+    <name>kuzetsa</name>
+  </maintainer>
+</pkgmetadata>

diff --git a/app-editors/visual-studio-code/visual-studio-code-1.20.1.ebuild 
b/app-editors/visual-studio-code/visual-studio-code-1.20.1.ebuild
new file mode 100644
index 0000000..ae8585f
--- /dev/null
+++ b/app-editors/visual-studio-code/visual-studio-code-1.20.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
+HOMEPAGE="https://code.visualstudio.com";
+BASE_URI="https://vscode-update.azurewebsites.net/${PV}";
+SRC_URI="${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz"
+RESTRICT="mirror strip bindist"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~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(){
+S="${WORKDIR}/VSCode-linux-x64"
+}
+
+src_install(){
+insinto "/opt/${PN}"
+doins -r *
+dosym "${EPREFIX}/opt/${PN}/bin/code" "/usr/bin/${PN}"
+make_desktop_entry "${PN}" "Visual Studio Code" "${PN}" "Development;IDE"
+doicon "${FILESDIR}/${PN}.png"
+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/vscode-ripgrep/bin/rg"
+insinto "/usr/share/licenses/${PN}"
+newins "resources/app/LICENSE.txt" "LICENSE"
+}

Reply via email to