1 |
commit: ed70a243ffcf119987038edbc13ccf12fd32908e |
2 |
Author: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook <DOT> com> |
3 |
AuthorDate: Sat Sep 25 04:48:16 2021 +0000 |
4 |
Commit: Leonardo Hernandez <leohdz172 <AT> outlook <DOT> com> |
5 |
CommitDate: Sat Sep 25 04:54:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ed70a243 |
7 |
|
8 |
www-apps/code-server-bin: bump to 3.12.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/807196 |
11 |
|
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
13 |
Signed-off-by: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook.com> |
14 |
|
15 |
www-apps/code-server-bin/Manifest | 2 + |
16 |
.../code-server-bin/code-server-bin-3.12.0.ebuild | 87 ++++++++++++++++++++++ |
17 |
2 files changed, 89 insertions(+) |
18 |
|
19 |
diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest |
20 |
index 41ec266f2..40ea4ae7e 100644 |
21 |
--- a/www-apps/code-server-bin/Manifest |
22 |
+++ b/www-apps/code-server-bin/Manifest |
23 |
@@ -1,2 +1,4 @@ |
24 |
DIST code-server-3.10.0-linux-amd64.tar.gz 79827037 BLAKE2B 238980bd822322dab956ce1dca8b8d7fa91eca6db8eb9808a68db28b9e9a8caa5432582cfa765ff0ac1ce948866a7f91a45df42045a83b75c13ac793ed1a78ee SHA512 bd0410e0310a027ff1ed3f7c8b0d07a4a28baf8df924192d8a240f8011765b6a1daaae94bc7f37d1904dc9c2813d951eeb0c289aadd0192a15daa9cb6461c25d |
25 |
DIST code-server-3.10.0-linux-arm64.tar.gz 77802222 BLAKE2B f13ff2e1d83d7c7d3be0033196911aef81324aa0f450c8973919a128fafbbf9d255aba59b2bfc6432c2fa0dadb4cf179d57772f86ad2c87213d43eb60244d024 SHA512 bc149c0716dc4df560a87d149bfceb712b864bdfbfc99e43ee476a574d76d52acd02c3c87a9b09a47c73c0789c85f3794c350be4b222a930d8dc3d7eec49017e |
26 |
+DIST code-server-3.12.0-linux-amd64.tar.gz 98959884 BLAKE2B 7be2195b1d2e325244620bf59608fb21390846657249e182b43224ede950aafbd837b09100af67925a92054923239e079063e6dff23cc6c9e4c0dbe010684069 SHA512 f14fce86d4a837cdfe867beb7256d7d57035edac258c7ac5be8de8fb778771ad0ff5549920a41ef80504e738727c0159c1dbff70c7b48cfe37415dd4c9ad40c6 |
27 |
+DIST code-server-3.12.0-linux-arm64.tar.gz 97388956 BLAKE2B b73d41ce320e3af7e980972a64d7d47d11c9bf1d1d69ca7c7cb16e1963d5b1fada4558a8630c317cf82093f1aa4126c33246a3aec7581f2723d1497cedb504c8 SHA512 f23def255bc6bfcf0e796d7cabb104bb1c7a8576783150ff8b8f040a8792d3df8f97f7c5a8e7963eab2ff7f6f4a203543d4b127f27a7b2885ceb52ae62c8b5c6 |
28 |
|
29 |
diff --git a/www-apps/code-server-bin/code-server-bin-3.12.0.ebuild b/www-apps/code-server-bin/code-server-bin-3.12.0.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000..ed42aaf28 |
32 |
--- /dev/null |
33 |
+++ b/www-apps/code-server-bin/code-server-bin-3.12.0.ebuild |
34 |
@@ -0,0 +1,87 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+MY_PN="${PN/-bin/}" |
41 |
+MY_P="${MY_PN}-${PV}" |
42 |
+BASE_URI="https://github.com/cdr/${MY_PN}/releases/download/v${PV}/${MY_P}-linux" |
43 |
+ |
44 |
+inherit systemd |
45 |
+ |
46 |
+DESCRIPTION="VS Code in the browser (binary version with unbundled node and ripgrep)" |
47 |
+HOMEPAGE="https://coder.com/" |
48 |
+SRC_URI=" |
49 |
+ amd64? ( ${BASE_URI}-amd64.tar.gz ) |
50 |
+ arm64? ( ${BASE_URI}-arm64.tar.gz ) |
51 |
+" |
52 |
+ |
53 |
+RESTRICT="test" |
54 |
+LICENSE="MIT" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="-* ~amd64 ~arm64" |
57 |
+IUSE="gnome-keyring" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ ${DEPEND} |
61 |
+ >=net-libs/nodejs-14.17.5:0/14[ssl] |
62 |
+ sys-apps/ripgrep |
63 |
+ gnome-keyring? ( |
64 |
+ app-crypt/libsecret |
65 |
+ ) |
66 |
+" |
67 |
+ |
68 |
+S="${WORKDIR}/${MY_P}-linux-${ARCH}" |
69 |
+ |
70 |
+PATCHES=( "${FILESDIR}/${PN}-node.patch" ) |
71 |
+ |
72 |
+DOCS=( "README.md" "ThirdPartyNotices.txt" ) |
73 |
+ |
74 |
+QA_PREBUILT=" |
75 |
+ /usr/lib64/code-server/lib/coder-cloud-agent |
76 |
+ /usr/lib64/code-server/vendor/modules/code-oss-dev/node_modules/* |
77 |
+" |
78 |
+QA_PRESTRIPPED=" |
79 |
+ /usr/lib64/code-server/lib/coder-cloud-agent |
80 |
+" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ |
85 |
+ # We remove as much precompiled code as we can, |
86 |
+ # node modules not written in JS cannot be removed |
87 |
+ # thus "-bin". |
88 |
+ |
89 |
+ # use system node |
90 |
+ rm ./node ./lib/node \ |
91 |
+ || die "failed to remove bundled nodejs" |
92 |
+ |
93 |
+ # remove bundled ripgrep binary |
94 |
+ rm ./vendor/modules/code-oss-dev/node_modules/vscode-ripgrep/bin/rg \ |
95 |
+ || die "failed to remove bundled ripgrep" |
96 |
+ |
97 |
+ # not needed |
98 |
+ rm ./code-server || die |
99 |
+ rm ./postinstall.sh || die |
100 |
+ |
101 |
+ # already in /usr/portage/licenses/MIT |
102 |
+ rm ./LICENSE.txt || die |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ einstalldocs |
107 |
+ |
108 |
+ insinto "/usr/$(get_libdir)/${MY_PN}" |
109 |
+ doins -r . |
110 |
+ fperms +x "/usr/$(get_libdir)/${MY_PN}/bin/${MY_PN}" |
111 |
+ dosym -r "/usr/$(get_libdir)/${MY_PN}/bin/${MY_PN}" "${EPREFIX}/usr/bin/${MY_PN}" |
112 |
+ |
113 |
+ dosym -r "/usr/bin/rg" "${EPREFIX}/usr/$(get_libdir)/${MY_PN}/vendor/modules/code-oss-dev/node_modules/vscode-ripgrep/bin/rg" |
114 |
+ |
115 |
+ systemd_dounit "${FILESDIR}/${MY_PN}.service" |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ elog "When using code-server systemd service run it as a user" |
120 |
+ elog "For example: 'systemctl --user enable --now code-server'" |
121 |
+} |