mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
www-apps/code-server-bin: drop old 3.9.1
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
DIST code-server-3.10.0-linux-amd64.tar.gz 79827037 BLAKE2B 238980bd822322dab956ce1dca8b8d7fa91eca6db8eb9808a68db28b9e9a8caa5432582cfa765ff0ac1ce948866a7f91a45df42045a83b75c13ac793ed1a78ee SHA512 bd0410e0310a027ff1ed3f7c8b0d07a4a28baf8df924192d8a240f8011765b6a1daaae94bc7f37d1904dc9c2813d951eeb0c289aadd0192a15daa9cb6461c25d
|
||||
DIST code-server-3.10.0-linux-arm64.tar.gz 77802222 BLAKE2B f13ff2e1d83d7c7d3be0033196911aef81324aa0f450c8973919a128fafbbf9d255aba59b2bfc6432c2fa0dadb4cf179d57772f86ad2c87213d43eb60244d024 SHA512 bc149c0716dc4df560a87d149bfceb712b864bdfbfc99e43ee476a574d76d52acd02c3c87a9b09a47c73c0789c85f3794c350be4b222a930d8dc3d7eec49017e
|
||||
DIST code-server-3.9.1-linux-amd64.tar.gz 69783057 BLAKE2B 0008d5967cb9b58129e4ab21e1fa0c10f72611652f50991ff6657870a5e6c315872c05f6612d108454b5ca4dd5c9848470ff34846f06181ff1b6ac98a05496e3 SHA512 66a38c12b4a0c2494195f8e233942c49be23b3586140e901ff50cd6b507a092ca39a09b77fed3723710ea4099b6489f8d23b3a680b028e4bf920095bf314aa1d
|
||||
DIST code-server-3.9.1-linux-arm64.tar.gz 69101049 BLAKE2B 57f1b32f8b4385bb7c749d701ded90a7cb82ab1f6ceb052e589720221bd41a2620a63c9f88517de9962771c858d6aca12273c3e70fad56e3b247e2c5f6178375 SHA512 1e5629ec3f7ffe9279d89099ae5c111358e41e481eb2df659e45a7ad4b6c340ed5b59b9f818df8857cdfe2b4c2d509d193c6c5f1f15217e6b8aaa5b21a7af1f9
|
||||
DIST code-server-3.9.2-linux-amd64.tar.gz 72578049 BLAKE2B 3cfbba389c17c7e1a7978c5ae359532dd09a5b415cc302b3ff95739a31d3749e7a9c9627ceee11427db807cb3918c3016970d42084721d2867c3e5eb418ebdf8 SHA512 b6f493af264a772dd56393447b158e50578316ceb62593cb4e9838783bb0472a7933fc7c036b03c0daac1ebf1d160cf6262c41b83751fb39cf4748159c2b7c03
|
||||
DIST code-server-3.9.2-linux-arm64.tar.gz 71753560 BLAKE2B df5cc9bb91ea6529a64fb8ee572ae451a83f9b0b2b2ef1a27755c67b56fbb73f5cfc43ed3e3a15ad62d1d81f7c780912661b9cad4aa631eed4bb0bce46174ee5 SHA512 bf9863d3877ce692f2a9f1e129f25edb05e7323a49db6dfc0fbd3b5df153f6a0edecc7395c75acda81eb4fdae0ed2cfdffccc8c155785e2bd994ebb58b39462f
|
||||
DIST code-server-3.9.3-linux-amd64.tar.gz 73054713 BLAKE2B fc9424ab592e7f7aed6f4dfcb9d881585f3eaf8477100935a940c409044400f137a8bea5489dac6a35c232ea9c35c8210a2695fbec2c33eec0ec60dcaef5ab6f SHA512 f4c489bac2c73a075183f378a3fa65787f10bb9829502956fb8ded6869cf770fdcbf4f5df151d1f5aaf20e79db2188cb95b12b1ea875cc0863a12a295fd8b5a0
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
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"
|
||||
|
||||
# In case we ever make a non-"-binary" pkg
|
||||
DEPEND="
|
||||
!www-apps/code-server
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=net-libs/nodejs-12.16.1:0/12[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 )
|
||||
|
||||
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 ./lib/vscode/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
|
||||
|
||||
if ! use gnome-keyring; then
|
||||
rm -r ./lib/vscode/node_modules/keytar \
|
||||
|| die "failed to remove bundled keytar"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
|
||||
insinto "/usr/lib/${MY_PN}"
|
||||
doins -r .
|
||||
fperms +x "/usr/lib/${MY_PN}/bin/${MY_PN}"
|
||||
dosym "../../usr/lib/${MY_PN}/bin/${MY_PN}" "${EPREFIX}/usr/bin/${MY_PN}"
|
||||
|
||||
dosym "../../../../../../../../usr/bin/rg" "${EPREFIX}/usr/lib/${MY_PN}/lib/vscode/node_modules/vscode-ripgrep/bin/rg"
|
||||
|
||||
systemd_dounit "${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'"
|
||||
}
|
||||
Reference in New Issue
Block a user