Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: www-apps/code-server-bin/
Date: Tue, 01 Feb 2022 10:39:00
Message-Id: 1643405739.fa4ea679330874c2291b87c6ce17a08d10f93169.flow@gentoo
1 commit: fa4ea679330874c2291b87c6ce17a08d10f93169
2 Author: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook <DOT> com>
3 AuthorDate: Fri Jan 28 21:34:36 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 21:35:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fa4ea679
7
8 www-apps/code-server-bin: drop 3.10.0
9
10 Signed-off-by: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook.com>
11
12 www-apps/code-server-bin/Manifest | 2 -
13 .../code-server-bin/code-server-bin-3.10.0.ebuild | 91 ----------------------
14 2 files changed, 93 deletions(-)
15
16 diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest
17 index bb9563565..34b735ea0 100644
18 --- a/www-apps/code-server-bin/Manifest
19 +++ b/www-apps/code-server-bin/Manifest
20 @@ -1,5 +1,3 @@
21 -DIST code-server-3.10.0-linux-amd64.tar.gz 79827037 BLAKE2B 238980bd822322dab956ce1dca8b8d7fa91eca6db8eb9808a68db28b9e9a8caa5432582cfa765ff0ac1ce948866a7f91a45df42045a83b75c13ac793ed1a78ee SHA512 bd0410e0310a027ff1ed3f7c8b0d07a4a28baf8df924192d8a240f8011765b6a1daaae94bc7f37d1904dc9c2813d951eeb0c289aadd0192a15daa9cb6461c25d
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
27 diff --git a/www-apps/code-server-bin/code-server-bin-3.10.0.ebuild b/www-apps/code-server-bin/code-server-bin-3.10.0.ebuild
28 deleted file mode 100644
29 index 553092c68..000000000
30 --- a/www-apps/code-server-bin/code-server-bin-3.10.0.ebuild
31 +++ /dev/null
32 @@ -1,91 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -MY_PN="${PN/-bin/}"
39 -MY_P="${MY_PN}-${PV}"
40 -BASE_URI="https://github.com/cdr/${MY_PN}/releases/download/v${PV}/${MY_P}-linux"
41 -
42 -inherit systemd
43 -
44 -DESCRIPTION="VS Code in the browser (binary version with unbundled node and ripgrep)"
45 -HOMEPAGE="https://coder.com/"
46 -SRC_URI="
47 - amd64? ( ${BASE_URI}-amd64.tar.gz )
48 - arm64? ( ${BASE_URI}-arm64.tar.gz )
49 -"
50 -
51 -RESTRICT="test"
52 -LICENSE="MIT"
53 -SLOT="0"
54 -KEYWORDS="-* ~amd64 ~arm64"
55 -IUSE="gnome-keyring"
56 -
57 -# In case we ever make a non-"-binary" pkg
58 -DEPEND="
59 - !www-apps/code-server
60 -"
61 -RDEPEND="
62 - ${DEPEND}
63 - >=net-libs/nodejs-12.16.1:0/12[ssl]
64 - sys-apps/ripgrep
65 - gnome-keyring? (
66 - app-crypt/libsecret
67 - )
68 -"
69 -
70 -S="${WORKDIR}/${MY_P}-linux-${ARCH}"
71 -
72 -PATCHES=( "${FILESDIR}/${PN}-node.patch" )
73 -
74 -DOCS=( "README.md" "ThirdPartyNotices.txt" )
75 -
76 -QA_PREBUILT="
77 - /usr/lib/code-server/lib/coder-cloud-agent
78 - /usr/lib/code-server/lib/vscode/node_modules/*
79 -"
80 -QA_PRESTRIPPED="
81 - /usr/lib/code-server/lib/coder-cloud-agent
82 -"
83 -
84 -src_prepare() {
85 - default
86 -
87 - # We remove as much precompiled code as we can,
88 - # node modules not written in JS cannot be removed
89 - # thus "-bin".
90 -
91 - # use system node
92 - rm ./node ./lib/node \
93 - || die "failed to remove bundled nodejs"
94 -
95 - # remove bundled ripgrep binary
96 - rm ./lib/vscode/node_modules/vscode-ripgrep/bin/rg \
97 - || die "failed to remove bundled ripgrep"
98 -
99 - # not needed
100 - rm ./code-server || die
101 - rm ./postinstall.sh || die
102 -
103 - # already in /usr/portage/licenses/MIT
104 - rm ./LICENSE.txt || die
105 -}
106 -
107 -src_install() {
108 - einstalldocs
109 -
110 - insinto "/usr/lib/${MY_PN}"
111 - doins -r .
112 - fperms +x "/usr/lib/${MY_PN}/bin/${MY_PN}"
113 - dosym "../../usr/lib/${MY_PN}/bin/${MY_PN}" "${EPREFIX}/usr/bin/${MY_PN}"
114 -
115 - dosym "../../../../../../../../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 -}