commit:     84858234a482e37a76b0af19554b600c69729205
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 18 13:31:27 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 18 14:36:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84858234

sys-apps/moor: add 2.6.0

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

 sys-apps/moor/Manifest          |  2 ++
 sys-apps/moor/moor-2.6.0.ebuild | 57 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/sys-apps/moor/Manifest b/sys-apps/moor/Manifest
index ad3f01e8f1df..fc449623fe4f 100644
--- a/sys-apps/moor/Manifest
+++ b/sys-apps/moor/Manifest
@@ -6,3 +6,5 @@ DIST moor-2.4.0-deps.tar.xz 1461024 BLAKE2B 
bcdccd79020a6c461ccc81a4e65af3d7efcd
 DIST moor-2.4.0.tar.gz 3013760 BLAKE2B 
068070c45b4c673cce9a2242b6c6b9b022dc7e3823cf0d9a074d3c790d17d2a3ba55e9bc16a58e217a1581c03277791bad4ee3261df25ab6ce52f4a338d2e14b
 SHA512 
86b03094931556fc3b689225ea5460c12685c55bf7733efec944cc2f5363f4ef09a5104b0b4d3e8d15da48491cb1077fd4a2c703618c8694aeea69f681885764
 DIST moor-2.4.1-deps.tar.xz 1461024 BLAKE2B 
bcdccd79020a6c461ccc81a4e65af3d7efcd2c0c2101ac2896f779efd8ddd1272fac20125522d9a1528c21949783fe87046f15aef2088c6abcc0aeaa4f446583
 SHA512 
1f854a03fb58b82baf9ba5be6750c0a043c9d1460e75d775d2ae1acca1574927b5da25270247464ace182b7e2e46d3e447e3f36d345e5da957905b7ddebed14b
 DIST moor-2.4.1.tar.gz 3016333 BLAKE2B 
dbeae7a1f2d65f83e88c677490332a4c8480367c9934acd3b0277abc495905428934281faf03ab060f1abe0068dfb51d3d9c51121013ff40efa938421ec2f9c7
 SHA512 
3dcc3b48401853791ad6c38e2fb249c0dd45cd96b33b2e4bc765455b358d658f06ba9732214a778370cc33949d48fe7806445354913df23225d32c9657dd1fd0
+DIST moor-2.6.0-deps.tar.xz 1461024 BLAKE2B 
bcdccd79020a6c461ccc81a4e65af3d7efcd2c0c2101ac2896f779efd8ddd1272fac20125522d9a1528c21949783fe87046f15aef2088c6abcc0aeaa4f446583
 SHA512 
1f854a03fb58b82baf9ba5be6750c0a043c9d1460e75d775d2ae1acca1574927b5da25270247464ace182b7e2e46d3e447e3f36d345e5da957905b7ddebed14b
+DIST moor-2.6.0.tar.gz 3023478 BLAKE2B 
2ba710a28ae57878e16a55ae920283aabb6db5d66c23ba6a73470dd7abe51c22add00d1e5f8901e9fb78ec6510c056bf7e6c12011b4abcedb53fa52e7e164398
 SHA512 
e61ef478a949d62eb20345449a866e3c812ad13de24d84b33929d0b02c2bae4b0517deb4f5a92d2b79cac7b461f214c38ef7873e6b7a840f0bc853bfa282c4d4

diff --git a/sys-apps/moor/moor-2.6.0.ebuild b/sys-apps/moor/moor-2.6.0.ebuild
new file mode 100644
index 000000000000..b1b78a8298ed
--- /dev/null
+++ b/sys-apps/moor/moor-2.6.0.ebuild
@@ -0,0 +1,57 @@
+# 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"
+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 ver_replacing -lt 2 ; then
+               ewarn "moar has been renamed to moor, please update any 
scripts."
+       fi
+}

Reply via email to