summaryrefslogtreecommitdiff
blob: 7da7a735f0f39537e70d204175a98e5c06e6a62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
inherit eutils autotools

DESCRIPTION="The RISC-V ISA Simulator"
HOMEPAGE="https://github.com/riscv/riscv-isa-sim/"
SRC_URI="https://github.com/riscv/riscv-isa-sim/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE=""

DEPEND=""

S="${WORKDIR}/riscv-isa-sim-${PV}"
src_prepare() {
	default
	sed -i -e "/install_libs_dir/s:/lib:/$(get_libdir):g" Makefile.in || die
	sed -i -e "/<string/a#include <stdexcept>" \
		fesvr/dtm.cc riscv/devices.h || die
	eautoreconf
}