From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8133D158099 for ; Thu, 30 Nov 2023 10:44:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E6A342BC044; Thu, 30 Nov 2023 10:44:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A16572BC043 for ; Thu, 30 Nov 2023 10:44:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 758AA335D3C for ; Thu, 30 Nov 2023 10:44:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 147271448 for ; Thu, 30 Nov 2023 10:44:48 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1701296064.cc6f8e9fea75a01b07f4b724d543a132161132f9.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: www-apps/code-server-bin/ X-VCS-Repository: repo/proj/guru X-VCS-Files: www-apps/code-server-bin/Manifest www-apps/code-server-bin/code-server-bin-4.19.1.ebuild X-VCS-Directories: www-apps/code-server-bin/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: cc6f8e9fea75a01b07f4b724d543a132161132f9 X-VCS-Branch: master Date: Thu, 30 Nov 2023 10:44:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eb16491d-4b0e-49d9-b146-cc872e4a7716 X-Archives-Hash: 9858f06e1c004ad6a51e00c41191775f commit: cc6f8e9fea75a01b07f4b724d543a132161132f9 Author: Leonardo Hernández Hernández proton me> AuthorDate: Wed Nov 29 22:14:24 2023 +0000 Commit: Andrew Ammerlaan gentoo org> 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 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'" +}