From: "Leonardo Hernandez" <leohdz172@outlook.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-apps/code-server-bin/
Date: Fri, 4 Mar 2022 03:50:26 +0000 (UTC) [thread overview]
Message-ID: <1646364527.4635cacd6d787bae7598c314b7b70ab882ef7840.leohdz172@gentoo> (raw)
commit: 4635cacd6d787bae7598c314b7b70ab882ef7840
Author: Leonardo Hernández Hernández <leohdz172 <AT> outlook <DOT> com>
AuthorDate: Fri Mar 4 03:27:35 2022 +0000
Commit: Leonardo Hernandez <leohdz172 <AT> outlook <DOT> com>
CommitDate: Fri Mar 4 03:28:47 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4635cacd
www-apps/code-server-bin: bump to 4.1.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> outlook.com>
www-apps/code-server-bin/Manifest | 2 +
.../code-server-bin/code-server-bin-4.1.0.ebuild | 124 +++++++++++++++++++++
2 files changed, 126 insertions(+)
diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest
index 0ac2b2974..d739adf84 100644
--- a/www-apps/code-server-bin/Manifest
+++ b/www-apps/code-server-bin/Manifest
@@ -4,3 +4,5 @@ DIST code-server-4.0.1-linux-amd64.tar.gz 189350818 BLAKE2B 8021ee303ca759c92a76
DIST code-server-4.0.1-linux-arm64.tar.gz 186429607 BLAKE2B a2384e01f4daf72112682bad3f0a926366c52796b9243e9d49e4697a6ad8d65414361147f8c65ff763cf078ecd3ad31249e447877137b53d21d367d8a51a7f19 SHA512 b02fe1f336a612cafaf43bc442ad2150ab6eb8f65df2aa66f45e11798a1434c0adf7e3163c34c1cf606b9a2157f2055f9a973a6bad8d8d08a2f0ed49725b04b1
DIST code-server-4.0.2-linux-amd64.tar.gz 193994013 BLAKE2B f1eee2e8bd583015b4a8627d050d5f65fdf298b5ae21656b038abd6d2ac323cf7360f1de1e8d532fc9460e108822627b5981fb09bf8040f432646052b7561da5 SHA512 29776ea7a730ddcc2d4fbe17f93a0e9caeae237bb6e565a52c931d52e9de36aaa5cd6f58a6201ff1f42924ade29d04cb2e9d081c4ede67192c410d51b9214fed
DIST code-server-4.0.2-linux-arm64.tar.gz 191067638 BLAKE2B 537a091608cf13a87b541e410754c2e96893a59fd8be04925f3925063ae4f71faf491c37f09216dcfd05c1eacf541294f94820ad3db3a9793f866d4f43ac047b SHA512 b29c7da686fe979ce1139f58c46ed49fe0a99e90e8109f428b6530b4fcb492c951c72b80baef115250a30ca67f02d9502be232957ce1807f9cd434f07e36a5de
+DIST code-server-4.1.0-linux-amd64.tar.gz 189936485 BLAKE2B 002f90ffd550061cb9161776559a4ca2562c682aa7737bb5213bfb657d792b8ba92f8132d33b741d53c0f6eb2988f1e5703af3380b184bc97e44d4e29053bb97 SHA512 33d77d08e7401c7d7b87da6c217e4504b813aa2a6045bff4aaacda7b1ff73cbcddeeb6e4b844d6ddfbde26cce42179098c60bec5ecc960a6c54b2ebc7a726c6a
+DIST code-server-4.1.0-linux-arm64.tar.gz 186692988 BLAKE2B 6379d9bbcea11f3c68eb281abe820c4740bdc19699292c80b7aa42a442478f5964a06a965aac0719f110b9e08431d5a9359484130203cedcc3ad3b38e3a70388 SHA512 a3750e7468037951342772d578a08defd65de1694c649161c6027980920fba9b079ecf63ac7ae05731afc209e4fa4020be857a563a4b599c22bb5d867c5d47c7
diff --git a/www-apps/code-server-bin/code-server-bin-4.1.0.ebuild b/www-apps/code-server-bin/code-server-bin-4.1.0.ebuild
new file mode 100644
index 000000000..ae11684ad
--- /dev/null
+++ b/www-apps/code-server-bin/code-server-bin-4.1.0.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2022 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 CC0-1.0 )
+ || ( MIT WTFPL )
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="gnome-keyring"
+
+RDEPEND="
+ ${DEPEND}
+ >=net-libs/nodejs-14.0[ssl]
+ sys-apps/ripgrep
+ gnome-keyring? (
+ app-crypt/libsecret
+ )
+"
+
+S="${WORKDIR}/${MY_P}-linux-${ARCH}"
+
+PATCHES=( "${FILESDIR}/${PN}-node.patch" )
+
+DOCS=( "README.md" "ThirdPartyNotices.txt" )
+
+QA_PREBUILT="
+ /opt/code-server-bin/lib/coder-cloud-agent
+ /opt/code-server-bin/node_modules/@node-rs/argon2-linux-x64-musl/argon2.linux-x64-musl.node
+ /opt/code-server-bin/node_modules/@node-rs/argon2-linux-x64-gnu/argon2.linux-x64-gnu.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/native-is-elevated/build/Release/obj.target/iselevated.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/native-is-elevated/build/Release/iselevated.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/node-pty/build/Release/pty.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/native-watchdog/build/Release/obj.target/watchdog.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/native-watchdog/build/Release/watchdog.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/linux-x64/node.napi.musl.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/linux-x64/node.napi.glibc.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/spdlog/build/Release/obj.target/spdlog.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/spdlog/build/Release/spdlog.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/vscode-nsfw/build/Release/obj.target/nsfw.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/vscode-nsfw/build/Release/nsfw.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/@vscode/sqlite3/build/Release/obj.target/sqlite.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/@vscode/sqlite3/build/Release/sqlite.node
+"
+
+QA_PRESTRIPPED="
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/linux-x64/node.napi.musl.node
+ /opt/code-server-bin/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/linux-x64/node.napi.glibc.node
+ /opt/code-server-bin/node_modules/@node-rs/argon2-linux-x64-musl/argon2.linux-x64-musl.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 ./node ./lib/node \
+ || die "Failed to remove bundled nodejs"
+
+ # remove bundled ripgrep binary
+ rm ./vendor/modules/code-oss-dev/node_modules/vscode-ripgrep/bin/rg \
+ || die "Failed to remove bundled ripgrep"
+
+ # not needed
+ rm ./code-server || die
+ rm ./postinstall.sh || die
+
+ # already in /usr/portage/licenses/MIT
+ rm ./LICENSE.txt || die
+
+ # For windows
+ rm -rf ./vendor/modules/code-oss-dev/node_modules/windows-foreground-love || die
+ rm -rf .vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/win32-x64 || die
+
+ if [[ $ELIBC != "musl" ]]; then
+ rm -rf ./node_modules/@node-rs/argon2-linux-x64-musl || die
+ rm ./vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/linux-x64/node.napi.musl.node || die
+ elif [[ $ELIBC != "glibc" ]]; then
+ rm ./vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/linux-x64/node.napi.glibc.node || die
+ fi
+
+ # We don't need electron
+ rm -rf ./vendor/modules/code-oss-dev/node_modules/electron || die
+ rm ./vendor/modules/code-oss-dev/node_modules/.bin/electron
+}
+
+src_install() {
+ einstalldocs
+
+ insinto "/opt/${PN}"
+ doins -r .
+ fperms +x "/opt/${PN}/bin/${MY_PN}"
+ dosym -r "/opt/${PN}/bin/${MY_PN}" "${EPREFIX}/usr/bin/${PN}"
+
+ dosym -r "/usr/bin/rg" \
+ "${EPREFIX}/opt/${PN}/vendor/modules/code-oss-dev/node_modules/vscode-ripgrep/bin/rg"
+
+ systemd_douserunit "${FILESDIR}/${MY_PN}.service"
+}
+
+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:[~2022-03-04 3:50 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-04 3:50 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-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-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=1646364527.4635cacd6d787bae7598c314b7b70ab882ef7840.leohdz172@gentoo \
--to=leohdz172@outlook.com \
--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