Install this version:
emerge -a =sci-electronics/rars-1.6
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-electronics/rars-1.6
Or alternatively:
emerge --autounmask-write -a =sci-electronics/rars-1.6
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
#Handle version suffixes
if [[ ${PV} == *_p* ]]; then
MY_PV=""
JAR=""
else
MY_PV="v${PV}"
JAR="rars${PV/./_}.jar"
fi
DESCRIPTION="RISC-V Assembler and Runtime Simulator "
HOMEPAGE="https://github.com/TheThirdOne/rars"
SRC_URI="https://github.com/TheThirdOne/${PN}/releases/download/${MY_PV}/${JAR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
virtual/jre
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_unpack() {
mkdir ${S}
cp "${DISTDIR}/${JAR}" ${S}
}
src_install() {
# Some setup variables
INSTALLDIR="/opt/${PN}"
# Setup and install wrapper script
cp "${FILESDIR}/wrapper.sh" "${S}"
sed -i -e "s|%%INSTALLDIR%%|${INSTALLDIR}|" "${S}/wrapper.sh" || die "Failed setting up wrapper"
sed -i -e "s|%%JAR%%|${JAR}|" "${S}/wrapper.sh" || die "Failed setting up wrapper"
newbin "${S}/wrapper.sh" ${PN}
# Install main files
insinto "${INSTALLDIR}"
doins "${S}/${JAR}"
## Setup and install desktop files
domenu "${FILESDIR}/rars.desktop"
doicon -s 128 "${FILESDIR/rars.png}"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | rars1_6.jar | 1860244 bytes | https://github.com/TheThirdOne/rars/releases/download/v1.6/rars1_6.jar |