public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: www-apps/code-server-bin/
Date: Tue, 11 May 2021 07:39:49 +0000 (UTC)	[thread overview]
Message-ID: <1620684183.6f1b99c799cc35764d23996bd234feee6bb04a7c.andrewammerlaan@gentoo> (raw)

commit:     6f1b99c799cc35764d23996bd234feee6bb04a7c
Author:     Maciej Barć <xgqt <AT> riseup <DOT> net>
AuthorDate: Mon May 10 22:02:37 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon May 10 22:03:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6f1b99c7

www-apps/code-server-bin: bump to 3.10.0

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt <AT> riseup.net>

 www-apps/code-server-bin/Manifest                  |  2 +
 .../code-server-bin/code-server-bin-3.10.0.ebuild  | 91 ++++++++++++++++++++++
 2 files changed, 93 insertions(+)

diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest
index 2bd588b3e..89ee7a58d 100644
--- a/www-apps/code-server-bin/Manifest
+++ b/www-apps/code-server-bin/Manifest
@@ -1,3 +1,5 @@
+DIST code-server-3.10.0-linux-amd64.tar.gz 79827037 BLAKE2B 238980bd822322dab956ce1dca8b8d7fa91eca6db8eb9808a68db28b9e9a8caa5432582cfa765ff0ac1ce948866a7f91a45df42045a83b75c13ac793ed1a78ee SHA512 bd0410e0310a027ff1ed3f7c8b0d07a4a28baf8df924192d8a240f8011765b6a1daaae94bc7f37d1904dc9c2813d951eeb0c289aadd0192a15daa9cb6461c25d
+DIST code-server-3.10.0-linux-arm64.tar.gz 77802222 BLAKE2B f13ff2e1d83d7c7d3be0033196911aef81324aa0f450c8973919a128fafbbf9d255aba59b2bfc6432c2fa0dadb4cf179d57772f86ad2c87213d43eb60244d024 SHA512 bc149c0716dc4df560a87d149bfceb712b864bdfbfc99e43ee476a574d76d52acd02c3c87a9b09a47c73c0789c85f3794c350be4b222a930d8dc3d7eec49017e
 DIST code-server-3.9.1-linux-amd64.tar.gz 69783057 BLAKE2B 0008d5967cb9b58129e4ab21e1fa0c10f72611652f50991ff6657870a5e6c315872c05f6612d108454b5ca4dd5c9848470ff34846f06181ff1b6ac98a05496e3 SHA512 66a38c12b4a0c2494195f8e233942c49be23b3586140e901ff50cd6b507a092ca39a09b77fed3723710ea4099b6489f8d23b3a680b028e4bf920095bf314aa1d
 DIST code-server-3.9.1-linux-arm64.tar.gz 69101049 BLAKE2B 57f1b32f8b4385bb7c749d701ded90a7cb82ab1f6ceb052e589720221bd41a2620a63c9f88517de9962771c858d6aca12273c3e70fad56e3b247e2c5f6178375 SHA512 1e5629ec3f7ffe9279d89099ae5c111358e41e481eb2df659e45a7ad4b6c340ed5b59b9f818df8857cdfe2b4c2d509d193c6c5f1f15217e6b8aaa5b21a7af1f9
 DIST code-server-3.9.2-linux-amd64.tar.gz 72578049 BLAKE2B 3cfbba389c17c7e1a7978c5ae359532dd09a5b415cc302b3ff95739a31d3749e7a9c9627ceee11427db807cb3918c3016970d42084721d2867c3e5eb418ebdf8 SHA512 b6f493af264a772dd56393447b158e50578316ceb62593cb4e9838783bb0472a7933fc7c036b03c0daac1ebf1d160cf6262c41b83751fb39cf4748159c2b7c03

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
new file mode 100644
index 000000000..553092c68
--- /dev/null
+++ b/www-apps/code-server-bin/code-server-bin-3.10.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="${PN/-bin/}"
+MY_P="${MY_PN}-${PV}"
+BASE_URI="https://github.com/cdr/${MY_PN}/releases/download/v${PV}/${MY_P}-linux"
+
+inherit systemd
+
+DESCRIPTION="VS Code in the browser (binary version with unbundled node and ripgrep)"
+HOMEPAGE="https://coder.com/"
+SRC_URI="
+	amd64? ( ${BASE_URI}-amd64.tar.gz )
+	arm64? ( ${BASE_URI}-arm64.tar.gz )
+"
+
+RESTRICT="test"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm64"
+IUSE="gnome-keyring"
+
+# In case we ever make a non-"-binary" pkg
+DEPEND="
+	!www-apps/code-server
+"
+RDEPEND="
+	${DEPEND}
+	>=net-libs/nodejs-12.16.1:0/12[ssl]
+	sys-apps/ripgrep
+	gnome-keyring? (
+		app-crypt/libsecret
+	)
+"
+
+S="${WORKDIR}/${MY_P}-linux-${ARCH}"
+
+PATCHES=( "${FILESDIR}/${PN}-node.patch" )
+
+DOCS=( "README.md" "ThirdPartyNotices.txt" )
+
+QA_PREBUILT="
+	/usr/lib/code-server/lib/coder-cloud-agent
+	/usr/lib/code-server/lib/vscode/node_modules/*
+"
+QA_PRESTRIPPED="
+	/usr/lib/code-server/lib/coder-cloud-agent
+"
+
+src_prepare() {
+	default
+
+	# We remove as much precompiled code as we can,
+	# node modules not written in JS cannot be removed
+	# thus "-bin".
+
+	# use system node
+	rm ./node ./lib/node \
+		|| die "failed to remove bundled nodejs"
+
+	# remove bundled ripgrep binary
+	rm ./lib/vscode/node_modules/vscode-ripgrep/bin/rg \
+		|| die "failed to remove bundled ripgrep"
+
+	# not needed
+	rm ./code-server || die
+	rm ./postinstall.sh || die
+
+	# already in /usr/portage/licenses/MIT
+	rm ./LICENSE.txt || die
+}
+
+src_install() {
+	einstalldocs
+
+	insinto "/usr/lib/${MY_PN}"
+	doins -r .
+	fperms +x "/usr/lib/${MY_PN}/bin/${MY_PN}"
+	dosym "../../usr/lib/${MY_PN}/bin/${MY_PN}" "${EPREFIX}/usr/bin/${MY_PN}"
+
+	dosym "../../../../../../../../usr/bin/rg" "${EPREFIX}/usr/lib/${MY_PN}/lib/vscode/node_modules/vscode-ripgrep/bin/rg"
+
+	systemd_dounit "${FILESDIR}/${MY_PN}.service"
+}
+
+pkg_postinst() {
+	elog "When using code-server systemd service run it as a user"
+	elog "For example: 'systemctl --user enable --now code-server'"
+}


             reply	other threads:[~2021-05-11 20:35 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-11  7:39 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-10 23:52 [gentoo-commits] repo/proj/guru:master commit in: www-apps/code-server-bin/ Haelwenn Monnier
2024-07-10 23:52 Haelwenn Monnier
2024-07-10 23:52 Haelwenn Monnier
2023-11-30 10:44 Andrew Ammerlaan
2023-11-01 23:27 Haelwenn Monnier
2023-10-02 12:24 David Roman
2023-09-25 10:00 Florian Schmaus
2023-08-01 14:17 David Roman
2023-08-01 14:17 David Roman
2023-07-31 14:53 David Roman
2023-07-22 13:07 David Roman
2023-07-22 13:07 David Roman
2023-06-27  8:24 Florian Schmaus
2023-06-26 11:24 Andrew Ammerlaan
2023-06-26 11:24 Andrew Ammerlaan
2023-05-21  7:23 Viorel Munteanu
2023-05-21  7:23 Viorel Munteanu
2023-04-23  8:40 Florian Schmaus
2023-04-23  8:40 Florian Schmaus
2022-12-31 10:37 Florian Schmaus
2022-10-04  2:54 Haelwenn Monnier
2022-09-26  9:48 Andrew Ammerlaan
2022-09-09 20:02 Ronny Gutbrod
2022-04-15 18:42 Andrew Ammerlaan
2022-04-15 18:42 Andrew Ammerlaan
2022-04-15 18:42 Andrew Ammerlaan
2022-04-15 18:42 Andrew Ammerlaan
2022-03-07 15:15 Ronny Gutbrod
2022-03-07 15:15 Ronny Gutbrod
2022-02-13 20:24 Arthur Zamarin
2022-02-01 10:38 Florian Schmaus
2022-02-01 10:38 Florian Schmaus
2021-09-25 17:14 Arthur Zamarin
2021-09-25 17:14 Arthur Zamarin
2021-09-25 17:14 Arthur Zamarin
2021-05-22 10:05 Andrew Ammerlaan
2021-05-11  7:39 Andrew Ammerlaan
2021-04-09 12:53 Andrew Ammerlaan
2021-04-09 12:53 Andrew Ammerlaan
2021-03-28 11:43 Andrew Ammerlaan
2021-03-26 18:11 Andrew Ammerlaan
2021-03-26 18:11 Andrew Ammerlaan
2021-03-26 18:11 Andrew Ammerlaan
2021-03-11 13:16 Andrew Ammerlaan
2021-02-13 11:42 Andrew Ammerlaan
2021-02-13 11:42 Andrew Ammerlaan
2021-02-07  8:24 Andrew Ammerlaan
2021-02-07  8:24 Andrew Ammerlaan
2020-10-25 12:32 Andrew Ammerlaan
2020-08-04  8:42 Andrew Ammerlaan
2020-07-28  9:12 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1620684183.6f1b99c799cc35764d23996bd234feee6bb04a7c.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox