mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
@@ -4,3 +4,5 @@ DIST moar-1.23.9-deps.tar.xz 37188500 BLAKE2B a5c92f8e56d4c7588265132f33089f1086
|
||||
DIST moar-1.23.9.tar.gz 2804191 BLAKE2B d5663fedd70fc80d70a206c276ece6ec11da4f4b4dc396a3e11b1fb8edd5bd9f3395e943158c4bb297b5ebfeecd8f61bdbaaff79e78c4a89458f1b1a02db0e71 SHA512 9ab4a3e49b66b39f642b6a1f882c0980a4e755e3e127ca37d1319615ae836fe3250676a8c0e95ccd0f8e714357df5dc00235bf67be6097a7b2811f0e3bf02e9f
|
||||
DIST moar-1.24.3-deps.tar.xz 1228028 BLAKE2B f8895cef15f6ab0eb5dcf826d86deb7dc2c67dd6e692e456d5d98830fba93b3a17e5d3b3026c0f7ea10e3810db1f17ccb27b3cb704cff1c9bcbd267fbf68acbd SHA512 f12f2fa563b5170c8fe092f15476692815c2e0ab341d8becff504e5ded426efae5fc20697ef935ca5d037fa40abbfebbe5d0f59ac4e805e2d7d60e19070df3d4
|
||||
DIST moar-1.24.3.tar.gz 2806023 BLAKE2B 7deb1319bf887e117867f4d2a4ede54a618d787d9bdf2c2a3a69d6da376ad7aaa52f8cd2d66da8d6fecd441902b36bd32a8b623c06af142d18422558fff827ab SHA512 7e109eced995c080df54a7c79d96a0403da1246fbd1a30be5c66479740824e3c34e0a3ac2679a7c27e5d0180c6818ea4322a07b71fa3a724d2778458b750653f
|
||||
DIST moar-1.24.4-deps.tar.xz 1228028 BLAKE2B f8895cef15f6ab0eb5dcf826d86deb7dc2c67dd6e692e456d5d98830fba93b3a17e5d3b3026c0f7ea10e3810db1f17ccb27b3cb704cff1c9bcbd267fbf68acbd SHA512 f12f2fa563b5170c8fe092f15476692815c2e0ab341d8becff504e5ded426efae5fc20697ef935ca5d037fa40abbfebbe5d0f59ac4e805e2d7d60e19070df3d4
|
||||
DIST moar-1.24.4.tar.gz 2806042 BLAKE2B bbe10b9c829074a572f7b741eb5349d02329decc2bdec85e743e177784530ae349653a6941b994c2a3de6496d5ce39c451480a689ceae9daeba6ab13c9e6f555 SHA512 872e7a537b6383665b8f2af0ba92973dca3fa7c1c240db1be34b97cb38274e7aeb81281371809972004f08424bdd78d6c32bc39db2a4ecf22545c5c5ab38ee7b
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-env go-module
|
||||
|
||||
DESCRIPTION="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 ~arm ~arm64 ~ppc64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# moarvm: https://github.com/walles/moar/issues/143
|
||||
RDEPEND="!dev-lang/moarvm"
|
||||
BDEPEND="
|
||||
test? (
|
||||
app-arch/bzip2
|
||||
app-arch/xz-utils
|
||||
)
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
if [[ -d "${WORKDIR}"/vendor ]] ; then
|
||||
mv "${WORKDIR}"/vendor "${S}"/vendor || die
|
||||
fi
|
||||
go-env_set_compile_environment
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user