mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
sys-apps/moor: add 2.8.1
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
5002dc2815
commit
1db07f0c48
@ -10,3 +10,5 @@ DIST moor-2.6.0-deps.tar.xz 1461024 BLAKE2B bcdccd79020a6c461ccc81a4e65af3d7efcd
|
||||
DIST moor-2.6.0.tar.gz 3023478 BLAKE2B 2ba710a28ae57878e16a55ae920283aabb6db5d66c23ba6a73470dd7abe51c22add00d1e5f8901e9fb78ec6510c056bf7e6c12011b4abcedb53fa52e7e164398 SHA512 e61ef478a949d62eb20345449a866e3c812ad13de24d84b33929d0b02c2bae4b0517deb4f5a92d2b79cac7b461f214c38ef7873e6b7a840f0bc853bfa282c4d4
|
||||
DIST moor-2.6.1-deps.tar.xz 1461024 BLAKE2B bcdccd79020a6c461ccc81a4e65af3d7efcd2c0c2101ac2896f779efd8ddd1272fac20125522d9a1528c21949783fe87046f15aef2088c6abcc0aeaa4f446583 SHA512 1f854a03fb58b82baf9ba5be6750c0a043c9d1460e75d775d2ae1acca1574927b5da25270247464ace182b7e2e46d3e447e3f36d345e5da957905b7ddebed14b
|
||||
DIST moor-2.6.1.tar.gz 3023891 BLAKE2B 977abc18ac7fd12fffbdb8ad93bf19531df0ea00b3ab51dce092d4879f67b5e79f1ca556393d06f71ad020b3978092ec6141acefc3aa67c71af7ccccc681d60f SHA512 e80c4cdefdc1a11d219d2962f5849b337794fae3201da2ae382b8a7fc39c7ba3674760c73ab8b8a8acd289eaf6f62c72a559a8624483cbce6836f2a75ecf92c7
|
||||
DIST moor-2.8.1-deps.tar.xz 1461024 BLAKE2B bcdccd79020a6c461ccc81a4e65af3d7efcd2c0c2101ac2896f779efd8ddd1272fac20125522d9a1528c21949783fe87046f15aef2088c6abcc0aeaa4f446583 SHA512 1f854a03fb58b82baf9ba5be6750c0a043c9d1460e75d775d2ae1acca1574927b5da25270247464ace182b7e2e46d3e447e3f36d345e5da957905b7ddebed14b
|
||||
DIST moor-2.8.1.tar.gz 3026184 BLAKE2B 18de7768847bc6c4c9f76dde14b3ed0e75aea620d85e27c14a015f05a52c632ce5f5980a6d287b4717219b4ae06288678b9b5bd0631a73938a0bf6b9e542f191 SHA512 499335bede5c943326d6569482d541afe74618bd8b83c2c845898431748dd943a8a7656280089b9aa19a144fb8d459f2a7b1151cbd496e1501f9277a747ecb61
|
||||
|
||||
57
sys-apps/moor/moor-2.8.1.ebuild
Normal file
57
sys-apps/moor/moor-2.8.1.ebuild
Normal file
@ -0,0 +1,57 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-env go-module eapi9-ver
|
||||
|
||||
DESCRIPTION="Pager designed to do the right thing without any configuration"
|
||||
HOMEPAGE="https://github.com/walles/moor"
|
||||
SRC_URI="https://github.com/walles/moor/archive/refs/tags/v${PV}.tar.gz -> moor-${PV}.tar.gz"
|
||||
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/moor/moor-${PV}-deps.tar.xz"
|
||||
|
||||
LICENSE="BSD-2 BSD MIT"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
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/moor/blob/master/build.sh#L28
|
||||
ego build -ldflags="-w -X main.versionString=${PV}" -o moor ./cmd/moor
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# From test.sh (we don't run that because it has some linting etc)
|
||||
ego test -timeout 20s ./...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin moor
|
||||
doman moor.1
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ver_replacing -lt 2 ; then
|
||||
ewarn "moar has been renamed to moor, please update any scripts."
|
||||
fi
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user