You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
813 B

# 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
}