diff options
Diffstat (limited to 'app-emulation/spike/spike-9999.ebuild')
-rw-r--r-- | app-emulation/spike/spike-9999.ebuild | 25 |
1 files 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 } |