commit: c8d34fb711379c926ae5cedfaa9807e438ee340f Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Jun 16 06:35:26 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Jun 16 06:35:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8d34fb7
sys-apps/moar: add 1.31.10 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/moar/Manifest | 2 ++ sys-apps/moar/moar-1.31.10.ebuild | 59 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/sys-apps/moar/Manifest b/sys-apps/moar/Manifest index afcfe3f345c8..f8edbfecfd0d 100644 --- a/sys-apps/moar/Manifest +++ b/sys-apps/moar/Manifest @@ -1,3 +1,5 @@ +DIST moar-1.31.10-deps.tar.xz 1448708 BLAKE2B b425797d45a1895679ee8f6735ef2fcce44d63b42da59f659383878ae961d68034f840cdaa24ecad6643714377c44f65a1520849dab215c0d2dad92faea18076 SHA512 9f7ec9272f4bec3567c3b69961c4c5858ebc826623e8b99d07b2d9e56567938bb9c1e108ba44ad933892a7c350341e71789bf9a9737adb14ee5edb343c2b3914 +DIST moar-1.31.10.tar.gz 2848391 BLAKE2B db3d8c9ef5acde14b0c0a38429c4e4ce82e0a3f6bd040d47b2ed7c41f57befec57f5948aed9cd9cffb86353cf22f7c54167d3156d7fb34805705e39f04d83f02 SHA512 7d1c3579e1991af54b3f65cdb73dbfa44fd75757813b09901723a395a4944cc3b47935efa0b54968c929da48b1a543bfd67ff7a28bdd281b1586cd017ea99195 DIST moar-1.31.4-deps.tar.xz 1359500 BLAKE2B 302b176f2b22878a6a1eb0e5d57eeb83adf0b3dd790a070d969b4b840741700e4143d9abd7138d556cb7fa04b72412c52e8d4560cb8f925f5e6625633cbd1d4e SHA512 317df040f8541548bfec2d27557cf34a547cea60a3a921860fa50e099c792fd4a2b6822fadc7b0b4d395f7d7f338bc7cb39ef2f267a8a4df27e4d554a8b34b36 DIST moar-1.31.4.tar.gz 2848133 BLAKE2B 2818fc907e1ffdc8a1d7c04858fbe5c3d466b3eb62d2ad5f53baa8b556e206b65d6a953314f2cd4620175a7b1b6b849fdad1b4faf8c32b3afc4f5d6efc2a0d2c SHA512 617169d2973f53406c7e6c0d2b34e379fc26b50645cdb0560ffc4b3adf35df6ca6dadbd8d52fa5f3952dd6198cc97099a76803745ff0a5c6f5380e778b6338fa DIST moar-1.31.5-deps.tar.xz 1359500 BLAKE2B 302b176f2b22878a6a1eb0e5d57eeb83adf0b3dd790a070d969b4b840741700e4143d9abd7138d556cb7fa04b72412c52e8d4560cb8f925f5e6625633cbd1d4e SHA512 317df040f8541548bfec2d27557cf34a547cea60a3a921860fa50e099c792fd4a2b6822fadc7b0b4d395f7d7f338bc7cb39ef2f267a8a4df27e4d554a8b34b36 diff --git a/sys-apps/moar/moar-1.31.10.ebuild b/sys-apps/moar/moar-1.31.10.ebuild new file mode 100644 index 000000000000..c96ca6da2d58 --- /dev/null +++ b/sys-apps/moar/moar-1.31.10.ebuild @@ -0,0 +1,59 @@ +# 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" +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 +}
