blob: 053302e6b34029f518992508991846d33235cbdd (
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="8"
inherit 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
}
|