1 |
commit: e6565986e6a3d1bf7a9eae43d9b809bd0744caaf |
2 |
Author: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook <DOT> com> |
3 |
AuthorDate: Mon Jan 24 20:07:45 2022 +0000 |
4 |
Commit: Leonardo Hernandez <leohdz172 <AT> outlook <DOT> com> |
5 |
CommitDate: Mon Jan 24 20:07:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e6565986 |
7 |
|
8 |
www-apps/code-server-bin: bump to 4.0.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook.com> |
12 |
|
13 |
www-apps/code-server-bin/Manifest | 2 + |
14 |
.../code-server-bin/code-server-bin-4.0.1.ebuild | 88 ++++++++++++++++++++++ |
15 |
2 files changed, 90 insertions(+) |
16 |
|
17 |
diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest |
18 |
index 40ea4ae7e..bb9563565 100644 |
19 |
--- a/www-apps/code-server-bin/Manifest |
20 |
+++ b/www-apps/code-server-bin/Manifest |
21 |
@@ -2,3 +2,5 @@ DIST code-server-3.10.0-linux-amd64.tar.gz 79827037 BLAKE2B 238980bd822322dab956 |
22 |
DIST code-server-3.10.0-linux-arm64.tar.gz 77802222 BLAKE2B f13ff2e1d83d7c7d3be0033196911aef81324aa0f450c8973919a128fafbbf9d255aba59b2bfc6432c2fa0dadb4cf179d57772f86ad2c87213d43eb60244d024 SHA512 bc149c0716dc4df560a87d149bfceb712b864bdfbfc99e43ee476a574d76d52acd02c3c87a9b09a47c73c0789c85f3794c350be4b222a930d8dc3d7eec49017e |
23 |
DIST code-server-3.12.0-linux-amd64.tar.gz 98959884 BLAKE2B 7be2195b1d2e325244620bf59608fb21390846657249e182b43224ede950aafbd837b09100af67925a92054923239e079063e6dff23cc6c9e4c0dbe010684069 SHA512 f14fce86d4a837cdfe867beb7256d7d57035edac258c7ac5be8de8fb778771ad0ff5549920a41ef80504e738727c0159c1dbff70c7b48cfe37415dd4c9ad40c6 |
24 |
DIST code-server-3.12.0-linux-arm64.tar.gz 97388956 BLAKE2B b73d41ce320e3af7e980972a64d7d47d11c9bf1d1d69ca7c7cb16e1963d5b1fada4558a8630c317cf82093f1aa4126c33246a3aec7581f2723d1497cedb504c8 SHA512 f23def255bc6bfcf0e796d7cabb104bb1c7a8576783150ff8b8f040a8792d3df8f97f7c5a8e7963eab2ff7f6f4a203543d4b127f27a7b2885ceb52ae62c8b5c6 |
25 |
+DIST code-server-4.0.1-linux-amd64.tar.gz 189350818 BLAKE2B 8021ee303ca759c92a764508b611365200f9c3fb3e499ad2c438118d5ed204bbd652e2b47816d343171b628f3d3b354f996986102f1cdda6146f8103385567bd SHA512 80b760188ff5692ea6283234a5e7d7895328bdd9f7a77e638b5507beff7aebc439edc5585a232de38811bc9f6dbb5e0f9a2d67d387f2f84e6b6dfb2b70739a89 |
26 |
+DIST code-server-4.0.1-linux-arm64.tar.gz 186429607 BLAKE2B a2384e01f4daf72112682bad3f0a926366c52796b9243e9d49e4697a6ad8d65414361147f8c65ff763cf078ecd3ad31249e447877137b53d21d367d8a51a7f19 SHA512 b02fe1f336a612cafaf43bc442ad2150ab6eb8f65df2aa66f45e11798a1434c0adf7e3163c34c1cf606b9a2157f2055f9a973a6bad8d8d08a2f0ed49725b04b1 |
27 |
|
28 |
diff --git a/www-apps/code-server-bin/code-server-bin-4.0.1.ebuild b/www-apps/code-server-bin/code-server-bin-4.0.1.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000..b3c52ff91 |
31 |
--- /dev/null |
32 |
+++ b/www-apps/code-server-bin/code-server-bin-4.0.1.ebuild |
33 |
@@ -0,0 +1,88 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
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 |
+RDEPEND=" |
59 |
+ ${DEPEND} |
60 |
+ >=net-libs/nodejs-14.0[ssl] |
61 |
+ sys-apps/ripgrep |
62 |
+ gnome-keyring? ( |
63 |
+ app-crypt/libsecret |
64 |
+ ) |
65 |
+" |
66 |
+ |
67 |
+S="${WORKDIR}/${MY_P}-linux-${ARCH}" |
68 |
+ |
69 |
+PATCHES=( "${FILESDIR}/${PN}-node.patch" ) |
70 |
+ |
71 |
+DOCS=( "README.md" "ThirdPartyNotices.txt" ) |
72 |
+ |
73 |
+QA_PREBUILT=" |
74 |
+ /usr/lib*/code-server/lib/coder-cloud-agent |
75 |
+ /usr/lib*/code-server/vendor/modules/code-oss-dev/node_modules/* |
76 |
+ /usr/lib*/code-server/node_modules/* |
77 |
+" |
78 |
+QA_PRESTRIPPED=" |
79 |
+ /usr/lib*/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_douserunit "${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 |
+} |