commit:     4c3e428e7e5ab76c3cfd164c9690f51244579a5e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  4 04:48:33 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan  4 04:56:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c3e428e

sys-apps/moar: new package, add 1.11.3

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

 sys-apps/moar/Manifest           |  2 ++
 sys-apps/moar/metadata.xml       | 11 +++++++++++
 sys-apps/moar/moar-1.11.3.ebuild | 31 +++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+)

diff --git a/sys-apps/moar/Manifest b/sys-apps/moar/Manifest
new file mode 100644
index 000000000000..9ed7a36af261
--- /dev/null
+++ b/sys-apps/moar/Manifest
@@ -0,0 +1,2 @@
+DIST moar-1.11.3-deps.tar.xz 25971908 BLAKE2B 
b0086ed53e9b032bc58e048ce5e5298cbee21e67b85798b2aa58c661293f53383a2191a7bef203a098c954ffc20dc7094e4a0c7b57aa8b456543b42770f30916
 SHA512 
215db80539767b4900ecac56f84a9f183f9e0581fb7603219feb3e1da44b10b52e7eda69336fc0ed6ab73be3e4efee855a91d3a41b1839c8cb9f357a9b2ed455
+DIST moar-1.11.3.tar.gz 2777421 BLAKE2B 
48cc596af11b1163a6ca6cc766670ec917fae4f7232c295e6d87f074ce3c87dd3f06ac440af4d5bedc2735a2d2fe634df2d9f5db8ad05399f470d99c406a7beb
 SHA512 
2367dd81bea3ff20c782aa7b73a70ca2ff54d57164bbcf5e318bca3769adddc8c41c3092cee5bf9c02816c68d4f65200c118e17014ae37ed63b1436dde64688c

diff --git a/sys-apps/moar/metadata.xml b/sys-apps/moar/metadata.xml
new file mode 100644
index 000000000000..da115d6b24cf
--- /dev/null
+++ b/sys-apps/moar/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>s...@gentoo.org</email>
+               <name>Sam James</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">walles/moar</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/sys-apps/moar/moar-1.11.3.ebuild b/sys-apps/moar/moar-1.11.3.ebuild
new file mode 100644
index 000000000000..a66c7d9330d4
--- /dev/null
+++ b/sys-apps/moar/moar-1.11.3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2019-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"
+
+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