commit:     94831921e1a2ef5f23efda100f3c6d49cd008167
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 15 14:23:52 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 15 14:23:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94831921

sys-apps/moor: add 2.9.1

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

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

diff --git a/sys-apps/moor/Manifest b/sys-apps/moor/Manifest
index fb353feb23df..5e1ac1e0bde2 100644
--- a/sys-apps/moor/Manifest
+++ b/sys-apps/moor/Manifest
@@ -4,3 +4,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.8.2-deps.tar.xz 1461024 BLAKE2B 
bcdccd79020a6c461ccc81a4e65af3d7efcd2c0c2101ac2896f779efd8ddd1272fac20125522d9a1528c21949783fe87046f15aef2088c6abcc0aeaa4f446583
 SHA512 
1f854a03fb58b82baf9ba5be6750c0a043c9d1460e75d775d2ae1acca1574927b5da25270247464ace182b7e2e46d3e447e3f36d345e5da957905b7ddebed14b
 DIST moor-2.8.2.tar.gz 3028081 BLAKE2B 
b88abcdc7b29653dc89c8a2040f35b24de74d358ce6415b9c89e5a7a1d7c69123c2de5a67f7be090cfa45945bccdee9d7d305b9d193bf350e84e1ffab84246d2
 SHA512 
cf503489e5d397103276b51fbd1b62525a8f09a94e4584692b275728a8fcf44b899ea5f7e896aece87fcbc9dddbb9ef1228d3c0d62cc97c682b45206078e09af
+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

diff --git a/sys-apps/moor/moor-2.9.1.ebuild b/sys-apps/moor/moor-2.9.1.ebuild
new file mode 100644
index 000000000000..cf510da05e60
--- /dev/null
+++ b/sys-apps/moor/moor-2.9.1.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 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