commit: deeff7fcfb44c228925bbec2339c4938c3902edf Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Oct 17 12:23:26 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Sat Oct 18 08:29:54 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deeff7fc
app-misc/upterm: add 0.17.0 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-misc/upterm/Manifest | 2 ++ app-misc/upterm/upterm-0.17.0.ebuild | 48 ++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/app-misc/upterm/Manifest b/app-misc/upterm/Manifest index 2f1fdcebbeb1..98e5a9445dff 100644 --- a/app-misc/upterm/Manifest +++ b/app-misc/upterm/Manifest @@ -1,2 +1,4 @@ DIST upterm-0.15.3-vendor.tar.xz 3522576 BLAKE2B 3858321b5e1c250369604fb72ccbc2af6c1f4cd0208ab2545ac6e43f036e5ab507f196c8cb0d4671c4dfe79d979b48ff39e438ccb92c26cf6a03af4fb0278d26 SHA512 83ffa12548729ef6a325d7b8dc9bcdf3b316242c517aa0effb447527e16de24e135828cde5b8cc302120aca00f456096cb4b4cc92ed37a6120d2b7ca4cfa9791 DIST upterm-0.15.3.tar.gz 133923 BLAKE2B 26e18331a78956731867c15ae386c2d8649c7c340d8ff2232182555dc0683362b471c65fb1430d90d3cee7afbd2fa646f3274a51b0fdc0c7cd964f36d64e7557 SHA512 ad8383429f2595c83acd3152331bafd62137affcc7187bfa9ddbce443b16d8b0340102533199048e48ead05da7fbdcc285448f690fb786cba95b369e6e947b30 +DIST upterm-0.17.0-vendor.tar.xz 3714740 BLAKE2B 65e2e5ca11feba9431027d68709784ef3b448d87324b3aed7d4da211c6c8738e38b91c144ed71f5aaa1952b115c780359ca25cbd5d2f0a391dd1d28b3b84df1b SHA512 53a90b8a649451535b601a187c5cf0db0cd9afe7bc846b226a1aebb331dc6f33a0718e1db2967ad33a6c9e1de94dc155ee739495a87143f0e732250091379ea8 +DIST upterm-0.17.0.tar.gz 141342 BLAKE2B dc55641af9b4b0fd9adda203d86cf81ec3575c61b5fb8ffddb06c0edb090e3da27674f919dc53705d86f51210a3a231050636da6d2c8c78e6db5b43606daec9f SHA512 1178949b38817fd5b80cb7864b5fe9f2ea6af41dcca19ad43f943cc06b6416438ac2a2f611f593583bb535c11b3b7d7c67bf57b5e122b3fa883ccc2806596efb diff --git a/app-misc/upterm/upterm-0.17.0.ebuild b/app-misc/upterm/upterm-0.17.0.ebuild new file mode 100644 index 000000000000..80bcae4d83c0 --- /dev/null +++ b/app-misc/upterm/upterm-0.17.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2025 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" +SLOT="0" +KEYWORDS="~amd64" +IUSE="server test" +RESTRICT="!test? ( test )" + +BDEPEND=" + >=dev-lang/go-1.25.3 + test? ( + app-editors/vim + app-shells/bash + ) +" + +src_compile() { + local BINS=( ./cmd/upterm ) + use server && BINS+=( ./cmd/uptermd ) + ego build -mod=vendor -o bin/ "${BINS[@]}" +} + +src_test() { + ego test -mod=vendor -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 +}
