diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-19 04:14:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-19 04:14:27 +0100 |
commit | 55f35733fd2cef66761513953c80be5312563c5f (patch) | |
tree | 889102c0f6a9db6ea2e0767fe8790ccb9d2cf40c /sys-apps/moar/moar-1.15.0.ebuild | |
parent | 6b36d02cbdfea303a1d9bf985b6e8c984c7ac3cf (diff) |
gentoo auto-resync : 19:05:2023 - 04:14:27
Diffstat (limited to 'sys-apps/moar/moar-1.15.0.ebuild')
-rw-r--r-- | sys-apps/moar/moar-1.15.0.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sys-apps/moar/moar-1.15.0.ebuild b/sys-apps/moar/moar-1.15.0.ebuild new file mode 100644 index 000000000000..177f577621ac --- /dev/null +++ b/sys-apps/moar/moar-1.15.0.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 +} |