1 |
commit: 7fbff65a36c6ec149b8b7e20b65a41befae38655 |
2 |
Author: Maciej Barć <xgqt <AT> protonmail <DOT> com> |
3 |
AuthorDate: Fri Feb 5 23:59:07 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Fri Feb 5 23:59:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7fbff65a |
7 |
|
8 |
www-apps/code-server-bin: bump to 3.8.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com> |
12 |
|
13 |
www-apps/code-server-bin/Manifest | 2 + |
14 |
.../code-server-bin/code-server-bin-3.8.1.ebuild | 90 ++++++++++++++++++++++ |
15 |
2 files changed, 92 insertions(+) |
16 |
|
17 |
diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest |
18 |
index 832a710b..9132fe33 100644 |
19 |
--- a/www-apps/code-server-bin/Manifest |
20 |
+++ b/www-apps/code-server-bin/Manifest |
21 |
@@ -4,3 +4,5 @@ DIST code-server-3.6.1-linux-amd64.tar.gz 76288261 BLAKE2B 443135065cdab9e0477d9 |
22 |
DIST code-server-3.6.1-linux-arm64.tar.gz 75331263 BLAKE2B c390e11b02472409ef0147f6dc5392f36eff93dd19a07e2eeed09a2626b541740c0191fdac0cca43e843b3195fc803921bf37b704b67a2e41fa0a531feca560c SHA512 badc150af52263232240edc16e960ac9e51b22e05bc96d81d11726e28d733b1d79139b0d85aa108011f2993c6a6e395134d2524e5fc13fe3b7dfeac24899eb75 |
23 |
DIST code-server-3.8.0-linux-amd64.tar.gz 78942963 BLAKE2B 4c78ed40aec86a72dede21a82ae111884be5cba1958fb22d6353d63af98f6d3bab50c7ae1fa0b81079be6d035e84d873f4ebf00da76edaa15b2356e89b3d1261 SHA512 76cdbbdb63b3061ce9d1cb016466356d5184b83e742fc084d9a0376aa12dc9d68314061ea5cde93f6590b07862169cbd291f77b71dfadc4bee4140e277813ae8 |
24 |
DIST code-server-3.8.0-linux-arm64.tar.gz 77939946 BLAKE2B c154561c308e5e233016f1b9b5f53647a2aaad12b73d27d1e84ee37234104048005b36cccdda5593973238ef279428b8f38309cad193a67afd87d77205eeb27c SHA512 0fe4a42eb1c50ae1d33f9c94e592ac8a3e69fad51abc1f5c90595a1588350e95f78bc2c44f728b3f155112f2db11e79b2227f2e847a45d58c87078d667119a1a |
25 |
+DIST code-server-3.8.1-linux-amd64.tar.gz 78975468 BLAKE2B d4f6424108b0cd4cb46ba9597e02993fc704ee89d0757a575719592cfd7cc2b3e52fdb5fa09a55684999eafc33dcab4483c4339cc584a37bd19453022bff0b27 SHA512 4a530df07482c68ad40da11234835528819f93985895d79914ff14da792a83084c605cb6d34622e475efb51c2b5c1189a4de186734194c7df6685655cd5098e1 |
26 |
+DIST code-server-3.8.1-linux-arm64.tar.gz 78056961 BLAKE2B 0311b5a07d6047f8ff795a0001f04ad824a940e79d87b23d58cc0fa27d04e1653f33a19016406ffcabbd3dabe4df512ee27ad58b7b6dc341517cd7e6845540b7 SHA512 a08308531ff8665f3b83dd6f37a9d668aa73b08ae7652193dc8e842c76982864701989b1713246e3d64a87b0b942a1b426da0170841da17d6ca6782a78850111 |
27 |
|
28 |
diff --git a/www-apps/code-server-bin/code-server-bin-3.8.1.ebuild b/www-apps/code-server-bin/code-server-bin-3.8.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000..543e268b |
31 |
--- /dev/null |
32 |
+++ b/www-apps/code-server-bin/code-server-bin-3.8.1.ebuild |
33 |
@@ -0,0 +1,90 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+MY_PN="${PN/-bin/}" |
40 |
+MY_P="${MY_PN}-${PV}" |
41 |
+BASE_URI="https://github.com/cdr/${MY_PN}/releases/download/v${PV}/${MY_P}-linux" |
42 |
+ |
43 |
+inherit systemd |
44 |
+ |
45 |
+DESCRIPTION="VS Code in the browser (binary version with unbundled node and ripgrep)" |
46 |
+HOMEPAGE="https://coder.com/" |
47 |
+SRC_URI=" |
48 |
+ amd64? ( ${BASE_URI}-amd64.tar.gz ) |
49 |
+ arm64? ( ${BASE_URI}-arm64.tar.gz ) |
50 |
+" |
51 |
+ |
52 |
+RESTRICT="test" |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="-* ~amd64 ~arm64" |
56 |
+IUSE="gnome-keyring" |
57 |
+ |
58 |
+# In case we ever make a non-"-binary" pkg |
59 |
+DEPEND=" |
60 |
+ !www-apps/code-server |
61 |
+" |
62 |
+RDEPEND=" |
63 |
+ ${DEPEND} |
64 |
+ >=net-libs/nodejs-12.16.1:0/12[ssl] |
65 |
+ sys-apps/ripgrep |
66 |
+ gnome-keyring? ( |
67 |
+ app-crypt/libsecret |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+S="${WORKDIR}/${MY_P}-linux-${ARCH}" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}/${PN}-node.patch" |
75 |
+) |
76 |
+ |
77 |
+DOCS=( README.md ThirdPartyNotices.txt ) |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ |
82 |
+ # We remove as much precompiled code as we can, |
83 |
+ # node modules not written in JS cannot be removed |
84 |
+ # thus "-bin". |
85 |
+ |
86 |
+ # use system node |
87 |
+ rm ./node ./lib/node \ |
88 |
+ || die "failed to remove bundled nodejs" |
89 |
+ |
90 |
+ # remove bundled ripgrep binary |
91 |
+ rm ./lib/vscode/node_modules/vscode-ripgrep/bin/rg \ |
92 |
+ || die "failed to remove bundled ripgrep" |
93 |
+ |
94 |
+ # not needed |
95 |
+ rm ./code-server || die |
96 |
+ rm ./postinstall.sh || die |
97 |
+ |
98 |
+ # already in /usr/portage/licenses/MIT |
99 |
+ rm ./LICENSE.txt || die |
100 |
+ |
101 |
+ if ! use gnome-keyring; then |
102 |
+ rm -r ./lib/vscode/node_modules/keytar \ |
103 |
+ || die "failed to remove bundled keytar" |
104 |
+ fi |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ einstalldocs |
109 |
+ |
110 |
+ insinto "/usr/lib/${MY_PN}" |
111 |
+ doins -r . |
112 |
+ fperms +x "${EPREFIX}/usr/lib/${MY_PN}/bin/${MY_PN}" |
113 |
+ dosym "${EPREFIX}/usr/lib/${MY_PN}/bin/${MY_PN}" "${EPREFIX}/usr/bin/${MY_PN}" |
114 |
+ |
115 |
+ dosym "${EPREFIX}/usr/bin/rg" "${EPREFIX}/usr/lib/${MY_PN}/lib/vscode/node_modules/vscode-ripgrep/bin/rg" |
116 |
+ |
117 |
+ systemd_dounit "${FILESDIR}/${MY_PN}.service" |
118 |
+} |
119 |
+ |
120 |
+pkg_postinst() { |
121 |
+ elog "When using code-server systemd service run it as a user" |
122 |
+ elog "For example: 'systemctl --user enable --now code-server'" |
123 |
+} |