mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
@@ -1,4 +1,6 @@
|
||||
DIST moor-2.12.0-deps.tar.xz 1592052 BLAKE2B e729b939b3fb3cd9634ba405f2ffdf6c18c81295695ab88a0fffd95de0282f20474a468acfa99117ffca842da45fe2b51585418d8604edcbd1f34f40262efc95 SHA512 3e066025c49a273bff97e389997a437afce671c63e3825bc9166f1661d0b47a777fccb711e2e358b632e2a9484464f7fb9fe6ccf31cb54c518abea2c285e1eb4
|
||||
DIST moor-2.12.0.tar.gz 5316994 BLAKE2B 4194f5747ce55cd89e2592a0d6f07d96f187c9e3d9c0002f1417dcbbbbb2d9b6c6120a83ba216c856ab830910d0bd0024bb449d0abddec11e5466fac49dd77bf SHA512 0f6c9c24f4de6638338f59604c215addbfdd54ab90b73a8bd5a8c8fb037250c42869de6e04e80ec2c797fbcf808eef00367deb687f3dadc6dbefc231d8bfe392
|
||||
DIST moor-2.12.3-deps.tar.xz 1592052 BLAKE2B e729b939b3fb3cd9634ba405f2ffdf6c18c81295695ab88a0fffd95de0282f20474a468acfa99117ffca842da45fe2b51585418d8604edcbd1f34f40262efc95 SHA512 3e066025c49a273bff97e389997a437afce671c63e3825bc9166f1661d0b47a777fccb711e2e358b632e2a9484464f7fb9fe6ccf31cb54c518abea2c285e1eb4
|
||||
DIST moor-2.12.3.tar.gz 5320628 BLAKE2B f56274da1507c55a31310db684ed8dc544e0bfe5506eaf3a44db7f58246065d1586b326b78fb5e6a5ea9f7a9fe1b660b140dd34e219bff2242e3c00c46d818fc SHA512 d1d21b01bde48cec50c8cc4f09f029b49e30e0a492697419b7a875927a3a41f0104b9f5ecba9783fc8fcb207747ee11085c07b2c3934de2d798508f15c9defe5
|
||||
DIST moor-2.9.6-deps.tar.xz 1588880 BLAKE2B 1db3ce39036f396dc83a6cc8658f80f5033e5bee4299c2094e50eb5146695fc58a298258d2d01796559cd54a776b03aff5e41217f12cf913765f4a0d6a41db00 SHA512 4d151a5e480fc76f6c3f6dad5d657f23ca368484e163300b4fddb39ebd9ed8ec40227cf6328722dbef714ce6aef3452e67b589610b3ed13b82937be20ae32186
|
||||
DIST moor-2.9.6.tar.gz 5306891 BLAKE2B c2c25b9087c3ead44f0f728cae77bbe7436e6cc31c3a10824bd0f9fd1fbf83374b5696a1ddfbc037fda9fa531c69d8464ef04baa75f4660de53fa4c2d756350c SHA512 568fc160ae04f6492a5b7567afb02dbe99c5c0cb15027dac5ea2db2a4e35310fc4bb40a9cb8379eabf942e7ec6551bfc1cdddb679046f9cad7c67fc654acb6dd
|
||||
|
||||
66
sys-apps/moor/moor-2.12.3.ebuild
Normal file
66
sys-apps/moor/moor-2.12.3.ebuild
Normal file
@@ -0,0 +1,66 @@
|
||||
# Copyright 2023-2026 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 ISC MIT"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
|
||||
IUSE="test l10n_ru"
|
||||
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 use l10n_ru ; then
|
||||
ewarn "This package does not work out of the box with all Russian locales."
|
||||
ewarn "If using ru_RU.UTF-8, it will not startup. Please see bug #964663."
|
||||
fi
|
||||
|
||||
if ver_replacing -lt 2 ; then
|
||||
ewarn "moar has been renamed to moor, please update any scripts."
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user