commit:     7f861ee45e96ca088e9b80b87583fecb87baf622
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  3 07:52:28 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Oct  3 07:53:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f861ee4

app-misc/upterm: new package, add 0.15.3

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

 app-misc/upterm/Manifest             |  2 ++
 app-misc/upterm/metadata.xml         | 14 +++++++++++
 app-misc/upterm/upterm-0.15.3.ebuild | 47 ++++++++++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+)

diff --git a/app-misc/upterm/Manifest b/app-misc/upterm/Manifest
new file mode 100644
index 000000000000..2f1fdcebbeb1
--- /dev/null
+++ b/app-misc/upterm/Manifest
@@ -0,0 +1,2 @@
+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

diff --git a/app-misc/upterm/metadata.xml b/app-misc/upterm/metadata.xml
new file mode 100644
index 000000000000..6b477e8fb1dd
--- /dev/null
+++ b/app-misc/upterm/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Arthur Zamarin</name>
+       </maintainer>
+       <use>
+               <flag name="server">Compile server support (uptermd)</flag>
+       </use>
+       <upstream>
+               <remote-id type="github">owenthereal/upterm</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/app-misc/upterm/upterm-0.15.3.ebuild 
b/app-misc/upterm/upterm-0.15.3.ebuild
new file mode 100644
index 000000000000..de301f607f1b
--- /dev/null
+++ b/app-misc/upterm/upterm-0.15.3.ebuild
@@ -0,0 +1,47 @@
+# 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.24
+       test? (
+               app-editors/vim
+               app-shells/bash
+       )
+"
+
+src_compile() {
+       ego build -mod=vendor -o bin/upterm ./cmd/upterm
+       use server && ego build -mod=vendor -o bin/uptermd ./cmd/uptermd
+}
+
+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
+}

Reply via email to