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, 10 Jul 2024 06:39:39 +0000 (UTC) [thread overview]
Message-ID: <1720593493.2292bf1457c394832c7671e856e69b7219eef19b.leohdz172@gentoo> (raw)
commit: 2292bf1457c394832c7671e856e69b7219eef19b
Author: Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Wed Jul 10 06:04:22 2024 +0000
Commit: Leonardo Hernandez <leohdz172 <AT> proton <DOT> me>
CommitDate: Wed Jul 10 06:38:13 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2292bf14
www-apps/code-server-bin: add 4.90.3
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.90.3.ebuild | 101 +++++++++++++++++++++
2 files changed, 103 insertions(+)
diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest
index 1a72854a9..fa3df6468 100644
--- a/www-apps/code-server-bin/Manifest
+++ b/www-apps/code-server-bin/Manifest
@@ -2,3 +2,5 @@ DIST code-server-bin-4.18.0-amd64.tar.gz 96325604 BLAKE2B b227866908496cebb44dbe
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
+DIST code-server-bin-4.90.3-amd64.tar.gz 96315768 BLAKE2B 051739afc677d12b303102d2b057509fbebc1310f048e46cdbfce4de6a993e956e72106a75c34d1d7ec4f7abdd123bb526916ca37e0e81fead950620aed69796 SHA512 856315d9885d88868d65ea942c8f5af3587274ef598fe4f4177edc24ce6866eb7817bd80a565833dba570389136a91f887648145d93b529ff9350a7a391e9a8d
+DIST code-server-bin-4.90.3-arm64.tar.gz 96292182 BLAKE2B d805b6832c9781d843a90ce7cd04ee906a65c397d4005d4038a8ee05b63d7fd2bdecc64e1ff8e1fcb1862219398ced9f0cfdf32e335348496fc0a88bfbec726a SHA512 1722408c487db74e8832aca28dbc8cf53b555e879bb8c896861530a4263abc34375d2c2ff226726090362a60377064dcbbbdc58a1c0ce39bbb0a336dde65671a
diff --git a/www-apps/code-server-bin/code-server-bin-4.90.3.ebuild b/www-apps/code-server-bin/code-server-bin-4.90.3.ebuild
new file mode 100644
index 000000000..a545b3188
--- /dev/null
+++ b/www-apps/code-server-bin/code-server-bin-4.90.3.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2024 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 LGPL-2.1+"
+LICENSE+=" LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+RESTRICT="test"
+
+RDEPEND="
+ app-crypt/libsecret
+ >=net-libs/nodejs-20.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'"
+}
next reply other threads:[~2024-07-10 6:39 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-10 6:39 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
2023-11-29 22:18 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=1720593493.2292bf1457c394832c7671e856e69b7219eef19b.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