From 8b21b333b47aa122742dff4252990d4f8678e99a Mon Sep 17 00:00:00 2001 From: unlsycn Date: Mon, 11 Dec 2023 00:36:10 +0800 Subject: app-emulation/spike: fix spike-9999 Closes: https://github.com/gentoo/riscv/pull/10 Signed-off-by: Yixun Lan --- app-emulation/spike/spike-9999.ebuild | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/app-emulation/spike/spike-9999.ebuild b/app-emulation/spike/spike-9999.ebuild index 830475e..5743f06 100644 --- a/app-emulation/spike/spike-9999.ebuild +++ b/app-emulation/spike/spike-9999.ebuild @@ -1,21 +1,30 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="8" -inherit autotools git-r3 multilib +EAPI=8 DESCRIPTION="The RISC-V ISA Simulator" -HOMEPAGE="https://github.com/riscv/riscv-isa-sim/" -EGIT_REPO_URI="https://github.com/riscv-software-src/riscv-isa-sim" +HOMEPAGE="https://github.com/riscv-software-src/riscv-isa-sim" LICENSE="BSD" SLOT="0/${PV}" IUSE="" -DEPEND="" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/riscv-software-src/riscv-isa-sim.git" +else + SRC_URI="https://github.com/riscv-software-src/riscv-isa-sim/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + KEYWORDS="~amd64" +fi + +DEPEND="sys-apps/dtc" +RDEPEND="${DEPEND}" +BDEPEND="" src_prepare() { default - sed -i -e "/install_libs_dir/s:/lib:/$(get_libdir):g" Makefile.in || die - eautoreconf + + sed -i -e "/install_libs_dir/s:/lib:/$(get_libdir)/spike:g" Makefile.in || die } -- cgit v1.2.3-65-gdbad