From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B75B41590AA for ; Tue, 3 Oct 2023 11:52:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C82692BC019; Tue, 3 Oct 2023 11:52:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B287E2BC019 for ; Tue, 3 Oct 2023 11:52:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 70337335C7A for ; Tue, 3 Oct 2023 11:52:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B9C47952 for ; Tue, 3 Oct 2023 11:52:40 +0000 (UTC) From: "Henri Gasc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Henri Gasc" Message-ID: <1696333949.db511b4dee4db8b13511adf5821002369b485ea3.gasc@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-emulation/rars/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-emulation/rars/Manifest app-emulation/rars/metadata.xml app-emulation/rars/rars-1.6.ebuild X-VCS-Directories: app-emulation/rars/ X-VCS-Committer: gasc X-VCS-Committer-Name: Henri Gasc X-VCS-Revision: db511b4dee4db8b13511adf5821002369b485ea3 X-VCS-Branch: dev Date: Tue, 3 Oct 2023 11:52:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d0a4f6a9-08bb-4fae-bc9c-e9fbb7afdbda X-Archives-Hash: c559a48550933253cad0d3b012575e64 commit: db511b4dee4db8b13511adf5821002369b485ea3 Author: Henri Gasc eurecom fr> AuthorDate: Tue Oct 3 11:51:50 2023 +0000 Commit: Henri Gasc eurecom fr> CommitDate: Tue Oct 3 11:52:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db511b4d app-emulation/rars: new package, add 1.6 Signed-off-by: Henri Gasc eurecom.fr> app-emulation/rars/Manifest | 2 ++ app-emulation/rars/metadata.xml | 11 +++++++ app-emulation/rars/rars-1.6.ebuild | 59 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) diff --git a/app-emulation/rars/Manifest b/app-emulation/rars/Manifest new file mode 100644 index 0000000000..5d40f7a53c --- /dev/null +++ b/app-emulation/rars/Manifest @@ -0,0 +1,2 @@ +DIST JSoftFloat-75c3a5d.gh.tar.gz 8612 BLAKE2B 214479edfcd3bd8b57908d201838cfaf37b9bf8f6cae69191a920fd6b9c197089b4e370f77c10a888117cad2baa189608119b3fbef4d66021dfe12d9fcd22820 SHA512 2fefce28475cdfbf7b7331e79b5c263021a31b4411803ae2bdd435dbfc2a3503d8711b56502d1cf2aadc52bc5bd7af80cbd33fb6cc077ddbb222bfe18cb19208 +DIST rars-1.6.gh.tar.gz 1596110 BLAKE2B dd30b5eca670741cf635418b149ec5fd24432bb10aede70e91b8f5d3469fe839207ef0d2c5f9e91fce3ff638b58e533528413330a46c80464060a5e6c5b2903d SHA512 543e4c16a023b25e330286315f095f2311dc4255c906dfbfe39cadd96cdc1856612ace805cfedf4a155e4fcd70ddea51493c25bf3cb30936d8b1aea4ece226d3 diff --git a/app-emulation/rars/metadata.xml b/app-emulation/rars/metadata.xml new file mode 100644 index 0000000000..cc12615f14 --- /dev/null +++ b/app-emulation/rars/metadata.xml @@ -0,0 +1,11 @@ + + + + + gasc@eurecom.fr + Gasc Henri + + + TheThirdOne/rars + + diff --git a/app-emulation/rars/rars-1.6.ebuild b/app-emulation/rars/rars-1.6.ebuild new file mode 100644 index 0000000000..ca1429e680 --- /dev/null +++ b/app-emulation/rars/rars-1.6.ebuild @@ -0,0 +1,59 @@ +# Copyright 2023 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 java-pkg-simple + +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-75c3a5d.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +S="${WORKDIR}/${P}" + +CP_DEPEND="" + +RDEPEND=">=virtual/jre-1.8:* + ${CP_DEPEND}" +DEPEND=">=virtual/jdk-1.8:* + ${CP_DEPEND}" + +src_unpack() { + default + mv "${WORKDIR}/JSoftFloat-${jsoft_hash}" "${S}/src/jsoftfloat" +} + +src_prepare() { + default + java-pkg_clean +} + +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" +}