diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-01 04:05:50 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-01 04:05:50 +0000 |
commit | 6438b14169223c6931a87dd4e1e357934b2c0852 (patch) | |
tree | c429df63c28f2b4670bc1d0dfc6ea140ed24ceae /sys-apps/moar/moar-1.12.0.ebuild | |
parent | 5df0c8ba4bb09f65c6cfb7d67dead00d6b2a1bf9 (diff) |
gentoo auto-resync : 01:03:2023 - 04:05:50
Diffstat (limited to 'sys-apps/moar/moar-1.12.0.ebuild')
-rw-r--r-- | sys-apps/moar/moar-1.12.0.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sys-apps/moar/moar-1.12.0.ebuild b/sys-apps/moar/moar-1.12.0.ebuild new file mode 100644 index 000000000000..766ab4317b72 --- /dev/null +++ b/sys-apps/moar/moar-1.12.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" + +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 +} |