Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/moar/
Date: Wed, 01 Mar 2023 02:30:35
Message-Id: 1677637815.864252219e356b8e1b8184a2f60c3843cd14e95f.sam@gentoo
1 commit: 864252219e356b8e1b8184a2f60c3843cd14e95f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 1 02:29:54 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 02:30:15 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86425221
7
8 sys-apps/moar: add 1.12.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-apps/moar/Manifest | 2 ++
13 sys-apps/moar/moar-1.12.0.ebuild | 33 +++++++++++++++++++++++++++++++++
14 2 files changed, 35 insertions(+)
15
16 diff --git a/sys-apps/moar/Manifest b/sys-apps/moar/Manifest
17 index d64f2f0d3445..70b13dff8acc 100644
18 --- a/sys-apps/moar/Manifest
19 +++ b/sys-apps/moar/Manifest
20 @@ -1,2 +1,4 @@
21 DIST moar-1.11.4-deps.tar.xz 25976728 BLAKE2B b1686e6608c8f27afa8704f7158a3d48482a580d8738389af78010a8d33c318152f6155b7c7be42058695653457eab75edb75905614c874f8a5ef15961b6689e SHA512 84b92f2b7d6b0cbc885e5486ca0d1051e3f3febe6a74e1e3afb11193c4b045dac28311d1f8f3a70eb996780c981f3f935174e2885c177c6a5f2c08c622b36fb5
22 DIST moar-1.11.4.tar.gz 2777910 BLAKE2B 7d192436c3c53200d8d29e7251d3f73b825b2a9364341d53d3b5a594d93c10bb5b1db4d9658adbce57d9fa111b140bd354c84211b776eb48fd2f27bda0f6dc77 SHA512 56fac97a8b897b4e9d086088153816b98b45897d4ddec173fbe25f8b3526207d7a3f8f7d5821dc1fc243acfad701c2920c6d4b68cdf513984bdcf5fbc4112268
23 +DIST moar-1.12.0-deps.tar.xz 26291664 BLAKE2B ebc16cbe23c26eacd84376b6e99d7484c753a065edd26d3d0ed7708595de61d6038f53f27c1bdc05032576eb11be3e2cbedbf9bdd2ecf8f8d467fd89eaf0a580 SHA512 dfd236a76bf4bb680b25a938e08bbd6874a554e9668f73af23d695c20403d1967f89fbeebfd54bb333bd86a7ca3e652a8418c6b9ada212aeb861cce4a70f0faf
24 +DIST moar-1.12.0.tar.gz 2777752 BLAKE2B fa2f442e2b0e6d909e77be8df873c7b08a82b43d881583a7f1c4a3591f2bbe90b5adc77524b92e0fcf071ce4a1c18d8c58c7cce18807974fae7342148d7fbe28 SHA512 bfa15f5fd3ffa4146adec9110fbf8fd3bc31c95877f5e24ab911d1ef9e357dd41b46e2f466f2ce7d2fc986e463dcf2e1132c0a42ebfe2c46a8cd216355c4b98b
25
26 diff --git a/sys-apps/moar/moar-1.12.0.ebuild b/sys-apps/moar/moar-1.12.0.ebuild
27 new file mode 100644
28 index 000000000000..766ab4317b72
29 --- /dev/null
30 +++ b/sys-apps/moar/moar-1.12.0.ebuild
31 @@ -0,0 +1,33 @@
32 +# Copyright 2023 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit go-module
38 +
39 +DESCRIPTION="A pager designed to do the right thing without any configuration"
40 +HOMEPAGE="https://github.com/walles/moar"
41 +SRC_URI=" https://github.com/walles/moar/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
42 +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz"
43 +
44 +LICENSE="BSD-2 BSD MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +RDEPEND="!dev-lang/moarvm"
49 +
50 +src_compile() {
51 + # https://github.com/walles/moar/blob/master/build.sh#L28
52 + ego build -ldflags="-w -X main.versionString=${PV}" -o moar
53 +}
54 +
55 +src_test() {
56 + # From test.sh (we don't run that because it has some linting etc)
57 + ego test -timeout 20s ./...
58 +}
59 +
60 +src_install() {
61 + dobin moar
62 + doman moar.1
63 + einstalldocs
64 +}