commit:     5c96cc682c6db4229f54e90b11fa7a11328bbdc5
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 21 18:28:50 2026 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 21 18:38:47 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c96cc68

app-misc/upterm: add 0.22.0

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-misc/upterm/Manifest             |  2 ++
 app-misc/upterm/upterm-0.22.0.ebuild | 50 ++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/app-misc/upterm/Manifest b/app-misc/upterm/Manifest
index 1d2eee4992a9..52487352ae0a 100644
--- a/app-misc/upterm/Manifest
+++ b/app-misc/upterm/Manifest
@@ -4,3 +4,5 @@ DIST upterm-0.21.0-vendor.tar.xz 3732988 BLAKE2B 
f222c5464e823218706e5f0a4ca887c
 DIST upterm-0.21.0.tar.gz 169143 BLAKE2B 
0733e44305b79f53e416a511ca009429d60fa24c3311bfe555f033a2602c61abf3ef452e9810bf6fceb3ee9c53f765f129272fb0e8dea6b60a685779ea3ff9c3
 SHA512 
62a0e1485fd331f1ce9c1bdeebdddf7037b7a1daf43031a5be6a5d1fc0f7f3a63c1aafc885025b66fc70af006ed3e6e8597b37fde1f3facb421d4596836a35ce
 DIST upterm-0.21.1-vendor.tar.xz 3736752 BLAKE2B 
ecd54411c077f0a1caecbddd680374d0cfdf7239f876cd9a5363382ec53df67e16b90bf260c41cb5d70eacc699d43cc332d681c871de17e5e2f1893d1c351c22
 SHA512 
0582a3ef4a5ee4f21de42fbb96c6e9d6dbaed35ac28912ddb9277ebbdc158861a9a4b654d69f528a01e90a7763d33a2fdb9ab6f87318378bb975b80c2abf9f47
 DIST upterm-0.21.1.tar.gz 170456 BLAKE2B 
7dcc203cf22f492a8c1d9268e3514ae9ea6507ee7bd26c06da7dd9179c5476e33b03f9cb02f22cba3716af68231ed5ad971a905e00d248f6b6c3fcdda3161336
 SHA512 
61f1421469a61d4d5f35250c586199e793eedde7f0e2100f504c52cf2aa2dd3cb3ca53db328bf84e667a97a82a477ee98480ee589b9ffef1845066044fc88fa7
+DIST upterm-0.22.0-vendor.tar.xz 3848888 BLAKE2B 
c452fcf7b3a3bbc50b25e51d597e97b14c0ede52c6675a1297cd424ee93c30593c32c53f59187ea9e7ad8d9a217a9bb7f634fcc593912255010c5bcdce10c62d
 SHA512 
5cf31fa21caeb9376c271008e29cadb9cb1e5052a01ad069f33a4ade77d2be4ad539afd56ea9a4602e07d1cb1c5807c15d8c066930a7da261385de2dfcfe7449
+DIST upterm-0.22.0.tar.gz 187930 BLAKE2B 
aa435146922b3148aa51839bd83f3eb5b66faa4d0652ef07ebffe83362871d9a2df2d249134d12bbbc7418565539d455e82ff85a014bbc822c99e19f782734d8
 SHA512 
3de2baee42301427daf19d4b0227dba1f4ef7e3cfbc5cdda1a0a39abb72833f8946a5e524914312e80fce5a3cac48960eda74968ab1fc2099cd04d08502662ca

diff --git a/app-misc/upterm/upterm-0.22.0.ebuild 
b/app-misc/upterm/upterm-0.22.0.ebuild
new file mode 100644
index 000000000000..8f01fc91c352
--- /dev/null
+++ b/app-misc/upterm/upterm-0.22.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module shell-completion systemd
+
+DESCRIPTION="Instant Terminal Sharing"
+HOMEPAGE="https://upterm.dev/";
+SRC_URI="https://github.com/owenthereal/upterm/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
+SRC_URI+=" 
https://github.com/gentoo-golang-dist/upterm/releases/download/v${PV}/${P}-vendor.tar.xz";
+
+LICENSE="Apache-2.0"
+# Dependent licenses
+LICENSE+=" Apache-2.0 BSD BSD-2 CC0-1.0 MIT MPL-2.0 Unlicense"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="server test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       >=dev-lang/go-1.25.4
+       test? (
+               app-editors/vim
+               app-shells/bash
+       )
+"
+
+src_compile() {
+       local BINS=( ./cmd/upterm )
+       use server && BINS+=( ./cmd/uptermd )
+       ego build -o bin/ "${BINS[@]}"
+}
+
+src_test() {
+       ego test -vet=off -timeout=120s 
./{cmd,server,io,host,memlistener,routing,internal,ftests}/...
+}
+
+src_install() {
+       dobin bin/upterm
+       doman etc/man/man1/*
+
+       newbashcomp etc/completion/upterm.bash_completion.sh upterm
+       newzshcomp etc/completion/upterm.zsh_completion _upterm
+
+       if use server; then
+               dobin bin/uptermd
+               systemd_dounit systemd/uptermd.service
+       fi
+}

Reply via email to