commit:     efcaa42c22c119eb89cc215d83901c08203bffcd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 20 00:18:35 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 20 00:50:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efcaa42c

sys-apps/moar: add 1.18.2

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

 sys-apps/moar/Manifest           |  2 ++
 sys-apps/moar/moar-1.18.2.ebuild | 41 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/sys-apps/moar/Manifest b/sys-apps/moar/Manifest
index bfe2fdeafc8d..c316ff184909 100644
--- a/sys-apps/moar/Manifest
+++ b/sys-apps/moar/Manifest
@@ -6,3 +6,5 @@ DIST moar-1.18.0-deps.tar.xz 4760036 BLAKE2B 
6fd72d710a620fdf104766be84f3fa68652
 DIST moar-1.18.0.tar.gz 2784174 BLAKE2B 
3d9ee7fda27419b419f47bae3336d9f0d7ae48bbdad1fb8c501c85b4ea34aaaf6cf1c865f1b56d195ec6e129333d63e552d96b147fb9c26c739482a546d6286e
 SHA512 
a76f19465d03deec8f778fda213be6ab33fdd48d309231f4f0ad0cdd8ea2facc41e2bdb1b74771c4a9ce3a31c30a72754f790e5eb9edb06e19d26fe3e224b507
 DIST moar-1.18.1-deps.tar.xz 4760036 BLAKE2B 
6fd72d710a620fdf104766be84f3fa68652c760818cdee66bb8475cc8949872c82be026c04b54cb61c0108c5977cb1f787f9a4fa0316bde0293cdedb1f6f94f8
 SHA512 
f40520a1b2e94f4a3e97d6a4e19191484b66e13a57c7b30416c813d84cad3d29295e862d5b75870313cc905112425c731d052619d49e78b33fb3d5d8750df3df
 DIST moar-1.18.1.tar.gz 2784232 BLAKE2B 
eee1b0d805150f5a0e09b3038dd13189d20886fbe8159e9fddea4ea97edfafba400b5ab542795ba222c2757e684e41e2db95774ad33a8039e62e1244cd69c16e
 SHA512 
2dbe3b4f461f6ee77b8093e1783a06cf1703ec8c5682565cfb3d28d296296b562fd1032126f0f3ad835de9236d31e2930456b59ed8efb168c5243f4265c6b355
+DIST moar-1.18.2-deps.tar.xz 4893264 BLAKE2B 
48ac9d4992c2f6d1aa0f9160bde87bd19d66acfe912753645c9dbb6e5bc007eb68caf1fff53bae84b03e4a6607858717666b1527bf8d0080b0aca6dbb37a894e
 SHA512 
bf141777d4fee5c14e76130671862f255675da3c628c21cb892d53a469a0872d4c7f47699c16c50728df76ba4d9e467e9b8744a322c1acc8d0151f9eb5987b66
+DIST moar-1.18.2.tar.gz 2784141 BLAKE2B 
0ed2df0926390ef1de11cefb8933d39e90b704d943afe83e578adee745c0e27411e7f8b3741766176b6d66b44ee56592d8d0b84484d5e83d360dc4039428b3d4
 SHA512 
552e9fb635c554f16c250db1702314e34d2f961cbbd50106b696c096b31f2e7f86109e99c843911829905bb5390716f642ce0ebe70f0f1b71cada1b47c53e17a

diff --git a/sys-apps/moar/moar-1.18.2.ebuild b/sys-apps/moar/moar-1.18.2.ebuild
new file mode 100644
index 000000000000..091d314e2ac3
--- /dev/null
+++ b/sys-apps/moar/moar-1.18.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit 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"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="!dev-lang/moarvm"
+BDEPEND="
+       test? (
+               app-arch/bzip2
+               app-arch/xz-utils
+       )
+"
+
+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