commit:     84e605e1f38fd002879a8b1b054832c12f110f75
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 30 14:41:58 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 30 14:41:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84e605e1

sys-apps/moor: add 2.9.6

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/moor/Manifest          |  2 ++
 sys-apps/moor/moor-2.9.6.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/sys-apps/moor/Manifest b/sys-apps/moor/Manifest
index e80d055f56ed..31a385a3f427 100644
--- a/sys-apps/moor/Manifest
+++ b/sys-apps/moor/Manifest
@@ -2,3 +2,5 @@ DIST moor-2.4.1-deps.tar.xz 1461024 BLAKE2B 
bcdccd79020a6c461ccc81a4e65af3d7efcd
 DIST moor-2.4.1.tar.gz 3016333 BLAKE2B 
dbeae7a1f2d65f83e88c677490332a4c8480367c9934acd3b0277abc495905428934281faf03ab060f1abe0068dfb51d3d9c51121013ff40efa938421ec2f9c7
 SHA512 
3dcc3b48401853791ad6c38e2fb249c0dd45cd96b33b2e4bc765455b358d658f06ba9732214a778370cc33949d48fe7806445354913df23225d32c9657dd1fd0
 DIST moor-2.9.1-deps.tar.xz 1498364 BLAKE2B 
f12ea0bb6c4748398e18c741ece3fb8c66905096f62813ff9cf44e27b5c472fb56bd93e06fae8cd7802424707902d5b4cd7852fd4b3819cbe812d9e691aa2bac
 SHA512 
84c491303b8a19d9fb086e9abfbe1f1b1c776877ed1a99ac1328152f62049fe7282ce436758adcf2ef07749c06386b7e7d6d75a84d977985c5a5772d695016df
 DIST moor-2.9.1.tar.gz 3031521 BLAKE2B 
70e8c01bf3c8d91af458393877c80072d0e1a2d38c286f0b6d77cf9a527c290c806f65f446eaddb93860a57cfa7fd3db561448e8d89f9b729a6354d00a62d0ee
 SHA512 
ce1e01b651341b1257fd12f22d89d437596f282355fd604c9720be057d0bb1abe0054a5e67ba2f9d06adfce133bbee3bbc0a3a3c1bca91d51efeda786e47c3c0
+DIST moor-2.9.6-deps.tar.xz 1588880 BLAKE2B 
1db3ce39036f396dc83a6cc8658f80f5033e5bee4299c2094e50eb5146695fc58a298258d2d01796559cd54a776b03aff5e41217f12cf913765f4a0d6a41db00
 SHA512 
4d151a5e480fc76f6c3f6dad5d657f23ca368484e163300b4fddb39ebd9ed8ec40227cf6328722dbef714ce6aef3452e67b589610b3ed13b82937be20ae32186
+DIST moor-2.9.6.tar.gz 5306891 BLAKE2B 
c2c25b9087c3ead44f0f728cae77bbe7436e6cc31c3a10824bd0f9fd1fbf83374b5696a1ddfbc037fda9fa531c69d8464ef04baa75f4660de53fa4c2d756350c
 SHA512 
568fc160ae04f6492a5b7567afb02dbe99c5c0cb15027dac5ea2db2a4e35310fc4bb40a9cb8379eabf942e7ec6551bfc1cdddb679046f9cad7c67fc654acb6dd

diff --git a/sys-apps/moor/moor-2.9.6.ebuild b/sys-apps/moor/moor-2.9.6.ebuild
new file mode 100644
index 000000000000..00aee4f18d11
--- /dev/null
+++ b/sys-apps/moor/moor-2.9.6.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-env go-module eapi9-ver
+
+DESCRIPTION="Pager designed to do the right thing without any configuration"
+HOMEPAGE="https://github.com/walles/moor";
+SRC_URI="https://github.com/walles/moor/archive/refs/tags/v${PV}.tar.gz -> 
moor-${PV}.tar.gz"
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/moor/moor-${PV}-deps.tar.xz";
+
+LICENSE="BSD-2 BSD MIT"
+# Dependent licenses
+LICENSE+="  Apache-2.0 BSD BSD-2 ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
+IUSE="test l10n_ru"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       test? (
+               app-arch/bzip2
+               app-arch/xz-utils
+       )
+"
+
+src_unpack() {
+       default
+
+       if [[ -d "${WORKDIR}"/vendor ]] ; then
+               mv "${WORKDIR}"/vendor "${S}"/vendor || die
+       fi
+       go-env_set_compile_environment
+}
+
+src_compile() {
+       # https://github.com/walles/moor/blob/master/build.sh#L28
+       ego build -ldflags="-w -X main.versionString=${PV}" -o moor ./cmd/moor
+}
+
+src_test() {
+       # From test.sh (we don't run that because it has some linting etc)
+       ego test -timeout 20s ./...
+}
+
+src_install() {
+       dobin moor
+       doman moor.1
+       einstalldocs
+}
+
+pkg_postinst() {
+       if use l10n_ru ; then
+               ewarn "This package does not work out of the box with all 
Russian locales."
+               ewarn "If using ru_RU.UTF-8, it will not startup. Please see 
bug #964663."
+       fi
+
+       if ver_replacing -lt 2 ; then
+               ewarn "moar has been renamed to moor, please update any 
scripts."
+       fi
+}

Reply via email to