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: Sat, 22 Jul 2023 01:43:19 +0000 (UTC) [thread overview]
Message-ID: <1689990120.3186b48ffc09274b77d7353e043e479639b003d2.leohdz172@gentoo> (raw)
commit: 3186b48ffc09274b77d7353e043e479639b003d2
Author: Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Sat Jul 22 01:41:44 2023 +0000
Commit: Leonardo Hernandez <leohdz172 <AT> proton <DOT> me>
CommitDate: Sat Jul 22 01:42:00 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3186b48f
www-apps/code-server-bin: add 4.15.0
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.15.0.ebuild | 105 +++++++++++++++++++++
2 files changed, 107 insertions(+)
diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest
index 22962e599..addd04f0d 100644
--- a/www-apps/code-server-bin/Manifest
+++ b/www-apps/code-server-bin/Manifest
@@ -2,3 +2,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.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
+DIST code-server-4.15.0-linux-amd64.tar.gz 99499811 BLAKE2B b14a712624d312190be8320103f156fdefb99ab0990e11a555e3d2eb647bd28b7296e55ce9080d4b642ae1eda3780db6e6ab24310635ec1b714e7df7749250f9 SHA512 5c825ef33458bc7d8cb53657d7160dd01afe6fda4ce9f5dadcb9e977ab921dd092320c3e8bb1120543782a1591745dc46e712e87964f1abcc5fcc554566f9193
+DIST code-server-4.15.0-linux-arm64.tar.gz 98256392 BLAKE2B 0a9391ab69139e8674fe0f408bc98946e50114239d08bcb152f617fba2bbf42601432c05861e19fff1500574f8d54df4b1d768898c381fe31d518f0d2d8886f5 SHA512 95f0a1ac33ef0280f3195fbf0563f8e5f3d3fce18991758edf095dec52cd501769951b4905a83fcb100b0c5aec8db29feea6cb992e945b4f4447e56be26df2db
diff --git a/www-apps/code-server-bin/code-server-bin-4.15.0.ebuild b/www-apps/code-server-bin/code-server-bin-4.15.0.ebuild
new file mode 100644
index 000000000..35845168a
--- /dev/null
+++ b/www-apps/code-server-bin/code-server-bin-4.15.0.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'"
+}
next reply other threads:[~2023-07-22 1:43 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-22 1:43 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-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-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=1689990120.3186b48ffc09274b77d7353e043e479639b003d2.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