From 67203100706444ecb817d995013d77f21483080a Mon Sep 17 00:00:00 2001 From: Richard-Rogalski Date: Sun, 1 Sep 2024 14:37:24 -0500 Subject: [PATCH] app-emulation/box64: add versions 0.3.0 and 9999 Signed-off-by: Richard Rogalski --- app-emulation/box64/Manifest | 1 + app-emulation/box64/box64-0.2.2.ebuild | 2 -- app-emulation/box64/box64-0.3.0.ebuild | 41 ++++++++++++++++++++++++++ app-emulation/box64/box64-9999.ebuild | 41 ++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 app-emulation/box64/box64-0.3.0.ebuild create mode 100644 app-emulation/box64/box64-9999.ebuild diff --git a/app-emulation/box64/Manifest b/app-emulation/box64/Manifest index ab68231378..c55f258493 100644 --- a/app-emulation/box64/Manifest +++ b/app-emulation/box64/Manifest @@ -1 +1,2 @@ DIST box64-0.2.2.tar.gz 3359829 BLAKE2B 52e4be1daadaffa16ed494d06441252dc27e68a82dbe13b1f3b0deeac59cc91a6f3c23e52fa9a574e5a1475fd38c8e41f05c3349b501cc1c6f338e70c7ad5c50 SHA512 3213e112aad44118209733960523d459bf74a07b7a1cc1b1b86d5938af2052fc298c8d2b28237cd7186751bdfcf791741a82fdf461c02b58f7e98461b794ef95 +DIST box64-0.3.0.tar.gz 13546774 BLAKE2B 143d25bb15af0296f750f7f74a4ea1146624a95fdc61a5f5b52d57af64d2be77d43cac5ad1946dc9d382a1c5076d9fc27f1ca88d4145e93bfcf2037170349dee SHA512 1ab9a329fa32dfb0ce4c6d3280b2ebc24158d46d583feeafd5efcce0d3d43c5cdeec165e0fd632e53ba8d7d6188978ed4a59151b9228d4c7fd7ec01e25c1eb58 diff --git a/app-emulation/box64/box64-0.2.2.ebuild b/app-emulation/box64/box64-0.2.2.ebuild index ecbd4341bf..1dcaf87e14 100644 --- a/app-emulation/box64/box64-0.2.2.ebuild +++ b/app-emulation/box64/box64-0.2.2.ebuild @@ -15,8 +15,6 @@ KEYWORDS="~arm64 ~ppc64" IUSE="aot" REQUIRED_USE="aot? ( arm64 )" -RDEPEND="${DEPEND}" - src_configure() { local -a mycmakeargs=( -DNOGIT=1 diff --git a/app-emulation/box64/box64-0.3.0.ebuild b/app-emulation/box64/box64-0.3.0.ebuild new file mode 100644 index 0000000000..e6b02b1257 --- /dev/null +++ b/app-emulation/box64/box64-0.3.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake optfeature + +DESCRIPTION="Linux Userspace x86_64 Emulator with a twist" +HOMEPAGE="https://box86.org" +SRC_URI="https://github.com/ptitSeb/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~arm64 ~ppc64" +IUSE="static" + +src_configure() { + local -a mycmakeargs=( + -DNOGIT=1 + -DARM_DYNAREC=0 + -DRV64_DYNAREC=0 + ) + + (use arm || use arm64) && mycmakeargs+=( -DARM64=1 -DARM_DYNAREC=1 ) + use riscv && mycmakeargs+=( -DRV64=1 -DRV64_DYNAREC=1 ) + use ppc64 && mycmakeargs+=( -DPPC64LE=1 ) + use loong && mycmakeargs+=( -DLARCH64=1 ) + use amd64 && mycmakeargs+=( -DLD80BITS=1 -DNOALIGN=1 ) + use static && mycmakeargs+=( -DSTATICBUILD=1 ) + + cmake_src_configure +} + +src_install() { + dostrip -x "usr/lib/x86_64-linux-gnu/*" +} + +pkg_postinst() { + optfeature "OpenGL for GLES devices" \ + "media-libs/gl4es" +} diff --git a/app-emulation/box64/box64-9999.ebuild b/app-emulation/box64/box64-9999.ebuild new file mode 100644 index 0000000000..91c4682ffd --- /dev/null +++ b/app-emulation/box64/box64-9999.ebuild @@ -0,0 +1,41 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake optfeature git-r3 + +DESCRIPTION="Linux Userspace x86_64 Emulator with a twist" +HOMEPAGE="https://box86.org" +EGIT_REPO_URI="https://github.com/ptitSeb/${PN}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="static" + +src_configure() { + local -a mycmakeargs=( + -DNOGIT=0 + -DARM_DYNAREC=0 + -DRV64_DYNAREC=0 + ) + + (use arm || use arm64) && mycmakeargs+=( -DARM64=1 -DARM_DYNAREC=1 ) + use riscv && mycmakeargs+=( -DRV64=1 -DRV64_DYNAREC=1 ) + use ppc64 && mycmakeargs+=( -DPPC64LE=1 ) + use loong && mycmakeargs+=( -DLARCH64=1 ) + use amd64 && mycmakeargs+=( -DLD80BITS=1 -DNOALIGN=1 ) + use static && mycmakeargs+=( -DSTATICBUILD=1 ) + + cmake_src_configure +} + +src_install() { + dostrip -x "usr/lib/x86_64-linux-gnu/*" +} + +pkg_postinst() { + optfeature "OpenGL for GLES devices" \ + "media-libs/gl4es" +}