Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: app-editors/visual-studio-code/
Date: Fri, 06 Jul 2018 06:24:22
Message-Id: 1530857778.f173c1f86333f595387fa77a7a700da355af2fc4.cynede@gentoo
1 commit: f173c1f86333f595387fa77a7a700da355af2fc4
2 Author: Lucian Poston <lucianposton <AT> pm <DOT> me>
3 AuthorDate: Fri Jul 6 06:16:18 2018 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 6 06:16:18 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f173c1f8
7
8 app-editors/visual-studio-code: Bump 1.25.0
9
10 Also renames /usr/bin/visual-studio-code to /usr/bin/code, as other
11 tools (e.g. unity-editor) require visual studio code to be named as
12 such.
13
14 Package-Manager: Portage-2.3.40, Repoman-2.3.9
15
16 .../visual-studio-code-1.25.0.ebuild | 57 ++++++++++++++++++++++
17 1 file changed, 57 insertions(+)
18
19 diff --git a/app-editors/visual-studio-code/visual-studio-code-1.25.0.ebuild b/app-editors/visual-studio-code/visual-studio-code-1.25.0.ebuild
20 new file mode 100644
21 index 0000000..f2e334f
22 --- /dev/null
23 +++ b/app-editors/visual-studio-code/visual-studio-code-1.25.0.ebuild
24 @@ -0,0 +1,57 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +inherit eutils
31 +
32 +DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
33 +HOMEPAGE="https://code.visualstudio.com"
34 +BASE_URI="https://vscode-update.azurewebsites.net/${PV}"
35 +SRC_URI="amd64? ( ${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz )
36 + x86? ( ${BASE_URI}/linux-ia32/stable -> ${P}-x86.tar.gz )"
37 +RESTRICT="mirror strip bindist"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~x86 ~amd64"
42 +IUSE=""
43 +
44 +DEPEND=">=gnome-base/gconf-3.2.6-r4:2
45 +>=media-libs/libpng-1.2.46:0
46 +>=x11-libs/cairo-1.14.12:0
47 +>=x11-libs/gtk+-2.24.31-r1:2
48 +>=x11-libs/libXtst-1.2.3:0"
49 +
50 +RDEPEND="${DEPEND}
51 +>=app-crypt/libsecret-0.18.5:0[crypt]
52 +>=net-print/cups-2.1.4:0
53 +>=x11-libs/libnotify-0.7.7:0
54 +>=x11-libs/libXScrnSaver-1.2.2-r1:0"
55 +
56 +QA_PRESTRIPPED="opt/${PN}/code"
57 +QA_PREBUILT="opt/${PN}/code"
58 +
59 +pkg_setup() {
60 + if use amd64; then
61 + S="${WORKDIR}/VSCode-linux-x64"
62 + elif use x86; then
63 + S="${WORKDIR}/VSCode-linux-ia32"
64 + else
65 + # shouldn't be possible with -* special keyword
66 + die
67 + fi
68 +}
69 +
70 +src_install() {
71 + insinto "/opt/${PN}"
72 + doins -r *
73 + dosym "${EPREFIX}/opt/${PN}/bin/code" "/usr/bin/code"
74 + make_desktop_entry "code" "Visual Studio Code" "${PN}" "Development;IDE"
75 + doicon "${S}/resources/app/resources/linux/code.png"
76 + fperms +x "/opt/${PN}/code"
77 + fperms +x "/opt/${PN}/bin/code"
78 + fperms +x "/opt/${PN}/libnode.so"
79 + insinto "/usr/share/licenses/${PN}"
80 + newins "resources/app/LICENSE.txt" "LICENSE"
81 +}