mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
@@ -1,3 +1,5 @@
|
||||
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.4.1-deps.tar.xz 1461024 BLAKE2B bcdccd79020a6c461ccc81a4e65af3d7efcd2c0c2101ac2896f779efd8ddd1272fac20125522d9a1528c21949783fe87046f15aef2088c6abcc0aeaa4f446583 SHA512 1f854a03fb58b82baf9ba5be6750c0a043c9d1460e75d775d2ae1acca1574927b5da25270247464ace182b7e2e46d3e447e3f36d345e5da957905b7ddebed14b
|
||||
DIST moor-2.4.1.tar.gz 3016333 BLAKE2B dbeae7a1f2d65f83e88c677490332a4c8480367c9934acd3b0277abc495905428934281faf03ab060f1abe0068dfb51d3d9c51121013ff40efa938421ec2f9c7 SHA512 3dcc3b48401853791ad6c38e2fb249c0dd45cd96b33b2e4bc765455b358d658f06ba9732214a778370cc33949d48fe7806445354913df23225d32c9657dd1fd0
|
||||
DIST moor-2.9.1-deps.tar.xz 1498364 BLAKE2B f12ea0bb6c4748398e18c741ece3fb8c66905096f62813ff9cf44e27b5c472fb56bd93e06fae8cd7802424707902d5b4cd7852fd4b3819cbe812d9e691aa2bac SHA512 84c491303b8a19d9fb086e9abfbe1f1b1c776877ed1a99ac1328152f62049fe7282ce436758adcf2ef07749c06386b7e7d6d75a84d977985c5a5772d695016df
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
# 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"
|
||||
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