diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-09 10:24:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-09 10:24:33 +0100 |
commit | ca85c13c0f9c4f9af191bc9a46a7bc274e1d25bf (patch) | |
tree | abdc3a1a0b92472802acf004b02b8706b10ba2ea /sys-apps/moar/moar-1.15.3.ebuild | |
parent | 49307b439ea0ae14beb0772de83e70297ae8356c (diff) |
gentoo auto-resync : 09:07:2023 - 10:24:32
Diffstat (limited to 'sys-apps/moar/moar-1.15.3.ebuild')
-rw-r--r-- | sys-apps/moar/moar-1.15.3.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-apps/moar/moar-1.15.3.ebuild b/sys-apps/moar/moar-1.15.3.ebuild new file mode 100644 index 000000000000..a32bbea5ec05 --- /dev/null +++ b/sys-apps/moar/moar-1.15.3.ebuild @@ -0,0 +1,41 @@ +# 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" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="!dev-lang/moarvm" +BDEPEND=" + test? ( + app-arch/bzip2 + app-arch/xz-utils + ) +" + +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 +} |