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: Wed, 10 Oct 2018 11:24:52
Message-Id: 1538996494.61a9ffab042ad3ab252f07888150c1a44d31c624.cynede@gentoo
1 commit: 61a9ffab042ad3ab252f07888150c1a44d31c624
2 Author: Andrew Hlynskyi <ahlincq <AT> gmail <DOT> com>
3 AuthorDate: Mon Oct 8 11:00:17 2018 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 8 11:01:34 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=61a9ffab
7
8 app-editors/visual-studio-code: Bump 1.27.2
9
10 .../visual-studio-code-1.27.2.ebuild | 55 ++++++++++++++++++++++
11 1 file changed, 55 insertions(+)
12
13 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
14 new file mode 100644
15 index 0000000..c4ac60f
16 --- /dev/null
17 +++ b/app-editors/visual-studio-code/visual-studio-code-1.27.2.ebuild
18 @@ -0,0 +1,55 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=6
23 +
24 +inherit eutils
25 +
26 +DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
27 +HOMEPAGE="https://code.visualstudio.com"
28 +BASE_URI="https://vscode-update.azurewebsites.net/${PV}"
29 +SRC_URI="amd64? ( ${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz )
30 + x86? ( ${BASE_URI}/linux-ia32/stable -> ${P}-x86.tar.gz )"
31 +RESTRICT="mirror strip bindist"
32 +
33 +LICENSE="MIT"
34 +SLOT="0"
35 +KEYWORDS="~x86 ~amd64"
36 +IUSE=""
37 +
38 +DEPEND=">=gnome-base/gconf-3.2.6-r4:2
39 +>=media-libs/libpng-1.2.46:0
40 +>=x11-libs/cairo-1.14.12:0
41 +>=x11-libs/gtk+-2.24.31-r1:2
42 +>=x11-libs/libXtst-1.2.3:0"
43 +
44 +RDEPEND="${DEPEND}
45 +>=app-crypt/libsecret-0.18.5:0[crypt]
46 +>=net-print/cups-2.1.4:0
47 +>=x11-libs/libnotify-0.7.7:0
48 +>=x11-libs/libXScrnSaver-1.2.2-r1:0"
49 +
50 +QA_PRESTRIPPED="opt/${PN}/code"
51 +QA_PREBUILT="opt/${PN}/code"
52 +
53 +pkg_setup() {
54 + if use amd64; then
55 + S="${WORKDIR}/VSCode-linux-x64"
56 + elif use x86; then
57 + S="${WORKDIR}/VSCode-linux-ia32"
58 + else
59 + # shouldn't be possible with -* special keyword
60 + die
61 + fi
62 +}
63 +
64 +src_install() {
65 + dodir "/opt"
66 + # Using doins -r would strip executable bits from all binaries
67 + cp -pPR "${S}" "${D}/opt/${PN}" || die "Failed to copy files"
68 + dosym "${EPREFIX}/opt/${PN}/bin/code" "/usr/bin/code"
69 + make_desktop_entry "code" "Visual Studio Code" "${PN}" "Development;IDE"
70 + newicon "${S}/resources/app/resources/linux/code.png" "${PN}.png"
71 + insinto "/usr/share/licenses/${PN}"
72 + newins "resources/app/LICENSE.txt" "LICENSE"
73 +}