public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
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: Mon, 24 Jan 2022 20:08:34 +0000 (UTC)	[thread overview]
Message-ID: <1643054865.e6565986e6a3d1bf7a9eae43d9b809bd0744caaf.leohdz172@gentoo> (raw)

commit:     e6565986e6a3d1bf7a9eae43d9b809bd0744caaf
Author:     Leonardo Hernandez Hernandez <leohdz172 <AT> outlook <DOT> com>
AuthorDate: Mon Jan 24 20:07:45 2022 +0000
Commit:     Leonardo Hernandez <leohdz172 <AT> outlook <DOT> com>
CommitDate: Mon Jan 24 20:07:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e6565986

www-apps/code-server-bin: bump to 4.0.1

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook.com>

 www-apps/code-server-bin/Manifest                  |  2 +
 .../code-server-bin/code-server-bin-4.0.1.ebuild   | 88 ++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest
index 40ea4ae7e..bb9563565 100644
--- a/www-apps/code-server-bin/Manifest
+++ b/www-apps/code-server-bin/Manifest
@@ -2,3 +2,5 @@ DIST code-server-3.10.0-linux-amd64.tar.gz 79827037 BLAKE2B 238980bd822322dab956
 DIST code-server-3.10.0-linux-arm64.tar.gz 77802222 BLAKE2B f13ff2e1d83d7c7d3be0033196911aef81324aa0f450c8973919a128fafbbf9d255aba59b2bfc6432c2fa0dadb4cf179d57772f86ad2c87213d43eb60244d024 SHA512 bc149c0716dc4df560a87d149bfceb712b864bdfbfc99e43ee476a574d76d52acd02c3c87a9b09a47c73c0789c85f3794c350be4b222a930d8dc3d7eec49017e
 DIST code-server-3.12.0-linux-amd64.tar.gz 98959884 BLAKE2B 7be2195b1d2e325244620bf59608fb21390846657249e182b43224ede950aafbd837b09100af67925a92054923239e079063e6dff23cc6c9e4c0dbe010684069 SHA512 f14fce86d4a837cdfe867beb7256d7d57035edac258c7ac5be8de8fb778771ad0ff5549920a41ef80504e738727c0159c1dbff70c7b48cfe37415dd4c9ad40c6
 DIST code-server-3.12.0-linux-arm64.tar.gz 97388956 BLAKE2B b73d41ce320e3af7e980972a64d7d47d11c9bf1d1d69ca7c7cb16e1963d5b1fada4558a8630c317cf82093f1aa4126c33246a3aec7581f2723d1497cedb504c8 SHA512 f23def255bc6bfcf0e796d7cabb104bb1c7a8576783150ff8b8f040a8792d3df8f97f7c5a8e7963eab2ff7f6f4a203543d4b127f27a7b2885ceb52ae62c8b5c6
+DIST code-server-4.0.1-linux-amd64.tar.gz 189350818 BLAKE2B 8021ee303ca759c92a764508b611365200f9c3fb3e499ad2c438118d5ed204bbd652e2b47816d343171b628f3d3b354f996986102f1cdda6146f8103385567bd SHA512 80b760188ff5692ea6283234a5e7d7895328bdd9f7a77e638b5507beff7aebc439edc5585a232de38811bc9f6dbb5e0f9a2d67d387f2f84e6b6dfb2b70739a89
+DIST code-server-4.0.1-linux-arm64.tar.gz 186429607 BLAKE2B a2384e01f4daf72112682bad3f0a926366c52796b9243e9d49e4697a6ad8d65414361147f8c65ff763cf078ecd3ad31249e447877137b53d21d367d8a51a7f19 SHA512 b02fe1f336a612cafaf43bc442ad2150ab6eb8f65df2aa66f45e11798a1434c0adf7e3163c34c1cf606b9a2157f2055f9a973a6bad8d8d08a2f0ed49725b04b1

diff --git a/www-apps/code-server-bin/code-server-bin-4.0.1.ebuild b/www-apps/code-server-bin/code-server-bin-4.0.1.ebuild
new file mode 100644
index 000000000..b3c52ff91
--- /dev/null
+++ b/www-apps/code-server-bin/code-server-bin-4.0.1.ebuild
@@ -0,0 +1,88 @@
+# 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/cdr/${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"
+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="
+	/usr/lib*/code-server/lib/coder-cloud-agent
+	/usr/lib*/code-server/vendor/modules/code-oss-dev/node_modules/*
+	/usr/lib*/code-server/node_modules/*
+"
+QA_PRESTRIPPED="
+	/usr/lib*/code-server/lib/coder-cloud-agent
+"
+
+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
+}
+
+src_install() {
+	einstalldocs
+
+	insinto "/usr/$(get_libdir)/${MY_PN}"
+	doins -r .
+	fperms +x "/usr/$(get_libdir)/${MY_PN}/bin/${MY_PN}"
+	dosym -r "/usr/$(get_libdir)/${MY_PN}/bin/${MY_PN}" "${EPREFIX}/usr/bin/${MY_PN}"
+
+	dosym -r "/usr/bin/rg" "${EPREFIX}/usr/$(get_libdir)/${MY_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'"
+}


             reply	other threads:[~2022-01-24 20:08 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 20:08 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-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
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=1643054865.e6565986e6a3d1bf7a9eae43d9b809bd0744caaf.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