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