mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
@@ -8,3 +8,5 @@ DIST moar-1.31.8-deps.tar.xz 1359500 BLAKE2B 302b176f2b22878a6a1eb0e5d57eeb83adf
|
||||
DIST moar-1.31.8.tar.gz 2849478 BLAKE2B 16b3654bb375fdaa263277fe18c8af0938b5990ba44a17a33276a44979c4e66cbd04ef5bdeb850a630a2e832877cd065572e5d3d3254ac8367c83b59673d5414 SHA512 f02f0d9b14d5c888017720f8430bde0201be913619e4b0faef3eba11ce086fdb5adefc6abc9ba7ae402f4c9d3690c6621d50b5f9855cefe0e17aa94b6a98402a
|
||||
DIST moar-1.32.2-deps.tar.xz 1448708 BLAKE2B b425797d45a1895679ee8f6735ef2fcce44d63b42da59f659383878ae961d68034f840cdaa24ecad6643714377c44f65a1520849dab215c0d2dad92faea18076 SHA512 9f7ec9272f4bec3567c3b69961c4c5858ebc826623e8b99d07b2d9e56567938bb9c1e108ba44ad933892a7c350341e71789bf9a9737adb14ee5edb343c2b3914
|
||||
DIST moar-1.32.2.tar.gz 2853115 BLAKE2B ae5fb36cb76a24ee4707ec0283c53faa238a266cf7b4038bfae2c08bef1aef20ece600129616bdcb9c823a2a63b20596732715c0701ceb7273472f3dcf6ff381 SHA512 4881ae57d309923ad8e1e010d79aacbb781b19a5353ab629294e2eb25e57d7b67e5e47f0d2c2311f8b8babe8ddf8867054924bf41acde5d34ca5e2bb9d6168fd
|
||||
DIST moar-1.32.3-deps.tar.xz 1448708 BLAKE2B b425797d45a1895679ee8f6735ef2fcce44d63b42da59f659383878ae961d68034f840cdaa24ecad6643714377c44f65a1520849dab215c0d2dad92faea18076 SHA512 9f7ec9272f4bec3567c3b69961c4c5858ebc826623e8b99d07b2d9e56567938bb9c1e108ba44ad933892a7c350341e71789bf9a9737adb14ee5edb343c2b3914
|
||||
DIST moar-1.32.3.tar.gz 2853141 BLAKE2B 2a4150a9ac4fd5109af45d5664762831992fe967bbecff5ef2953b7635df27649623eb1d2ea8e934c5c4c11039adbd0f7ba84dd2bd14be665038eb6a5a31b9e4 SHA512 3315b1ea8869018b5114e96339befc64d1e7ca269ba7153e80a3d1d11a06536ca176ba0aad4faea62ec3be5247ed7e49e9f2229b34ef78017856c2cfbba1383e
|
||||
|
||||
63
sys-apps/moar/moar-1.32.3.ebuild
Normal file
63
sys-apps/moar/moar-1.32.3.ebuild
Normal file
@@ -0,0 +1,63 @@
|
||||
# Copyright 2023-2025 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"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 MIT"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 MIT"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 MIT"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 MIT"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 MIT"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 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