1 |
commit: 4e9ac517df5636a55d5f26b02db48378d20a9961 |
2 |
Author: Ross Charles Campbell <rossbridger.cc <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 2 16:13:06 2021 +0000 |
4 |
Commit: Ross Charles Campbell <rossbridger.cc <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Jan 2 16:13:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e9ac517 |
7 |
|
8 |
app-editors/vscodium-bin: New Package |
9 |
|
10 |
Bug: https://bugs.gentoo.org/675742 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/18733 |
12 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
13 |
Signed-off-by: Ross Charles Campbell <rossbridger.cc <AT> gmail.com> |
14 |
|
15 |
app-editors/vscodium-bin/Manifest | 3 ++ |
16 |
.../vscodium-bin/files/codium-url-handler.desktop | 12 +++++ |
17 |
app-editors/vscodium-bin/files/codium.desktop | 18 +++++++ |
18 |
app-editors/vscodium-bin/metadata.xml | 13 +++++ |
19 |
.../vscodium-bin/vscodium-bin-1.52.1.ebuild | 60 ++++++++++++++++++++++ |
20 |
5 files changed, 106 insertions(+) |
21 |
|
22 |
diff --git a/app-editors/vscodium-bin/Manifest b/app-editors/vscodium-bin/Manifest |
23 |
new file mode 100644 |
24 |
index 00000000..cbf5b35c |
25 |
--- /dev/null |
26 |
+++ b/app-editors/vscodium-bin/Manifest |
27 |
@@ -0,0 +1,3 @@ |
28 |
+DIST VSCodium-linux-arm64-1.52.1.tar.gz 99006948 BLAKE2B 933e5b283e011873b7da60a838e7778d8ff1cf69006e5bf370fdeba7aa6709c2b8ea427936d353c75c0331d1a78defb7c0983d73d59c71163cde6ca32cf1ac32 SHA512 e96c79b1176a07f6cbd1a1d30d4a4d0d66d519d854bc0aa0e24e9baa4b0f6fe959e12b4888330188210957763febc644601f958b635deaa7e900f55f0eb5550f |
29 |
+DIST VSCodium-linux-armhf-1.52.1.tar.gz 85288104 BLAKE2B 3df56d4708f44e5029a9cfed05185957951ead696885f16e8d3da8587f812f9e088e37e2b355157989a0e272661f367a1bd2d70cfbc7953a1f07f166b7b8292d SHA512 ffd5b2b476896d4aed67ed0bd157ca14819f493534c9e15eba247998becb06042c6c0caa88ee2db7e76529da252dac57c43c86371430b57a5819ce392cdcdcb5 |
30 |
+DIST VSCodium-linux-x64-1.52.1.tar.gz 96026417 BLAKE2B 0d06ddef0de3af3d22de4757bd5b81742cdfb6605192c61374857fdacfd8df374adf180aaa1f31f0397ead97e7f668320125ef1f806c71689348ac4a3c8bab8d SHA512 9a60f6821e7a796eaca842817fd3853c8099d74418ccabeacabed01c4f7b46b49c52bb11a032c317c27e3cef7ef2c49d2cf967ca2d2d79013790994a6aa9159f |
31 |
|
32 |
diff --git a/app-editors/vscodium-bin/files/codium-url-handler.desktop b/app-editors/vscodium-bin/files/codium-url-handler.desktop |
33 |
new file mode 100644 |
34 |
index 00000000..c1fa0064 |
35 |
--- /dev/null |
36 |
+++ b/app-editors/vscodium-bin/files/codium-url-handler.desktop |
37 |
@@ -0,0 +1,12 @@ |
38 |
+[Desktop Entry] |
39 |
+Name=VSCodium - URL Handler |
40 |
+Comment=Code Editing. Redefined. |
41 |
+GenericName=Text Editor |
42 |
+Exec=/usr/bin/codium --no-sandbox --open-url %U |
43 |
+Icon=vscodium |
44 |
+Type=Application |
45 |
+NoDisplay=true |
46 |
+StartupNotify=true |
47 |
+Categories=Utility;TextEditor;Development;IDE; |
48 |
+MimeType=x-scheme-handler/vscodium; |
49 |
+Keywords=vscode; |
50 |
|
51 |
diff --git a/app-editors/vscodium-bin/files/codium.desktop b/app-editors/vscodium-bin/files/codium.desktop |
52 |
new file mode 100644 |
53 |
index 00000000..4e9579aa |
54 |
--- /dev/null |
55 |
+++ b/app-editors/vscodium-bin/files/codium.desktop |
56 |
@@ -0,0 +1,18 @@ |
57 |
+[Desktop Entry] |
58 |
+Name=VSCodium |
59 |
+Comment=Code Editing. Redefined. |
60 |
+GenericName=Text Editor |
61 |
+Exec=/usr/bin/codium --no-sandbox --unity-launch %F |
62 |
+Icon=vscodium |
63 |
+Type=Application |
64 |
+StartupNotify=false |
65 |
+StartupWMClass=VSCodium |
66 |
+Categories=Utility;TextEditor;Development;IDE; |
67 |
+MimeType=text/plain;inode/directory;application/x-codium-workspace; |
68 |
+Actions=new-empty-window; |
69 |
+Keywords=vscode; |
70 |
+ |
71 |
+[Desktop Action new-empty-window] |
72 |
+Name=New Empty Window |
73 |
+Exec=/usr/bin/codium --no-sandbox --new-window %F |
74 |
+Icon=vscodium |
75 |
|
76 |
diff --git a/app-editors/vscodium-bin/metadata.xml b/app-editors/vscodium-bin/metadata.xml |
77 |
new file mode 100644 |
78 |
index 00000000..2a0f0b7f |
79 |
--- /dev/null |
80 |
+++ b/app-editors/vscodium-bin/metadata.xml |
81 |
@@ -0,0 +1,13 @@ |
82 |
+<?xml version="1.0" encoding="UTF-8"?> |
83 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
84 |
+<pkgmetadata> |
85 |
+ <maintainer type="person"> |
86 |
+ <email>rossbridger.cc@×××××.com</email> |
87 |
+ <name>Ross Charles Campbell</name> |
88 |
+ </maintainer> |
89 |
+ <longdescription> |
90 |
+This is not a fork. This is a repository of scripts to automatically |
91 |
+build Microsoft's vscode repository into freely-licensed binaries with |
92 |
+a community-driven default configuration. |
93 |
+ </longdescription> |
94 |
+</pkgmetadata> |
95 |
|
96 |
diff --git a/app-editors/vscodium-bin/vscodium-bin-1.52.1.ebuild b/app-editors/vscodium-bin/vscodium-bin-1.52.1.ebuild |
97 |
new file mode 100644 |
98 |
index 00000000..c18d9b7b |
99 |
--- /dev/null |
100 |
+++ b/app-editors/vscodium-bin/vscodium-bin-1.52.1.ebuild |
101 |
@@ -0,0 +1,60 @@ |
102 |
+# Copyright 2020-2021 Gentoo Authors |
103 |
+# Distributed under the terms of the GNU General Public License v2 |
104 |
+ |
105 |
+EAPI=7 |
106 |
+ |
107 |
+inherit desktop pax-utils xdg |
108 |
+ |
109 |
+MY_PN="${PN/-bin}" |
110 |
+ |
111 |
+DESCRIPTION="Free/Libre Open Source Software Binaries of VSCode" |
112 |
+HOMEPAGE="https://vscodium.com" |
113 |
+ |
114 |
+SRC_URI=" |
115 |
+ amd64? ( https://github.com/VSCodium/vscodium/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz ) |
116 |
+ arm? ( https://github.com/VSCodium/vscodium/releases/download/${PV}/VSCodium-linux-armhf-${PV}.tar.gz ) |
117 |
+ arm64? ( https://github.com/VSCodium/vscodium/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz )" |
118 |
+ |
119 |
+RESTRICT="strip bindist" |
120 |
+ |
121 |
+LICENSE="MIT" |
122 |
+SLOT="0" |
123 |
+KEYWORDS="-* ~amd64 ~arm ~arm64" |
124 |
+ |
125 |
+RDEPEND=" |
126 |
+ app-accessibility/at-spi2-atk |
127 |
+ app-crypt/libsecret[crypt] |
128 |
+ dev-libs/nss |
129 |
+ media-libs/libpng:0/16 |
130 |
+ x11-libs/cairo |
131 |
+ x11-libs/gtk+:3 |
132 |
+ x11-libs/libnotify |
133 |
+ x11-libs/libXScrnSaver |
134 |
+ x11-libs/libXtst |
135 |
+ x11-libs/pango" |
136 |
+ |
137 |
+QA_PRESTRIPPED="*" |
138 |
+ |
139 |
+QA_PREBUILT=" |
140 |
+ opt/${MY_PN}/codium |
141 |
+ opt/${MY_PN}/libEGL.so |
142 |
+ opt/${MY_PN}/libffmpeg.so |
143 |
+ opt/${MY_PN}/libGLESv2.so |
144 |
+ opt/${MY_PN}/libvk_swiftshader.so |
145 |
+ opt/${MY_PN}/libvulkan.so |
146 |
+ opt/${MY_PN}/swiftshader/libEGL.so |
147 |
+ opt/${MY_PN}/swiftshader/libGLESv2.so" |
148 |
+ |
149 |
+S="${WORKDIR}" |
150 |
+ |
151 |
+src_install() { |
152 |
+ pax-mark m codium |
153 |
+ insinto "/opt/${MY_PN}" |
154 |
+ doins -r * |
155 |
+ fperms +x /opt/${MY_PN}/{,bin/}codium |
156 |
+ dosym "../../opt/${MY_PN}/bin/codium" "usr/bin/codium" |
157 |
+ domenu "${FILESDIR}/codium.desktop" |
158 |
+ domenu "${FILESDIR}/codium-url-handler.desktop" |
159 |
+ dodoc resources/app/LICENSE.txt resources/app/ThirdPartyNotices.txt |
160 |
+ newicon resources/app/resources/linux/code.png ${MY_PN}.png |
161 |
+} |