app-emulation/box64: add versions 0.3.0 and 9999

Signed-off-by: Richard Rogalski <rrogalski@tutanota.com>
This commit is contained in:
Richard-Rogalski
2024-09-01 14:37:24 -05:00
parent a403b40882
commit 6720310070
4 changed files with 83 additions and 2 deletions

View File

@@ -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

View File

@@ -15,8 +15,6 @@ KEYWORDS="~arm64 ~ppc64"
IUSE="aot"
REQUIRED_USE="aot? ( arm64 )"
RDEPEND="${DEPEND}"
src_configure() {
local -a mycmakeargs=(
-DNOGIT=1

View File

@@ -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"
}

View File

@@ -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"
}