diff options
author | Leonardo Hernandez Hernandez <leohdz172@outlook.com> | 2022-01-28 15:37:55 -0600 |
---|---|---|
committer | Leonardo Hernandez Hernandez <leohdz172@outlook.com> | 2022-01-28 15:37:55 -0600 |
commit | bbf75e90c41d91171d8861b72e51f376842e2e78 (patch) | |
tree | 4168f7e9fffd3921a29e6658598cb7053e68723f /www-apps | |
parent | www-apps/code-server-bin: drop 3.10.0 (diff) | |
download | guru-bbf75e90c41d91171d8861b72e51f376842e2e78.tar.gz guru-bbf75e90c41d91171d8861b72e51f376842e2e78.tar.bz2 guru-bbf75e90c41d91171d8861b72e51f376842e2e78.zip |
www-apps/code-server-bin: bump to 4.0.2
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Leonardo Hernandez Hernandez <leohdz172@outlook.com>
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/code-server-bin/Manifest | 2 | ||||
-rw-r--r-- | www-apps/code-server-bin/code-server-bin-4.0.2.ebuild | 122 |
2 files changed, 124 insertions, 0 deletions
diff --git a/www-apps/code-server-bin/Manifest b/www-apps/code-server-bin/Manifest index 34b735ea0..0ac2b2974 100644 --- a/www-apps/code-server-bin/Manifest +++ b/www-apps/code-server-bin/Manifest @@ -2,3 +2,5 @@ DIST code-server-3.12.0-linux-amd64.tar.gz 98959884 BLAKE2B 7be2195b1d2e32524462 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 +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 diff --git a/www-apps/code-server-bin/code-server-bin-4.0.2.ebuild b/www-apps/code-server-bin/code-server-bin-4.0.2.ebuild new file mode 100644 index 000000000..00d3be17d --- /dev/null +++ b/www-apps/code-server-bin/code-server-bin-4.0.2.ebuild @@ -0,0 +1,122 @@ +# 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 " +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 + + # Other OS's + 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 + rm -rf .vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/darwin-x64 || die + rm -rf .vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/darwin-arm64 || 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'" +} |