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 36E96158009 for ; Tue, 27 Jun 2023 08:24:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9481E084F; Tue, 27 Jun 2023 08:24:23 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D225AE084F for ; Tue, 27 Jun 2023 08:24:23 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DF4CA341002 for ; Tue, 27 Jun 2023 08:24:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D89EA84 for ; Tue, 27 Jun 2023 08:24:21 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1687841312.84991cd4516027318c95bccc2d45d6ab4653687b.flow@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.14.1.ebuild X-VCS-Directories: www-apps/code-server-bin/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 84991cd4516027318c95bccc2d45d6ab4653687b X-VCS-Branch: master Date: Tue, 27 Jun 2023 08:24:21 +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: 4ceb2139-935e-4c9d-b5ff-93dae9467b9b X-Archives-Hash: 6cd30cee09a0b029178b86a5e4de12ec commit: 84991cd4516027318c95bccc2d45d6ab4653687b Author: Leonardo Hernández Hernández proton me> AuthorDate: Tue Jun 27 04:47:39 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Tue Jun 27 04:48:32 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=84991cd4 www-apps/code-server-bin: add 4.14.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.14.1.ebuild | 105 +++++++++++++++++++++ 2 files changed, 107 insertions(+) diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest index 27cd497d9..c666fe872 100644 --- a/www-apps/code-server-bin/Manifest +++ b/www-apps/code-server-bin/Manifest @@ -4,3 +4,5 @@ DIST code-server-4.13.0-linux-amd64.tar.gz 97870904 BLAKE2B 320b845f1cca424c5202 DIST code-server-4.13.0-linux-arm64.tar.gz 96675774 BLAKE2B 4c117fa6e0c06b5203863ae1a35d5a57e36c0bc339ddf009ff106efbf3a0207ea9deb9efbf868a14f9c0bf64e3034c626d99647073c90fa9c4dd59b938b2e0ae SHA512 04478cc1280326fede817549e21a086f1f0281a79b52059a1523246f42d024463a7aac61f443b6441e10f202558889ad9cb63c962f4a075cd78c14b00318d5b9 DIST code-server-4.14.0-linux-amd64.tar.gz 98653504 BLAKE2B 342363a9c00894b65e716352c14b87230704e47ddb068079b25957577a90c1dddf77cfbdc715261d6eb849a5f2569401cb062c0fe6f804c8e60169855b5b2212 SHA512 7772397d5abc0a290a15899346a5dcbe8eec5bc44948a5845ed23758ecec1fd0f21e8ab0ac413053b1e36ccc5c69e877ed01fce1d0f09ebf12aa3e96b0483ee4 DIST code-server-4.14.0-linux-arm64.tar.gz 97470074 BLAKE2B 414da8e74184672201772470d940a4a323b5f0757962b7d753556420693f46c334235c0e5d5f12ab5372ca28b44bea2f630185deb8efd7a81fe5c50aed1cbd27 SHA512 ac303aa02719a897941f2d117168395d590f2efa366cc2b8a90699ef265032183f3a8c221451cb0f3228ecc13767fc896a903adfdac7e636782f262b44b69f0c +DIST code-server-4.14.1-linux-amd64.tar.gz 98672270 BLAKE2B 9b7389b3578209391ac0c4a622e4e9a8bdb2bfcbc3f9eda5b26264b122273777819d097f6fa03114429a7bdc4ab7ac943bb104683b5867e3df248171551548d9 SHA512 1d70f5dbc4f4605d5fd254df117d34c8b05fc33085c27c909f8ec73d5ef9a3d71bb11617b38a6fa3dc32138c6df92db0555c14ede814b6868cb43acec182c70a +DIST code-server-4.14.1-linux-arm64.tar.gz 97486113 BLAKE2B d918d2a7f5f0be73f26408d9bb0f4a499d98044da58b19dce1146508c9a68cdf8abfb577789a70fc15658c2265b1fc548f9ed96fbf69859a5993d0218d3cca0f SHA512 70db38d528ea24446859eab61c9a502e901dc325f15a50bc5788acf42bd49e29750350748a1534dbaaceb59fd1654d43e2092a481fae0768916031d07ad1e501 diff --git a/www-apps/code-server-bin/code-server-bin-4.14.1.ebuild b/www-apps/code-server-bin/code-server-bin-4.14.1.ebuild new file mode 100644 index 000000000..35845168a --- /dev/null +++ b/www-apps/code-server-bin/code-server-bin-4.14.1.ebuild @@ -0,0 +1,105 @@ +# 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 ) + arm64? ( ${BASE_URI}-arm64.tar.gz ) +" +RESTRICT="test" +LICENSE="MIT 0BSD ISC PYTHON BSD-2 BSD Apache-2.0 Unlicense LGPL-2.1+ + || ( BSD-2 MIT Apache-2.0 ) + || ( MIT WTFPL ) + || ( BSD GPL-2 ) +" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + ${DEPEND} + >=net-libs/nodejs-16.0.0[ssl] + sys-apps/ripgrep + app-crypt/libsecret +" + +S="${WORKDIR}/${MY_P}-linux-${ARCH}" + +PATCHES=( "${FILESDIR}/${PN}-node.patch" ) + +DOCS=( "LICENSE" "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}" "${EPREFIX}/usr/bin/${PN}" + + dosym -r "/usr/bin/rg" \ + "${EPREFIX}/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'" +}