commit:     2136e762d2f62babcf60b507acf30dc0f7bf3020
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 28 03:50:18 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 28 03:50:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2136e762

sys-apps/moar: add 1.31.8

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

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

diff --git a/sys-apps/moar/Manifest b/sys-apps/moar/Manifest
index c88ee27dde11..9e0044c04788 100644
--- a/sys-apps/moar/Manifest
+++ b/sys-apps/moar/Manifest
@@ -4,3 +4,5 @@ DIST moar-1.31.5-deps.tar.xz 1359500 BLAKE2B 
302b176f2b22878a6a1eb0e5d57eeb83adf
 DIST moar-1.31.5.tar.gz 2848250 BLAKE2B 
1477ca301add9570ba029ce72821f2a71a64998a8ab300641fe953006607e454c40febdac49b0f9e2e25bc5f071139e102cb3393534dbfe54f07b0dff3b5ee37
 SHA512 
350d7472e0fbf66df8adfc42d7d0343485e3559b2cfc7e89cd8ac25a9438a83d9c01019f89b1f59c48f44be5e94d857d760c43376cf39f42af16eeb05667def5
 DIST moar-1.31.7-deps.tar.xz 1359500 BLAKE2B 
302b176f2b22878a6a1eb0e5d57eeb83adf0b3dd790a070d969b4b840741700e4143d9abd7138d556cb7fa04b72412c52e8d4560cb8f925f5e6625633cbd1d4e
 SHA512 
317df040f8541548bfec2d27557cf34a547cea60a3a921860fa50e099c792fd4a2b6822fadc7b0b4d395f7d7f338bc7cb39ef2f267a8a4df27e4d554a8b34b36
 DIST moar-1.31.7.tar.gz 2849759 BLAKE2B 
27a38557610676c6d2692a462a5e9692f609508c8c41ff13c8a57ae3f0a5cdcb809b2bbc096caeec2e92ca6dcd2440643c759a5e3a5dbf512ea64105475dc9b4
 SHA512 
f5360357469e0ce3bb8eb2c595bf52aa12b06f1d2789f38feb5d3517a127253ad18c1e1401cf7ac227a8652703b4549a4059fc4dec83862483b7abfb2cdeda42
+DIST moar-1.31.8-deps.tar.xz 1359500 BLAKE2B 
302b176f2b22878a6a1eb0e5d57eeb83adf0b3dd790a070d969b4b840741700e4143d9abd7138d556cb7fa04b72412c52e8d4560cb8f925f5e6625633cbd1d4e
 SHA512 
317df040f8541548bfec2d27557cf34a547cea60a3a921860fa50e099c792fd4a2b6822fadc7b0b4d395f7d7f338bc7cb39ef2f267a8a4df27e4d554a8b34b36
+DIST moar-1.31.8.tar.gz 2849478 BLAKE2B 
16b3654bb375fdaa263277fe18c8af0938b5990ba44a17a33276a44979c4e66cbd04ef5bdeb850a630a2e832877cd065572e5d3d3254ac8367c83b59673d5414
 SHA512 
f02f0d9b14d5c888017720f8430bde0201be913619e4b0faef3eba11ce086fdb5adefc6abc9ba7ae402f4c9d3690c6621d50b5f9855cefe0e17aa94b6a98402a

diff --git a/sys-apps/moar/moar-1.31.8.ebuild b/sys-apps/moar/moar-1.31.8.ebuild
new file mode 100644
index 000000000000..63c57b021310
--- /dev/null
+++ b/sys-apps/moar/moar-1.31.8.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
+
+DESCRIPTION="Pager designed to do the right thing without any configuration"
+HOMEPAGE="https://github.com/walles/moar";
+SRC_URI="https://github.com/walles/moar/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz";
+
+LICENSE="BSD-2 BSD MIT"
+# Dependent licenses
+LICENSE+="  Apache-2.0 BSD BSD-2 MIT"
+# Dependent licenses
+LICENSE+="  Apache-2.0 BSD BSD-2 MIT"
+# Dependent licenses
+LICENSE+="  Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# moarvm: https://github.com/walles/moar/issues/143
+RDEPEND="!dev-lang/moarvm"
+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/moar/blob/master/build.sh#L28
+       ego build -ldflags="-w -X main.versionString=${PV}" -o moar
+}
+
+src_test() {
+       # From test.sh (we don't run that because it has some linting etc)
+       ego test -timeout 20s ./...
+}
+
+src_install() {
+       dobin moar
+       doman moar.1
+       einstalldocs
+}

Reply via email to