public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Leonardo Hernandez" <leohdz172@proton.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-apps/code-server-bin/
Date: Wed, 29 Nov 2023 22:18:09 +0000 (UTC)	[thread overview]
Message-ID: <1701296064.cc6f8e9fea75a01b07f4b724d543a132161132f9.leohdz172@gentoo> (raw)

commit:     cc6f8e9fea75a01b07f4b724d543a132161132f9
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Wed Nov 29 22:14:24 2023 +0000
Commit:     Leonardo Hernandez <leohdz172 <AT> proton <DOT> me>
CommitDate: Wed Nov 29 22:14:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cc6f8e9f

www-apps/code-server-bin: add 4.19.1

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>

 www-apps/code-server-bin/Manifest                  |   2 +
 .../code-server-bin/code-server-bin-4.19.1.ebuild  | 101 +++++++++++++++++++++
 2 files changed, 103 insertions(+)

diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest
index de9403ff91..b905918d43 100644
--- a/www-apps/code-server-bin/Manifest
+++ b/www-apps/code-server-bin/Manifest
@@ -12,3 +12,5 @@ DIST code-server-bin-4.17.1-amd64.tar.gz 96252118 BLAKE2B 6509997725e316454538ba
 DIST code-server-bin-4.17.1-arm64.tar.gz 96460530 BLAKE2B a7150628b67183cb0e8350a4718e99c0e42c18217221846ed18c50545cdac4a5e94cdeb45580de35cbaf35d6abae5d981e3ba96006fc133861084171bf1db04a SHA512 a4181d1560e0d3d4ef3af5d7cf186d312b807cf81c708816132891c4453d0884ebbd9130363ec688168e4b226d061c0c3af4eab6b78cb067b2246e6a99aab8eb
 DIST code-server-bin-4.18.0-amd64.tar.gz 96325604 BLAKE2B b227866908496cebb44dbe779433751e406b5e6fcd787eb4e04618bccfef512452f0bfc9adbb431eb7834b6ce88f7383d038e8810ef11f5ec37dca7055a0677d SHA512 ebd3538defcebb166627a55993ddff1825400fb7172f46f80afbeeb0333912f5cf2919d9b36305d761686d49c59333c90e3160c1365a5a57c2b223ceb1b2e341
 DIST code-server-bin-4.18.0-arm64.tar.gz 96445800 BLAKE2B 4504f71005f090a5317990e5559f7806b5d8135c511c25d037f58d5fba154c8463c69bf174bb975b307907983f3b042350b035efe5962518124709e159e35da5 SHA512 357de541a23b2cec3a2ec66b6093e55f1cc7793544f84609b60f83395a78497a7b1471a566418c57f2411b3e895a6ffb859649a65d046784824be1fccac2520b
+DIST code-server-bin-4.19.1-amd64.tar.gz 96311589 BLAKE2B 291b186bf926ea6ecc4d056e73ff6d29eba70f2b94fe47de547c81ed695f5725a12165588f38ce87c713a55d1270c4636dc8069262d7b2c9e607feadb2aa7153 SHA512 c5490953c2918927b124d51c74f10ab25a8e2fefea4ed96d403ec6590a1f516721e98a4c435632652f42fcb9cef68ce4590f6eb9ca2de7eac92d7e08e2f1c1d5
+DIST code-server-bin-4.19.1-arm64.tar.gz 96427997 BLAKE2B 46a680f7a3aba81c75eab218a025fe2c8848420f9500224c668b5b1d1cbc571819631f2a01ebc28b3004c6e28757e0122689ef67b1162cc2db8e5369423cadbb SHA512 1005dbb02b56e0b6198f27a601e44af4218b76a26c0416f493c83b1f7442bf383c454754a2fb26724eba66600a047a2276a1cb4f1a31c9ddebec86d56788ab74

diff --git a/www-apps/code-server-bin/code-server-bin-4.19.1.ebuild b/www-apps/code-server-bin/code-server-bin-4.19.1.ebuild
new file mode 100644
index 0000000000..56d038b6d0
--- /dev/null
+++ b/www-apps/code-server-bin/code-server-bin-4.19.1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="${PN/-bin/}"
+MY_P="${MY_PN}-${PV}"
+BASE_URI="https://github.com/coder/${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 -> ${P}-amd64.tar.gz )
+	arm64? ( ${BASE_URI}-arm64.tar.gz -> ${P}-arm64.tar.gz )
+"
+S="${WORKDIR}/${MY_P}-linux-${ARCH}"
+
+LICENSE="MIT ISC BSD Apache-2.0 BSD-2 PYTHON 0BSD"
+LICENSE+=" LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+RESTRICT="test"
+
+RDEPEND="
+	app-crypt/libsecret
+	>=net-libs/nodejs-18.0.0[ssl]
+	sys-apps/ripgrep
+	virtual/krb5
+"
+
+PATCHES=( "${FILESDIR}/${PN}-node.patch" )
+
+DOCS=( README.md ThirdPartyNotices.txt )
+
+QA_PREBUILT="*"
+
+# Relative
+VSCODE_MODULES="lib/vscode/node_modules"
+QA_PRESTRIPPED="
+	opt/${PN}/node_modules/@node-rs/argon2-linux-x64-musl/argon2.linux-x64-musl.node
+	opt/${PN}/${VSCODE_MODULES}/@parcel/watcher/prebuilds/linux-x64/node.napi.musl.node
+	opt/${PN}/${VSCODE_MODULES}/@parcel/watcher/prebuilds/linux-x64/node.napi.glibc.node
+"
+
+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 ./lib/node || die "Failed to remove bundled nodejs"
+
+	# remove bundled ripgrep binary
+	rm ./"${VSCODE_MODULES}"/@vscode/ripgrep/bin/rg \
+		|| die "Failed to remove bundled ripgrep"
+
+	# Only required at build time
+	find "${S}" -type l -name python3 -delete || die
+
+	# not needed
+	rm ./postinstall.sh || die
+
+	# For windows
+	rm -r ./"${VSCODE_MODULES}"/@parcel/watcher/prebuilds/win32-x64 || die
+
+	if [[ $ELIBC != "musl" ]]; then
+		rm ./"${VSCODE_MODULES}"/@parcel/watcher/prebuilds/linux-x64/node.napi.musl.node || die
+	elif [[ $ELIBC != "glibc" ]]; then
+		rm ./"${VSCODE_MODULES}"/@parcel/watcher/prebuilds/linux-x64/node.napi.glibc.node || die
+		rm ./"${VSCODE_MODULES}"/@parcel/watcher/prebuilds/darwin-x64/node.napi.glibc.node || die
+		rm ./"${VSCODE_MODULES}"/@parcel/watcher/prebuilds/darwin-arm64/node.napi.glibc.node || die
+	fi
+
+	rm -r ./lib/vscode/extensions/node_modules/.bin || die
+}
+
+src_install() {
+	einstalldocs
+
+	insinto "/opt/${PN}"
+	doins -r .
+	fperms +x "/opt/${PN}/bin/${MY_PN}"
+	dosym -r "/opt/${PN}/bin/${MY_PN}" "/opt/${PN}/bin/${PN}"
+	dosym -r "/opt/${PN}/bin/${PN}" "/usr/bin/${PN}"
+
+	dosym -r "/usr/bin/rg" \
+		"/opt/${PN}/${VSCODE_MODULES}/@vscode/ripgrep/bin/rg"
+
+	systemd_douserunit "${FILESDIR}/${PN}.service"
+	newinitd "${FILESDIR}/${PN}.rc" "${PN}"
+	newconfd "${FILESDIR}/${PN}.conf" "${PN}"
+}
+
+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:[~2023-11-29 22:18 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29 22:18 Leonardo Hernandez [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-10  6:39 [gentoo-commits] repo/proj/guru:dev commit in: www-apps/code-server-bin/ Leonardo Hernandez
2024-07-10  6:39 Leonardo Hernandez
2024-07-10  6:39 Leonardo Hernandez
2023-11-01 19:20 Leonardo Hernandez
2023-10-02  5:24 Leonardo Hernandez
2023-09-24 19:08 Leonardo Hernandez
2023-07-31 20:14 Leonardo Hernandez
2023-07-31 20:14 Leonardo Hernandez
2023-07-30 20:17 Leonardo Hernandez
2023-07-22  1:43 Leonardo Hernandez
2023-07-22  1:43 Leonardo Hernandez
2023-06-27  4:51 Leonardo Hernandez
2023-06-22  5:12 Leonardo Hernandez
2023-06-22  5:12 Leonardo Hernandez
2023-05-19 21:42 Leonardo Hernandez
2023-05-19 21:42 Leonardo Hernandez
2023-04-21 22:12 Leonardo Hernandez
2023-04-21 22:12 Leonardo Hernandez
2023-01-18  5:48 Leonardo Hernandez
2023-01-12 20:58 Leonardo Hernandez
2023-01-12 20:58 Leonardo Hernandez
2022-12-30 21:27 Leonardo Hernandez
2022-12-02 18:16 Leonardo Hernandez
2022-12-02 18:16 Leonardo Hernandez
2022-10-01 21:29 Leonardo Hernandez
2022-09-22  5:40 Leonardo Hernandez
2022-09-09  2:57 Leonardo Hernandez
2022-04-15 15:02 Leonardo Hernandez
2022-04-14 23:54 Leonardo Hernandez
2022-04-14 23:54 Leonardo Hernandez
2022-04-14 23:54 Leonardo Hernandez
2022-03-04  3:50 Leonardo Hernandez
2022-03-04  3:50 Leonardo Hernandez
2022-02-12  2:31 Leonardo Hernandez
2022-01-28 21:55 Leonardo Hernandez
2022-01-28 21:55 Leonardo Hernandez
2022-01-24 20:08 Leonardo Hernandez
2021-09-26 15:55 Leonardo Hernandez
2021-09-25  4:55 Leonardo Hernandez
2021-09-25  4:55 Leonardo Hernandez
2021-09-25  4:55 Leonardo Hernandez
2021-05-21 18:18 Maciej Barć
2021-05-10 22:03 Maciej Barć
2021-05-10 22:03 Maciej Barć
2021-04-08 21:50 Maciej Barć
2021-04-08 21:37 Maciej Barć
2021-03-28 11:43 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-03-28 11:14 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-03-26  7:47 Maciej Barć
2021-03-25 23:14 Maciej Barć
2021-03-25 23:13 Maciej Barć
2021-03-08 18:32 Maciej Barć
2021-02-13  2:08 Maciej Barć
2021-02-13  2:07 Maciej Barć
2021-02-05 23:59 Maciej Barć
2021-02-05 23:59 Maciej Barć
2020-12-27 16:07 Maciej Barć
2020-10-24 10:36 Maciej Barć
2020-08-03 22:42 Maciej Barć
2020-07-26 21:53 Maciej Barć

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=1701296064.cc6f8e9fea75a01b07f4b724d543a132161132f9.leohdz172@gentoo \
    --to=leohdz172@proton.me \
    --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