app-emulation/rars - 1.6 (guru)

Search

Install

Install this version:

emerge -a =app-emulation/rars-1.6

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-emulation/rars-1.6

Or alternatively:

emerge --autounmask-write -a =app-emulation/rars-1.6

Package Information

Description:
RARS -- RISC-V Assembler and Runtime Simulator
Homepage:
https://github.com/TheThirdOne/rars
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.6 8 ~amd64 0
View Raw Ebuild
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

JAVA_PKG_IUSE="doc source test"

inherit java-pkg-2

jsoft_hash="75c3a5d1ab1322ce4dde0b5994d6f9f6ff820529"

DESCRIPTION="RARS -- RISC-V Assembler and Runtime Simulator"
HOMEPAGE="https://github.com/TheThirdOne/rars"
SRC_URI="
	https://github.com/TheThirdOne/rars/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
	https://github.com/TheThirdOne/JSoftFloat/archive/${jsoft_hash}.tar.gz -> JSoftFloat-${jsoft_hash}.gh.tar.gz
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND=">=virtual/jre-1.8:*"
DEPEND=">=virtual/jdk-1.8:*"

src_unpack() {
	default
	mv "${WORKDIR}/JSoftFloat-${jsoft_hash}" "${S}/src/jsoftfloat"
}

src_compile() {
	# Using the build-jar.sh script
	cd "${S}"
	mkdir -p build
	find src -name "*.java" | xargs javac -d build
	find src -type f -not -name "*.java" -exec cp --parents {} build \;
	cp -rf build/src/* build
	rm -r build/src
	cp README.md License.txt build
	cd build
	jar cfm ../rars.jar ./META-INF/MANIFEST.MF *
}

src_install() {
	java-pkg_dojar "${S}/rars.jar"
	mkdir -p "${D}/usr/bin"
	echo "#!/bin/bash" > "${D}/usr/bin/rars"
	echo "java -jar /usr/share/rars/lib/rars.jar" >> "${D}/usr/bin/rars"
	chmod 755 "${D}/usr/bin/rars"
}

Inherited Eclasses

Dependencies

DEPEND

>=virtual/jdk-1.8:*

RDEPEND

>=virtual/jre-1.8:*

Manifest for 1.6

Type File Size Source URLs
DIST JSoftFloat-75c3a5d1ab1322ce4dde0b5994d6f9f6ff820529.gh.tar.gz 8612 bytes https://github.com/TheThirdOne/JSoftFloat/archive/75c3a5d1ab1322ce4dde0b5994d6f9f6ff820529.tar.gz
DIST rars-1.6.gh.tar.gz 1596110 bytes https://github.com/TheThirdOne/rars/archive/refs/tags/v1.6.tar.gz