Files
gentoo/dev-build/samurai/samurai-1.3.ebuild
Spencer Pavkovic 1b8d336c1d dev-build/samurai: add 1.3
Signed-off-by: Spencer Pavkovic <smp@nandre.com>
Part-of: https://github.com/gentoo/gentoo/pull/46113
Closes: https://github.com/gentoo/gentoo/pull/46113
Signed-off-by: Sam James <sam@gentoo.org>
2026-04-16 16:30:21 +01:00

29 lines
692 B
Bash

# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="ninja-compatible build tool written in C"
HOMEPAGE="https://github.com/michaelforney/samurai"
if [[ "${PV}" == *9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/michaelforney/samurai.git"
else
SRC_URI="https://github.com/michaelforney/samurai/releases/download/${PV}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi
LICENSE="ISC Apache-2.0 MIT"
SLOT="0"
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
dodoc README.md
}