commit:     dbf232ba8f4f00c6ad7ea11dc4ca8e125ad31c7b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  9 13:34:24 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun  9 13:40:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbf232ba

sys-apps/moar: add 1.15.2

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

 sys-apps/moar/Manifest           |  2 ++
 sys-apps/moar/moar-1.15.2.ebuild | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/sys-apps/moar/Manifest b/sys-apps/moar/Manifest
index 68e30d5e15ba..b264f40416e1 100644
--- a/sys-apps/moar/Manifest
+++ b/sys-apps/moar/Manifest
@@ -2,3 +2,5 @@ DIST moar-1.15.0-deps.tar.xz 4808044 BLAKE2B 
cd7808337af5acb2bd6cb4b9696c9d04803
 DIST moar-1.15.0.tar.gz 2780805 BLAKE2B 
6a50018596f34de7d43fcedf0155141a6cd8d5896f34a05b44cfc5180d00e17caaf46377ecc3bb273fd5e2fd4536ada94e82cc7a8788cd14b030390f22ba40a4
 SHA512 
deedb8bf6f28f68a1633296a32a690df109c867023980125f7550111a3cf20463980c95fbddbafb16175aa03c46f3bf6150fbe066508cedffce49dd9bf18a90c
 DIST moar-1.15.1-deps.tar.xz 4808044 BLAKE2B 
cd7808337af5acb2bd6cb4b9696c9d04803df033b5a1d4904418602dc629cef7c16172b0eaa57644be76a02b6727d36f767bfafba1377ea95eb827fbb4a1d34b
 SHA512 
e51ca15137f4b5dc5ea447c200341aaeb06cd77118cd8f2fb3efca0ffc2d4199e00687f980803c4ff09c535621b58206b22bff2c944ad8786c73c3a7c886d6c6
 DIST moar-1.15.1.tar.gz 2780649 BLAKE2B 
79145ae426f5ae77d73dd556521135bfad21af3841818c4092eb476a52b408da86a4ce1f4c8e43712e74be233b7fc9469788e2134c866e8bb8ba83927c7f4f2d
 SHA512 
c58fc57f583e8051c3e1f567e9d8ad0aca45dcbfb1998d0156cb07b90bc2359d70c8fe90849f753f969980af919d9faef82cde7dedcf2aa9aeab4c080edc7752
+DIST moar-1.15.2-deps.tar.xz 4760036 BLAKE2B 
6fd72d710a620fdf104766be84f3fa68652c760818cdee66bb8475cc8949872c82be026c04b54cb61c0108c5977cb1f787f9a4fa0316bde0293cdedb1f6f94f8
 SHA512 
f40520a1b2e94f4a3e97d6a4e19191484b66e13a57c7b30416c813d84cad3d29295e862d5b75870313cc905112425c731d052619d49e78b33fb3d5d8750df3df
+DIST moar-1.15.2.tar.gz 2780812 BLAKE2B 
c104349cb94399f2c0c4a3219f2d59020cb7a9fa445edcde639c706070cae38ce54c7f181a0bf2de3ee831c146aaa19effbabf76509bfae948a22771951c0e34
 SHA512 
b4b7afa1b884a50e3939b59174e610357c6259667d3cac190aab24c5991bf59ff617200f04ec7292fd7eebf36a828748c54ce2eccbbe0cc413f3e0b5994d8cf4

diff --git a/sys-apps/moar/moar-1.15.2.ebuild b/sys-apps/moar/moar-1.15.2.ebuild
new file mode 100644
index 000000000000..177f577621ac
--- /dev/null
+++ b/sys-apps/moar/moar-1.15.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="A 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"
+
+RDEPEND="!dev-lang/moarvm"
+
+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