public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: app-emulation/box64/
@ 2023-07-16  6:18 Haelwenn Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Haelwenn Monnier @ 2023-07-16  6:18 UTC (permalink / raw
  To: gentoo-commits

commit:     2102e708b159171ea2c137dff6faf94cca79d1f2
Author:     Richard-Rogalski <rrogalski <AT> tutanota <DOT> com>
AuthorDate: Fri Jul 14 16:37:38 2023 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Jul 14 16:41:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2102e708

app-emulation/box64: new package, add 0.2.2

Signed-off-by: Richard-Rogalski <rrogalski <AT> tutanota.com>

 app-emulation/box64/Manifest           |  1 +
 app-emulation/box64/box64-0.2.2.ebuild | 39 ++++++++++++++++++++++++++++++++++
 app-emulation/box64/metadata.xml       | 15 +++++++++++++
 3 files changed, 55 insertions(+)

diff --git a/app-emulation/box64/Manifest b/app-emulation/box64/Manifest
new file mode 100644
index 000000000..ab6823137
--- /dev/null
+++ b/app-emulation/box64/Manifest
@@ -0,0 +1 @@
+DIST box64-0.2.2.tar.gz 3359829 BLAKE2B 52e4be1daadaffa16ed494d06441252dc27e68a82dbe13b1f3b0deeac59cc91a6f3c23e52fa9a574e5a1475fd38c8e41f05c3349b501cc1c6f338e70c7ad5c50 SHA512 3213e112aad44118209733960523d459bf74a07b7a1cc1b1b86d5938af2052fc298c8d2b28237cd7186751bdfcf791741a82fdf461c02b58f7e98461b794ef95

diff --git a/app-emulation/box64/box64-0.2.2.ebuild b/app-emulation/box64/box64-0.2.2.ebuild
new file mode 100644
index 000000000..cab0a0b2a
--- /dev/null
+++ b/app-emulation/box64/box64-0.2.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2023 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="aot"
+REQUIRED_USE="aot? ( arm64 )"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_configure() {
+	local -a mycmakeargs=(
+		-DNOGIT=1
+		-DARM_DYNAREC=$(usex jit)
+	)
+
+	use ppc64 && mycmakeargs+=( -DPPC64LE=1 )
+	use riscv && mycmakeargs+=( -DRV64=1 )
+	use loong && mycmakeargs+=( -DLARCH64=1 )
+	use amd64 && mycmakeargs+=( -DLD80BITS=1 -DNOALIGN=1 )
+
+	cmake_src_configure
+}
+
+pkg_postinst() {
+	optfeature "OpenGL for GLES devices" \
+		"media-libs/gl4es"
+}

diff --git a/app-emulation/box64/metadata.xml b/app-emulation/box64/metadata.xml
new file mode 100644
index 000000000..a14dd74f9
--- /dev/null
+++ b/app-emulation/box64/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>rrogalski@tutanota.com</email>
+		<name>Richard Rogalski</name>
+	</maintainer>
+
+	<use>
+		<flag name="aot">Enables the dynamic ahead of time recompiler for increased performance on ARM</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">ptitSeb/box64</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/proj/guru:master commit in: app-emulation/box64/
@ 2023-07-16  6:18 Haelwenn Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Haelwenn Monnier @ 2023-07-16  6:18 UTC (permalink / raw
  To: gentoo-commits

commit:     f8032a02d231d1a71643534c633a61213927f1ed
Author:     Richard-Rogalski <rrogalski <AT> tutanota <DOT> com>
AuthorDate: Fri Jul 14 17:59:51 2023 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Jul 14 18:01:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f8032a02

app-emulation/box64: fix wrong USE flag in conditional

Had a typo in src_configure

Signed-off-by: Richard-Rogalski <rrogalski <AT> tutanota.com>

 app-emulation/box64/box64-0.2.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-emulation/box64/box64-0.2.2.ebuild b/app-emulation/box64/box64-0.2.2.ebuild
index cab0a0b2a..bf960ad1b 100644
--- a/app-emulation/box64/box64-0.2.2.ebuild
+++ b/app-emulation/box64/box64-0.2.2.ebuild
@@ -22,7 +22,7 @@ BDEPEND=""
 src_configure() {
 	local -a mycmakeargs=(
 		-DNOGIT=1
-		-DARM_DYNAREC=$(usex jit)
+		-DARM_DYNAREC=$(usex aot)
 	)
 
 	use ppc64 && mycmakeargs+=( -DPPC64LE=1 )


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/proj/guru:master commit in: app-emulation/box64/
@ 2024-09-02  9:58 David Roman
  0 siblings, 0 replies; 5+ messages in thread
From: David Roman @ 2024-09-02  9:58 UTC (permalink / raw
  To: gentoo-commits

commit:     67203100706444ecb817d995013d77f21483080a
Author:     Richard-Rogalski <rrogalski <AT> tutanota <DOT> com>
AuthorDate: Sun Sep  1 19:37:24 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Sep  1 20:36:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=67203100

app-emulation/box64: add versions 0.3.0 and 9999

Signed-off-by: Richard Rogalski <rrogalski <AT> tutanota.com>

 app-emulation/box64/Manifest                       |  1 +
 app-emulation/box64/box64-0.2.2.ebuild             |  2 --
 .../{box64-0.2.2.ebuild => box64-0.3.0.ebuild}     | 18 +++++++++------
 .../{box64-0.2.2.ebuild => box64-9999.ebuild}      | 26 +++++++++++++---------
 4 files changed, 27 insertions(+), 20 deletions(-)

diff --git a/app-emulation/box64/Manifest b/app-emulation/box64/Manifest
index ab6823137..c55f25849 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 ecbd4341b..1dcaf87e1 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.2.2.ebuild b/app-emulation/box64/box64-0.3.0.ebuild
similarity index 66%
copy from app-emulation/box64/box64-0.2.2.ebuild
copy to app-emulation/box64/box64-0.3.0.ebuild
index ecbd4341b..e6b02b125 100644
--- a/app-emulation/box64/box64-0.2.2.ebuild
+++ b/app-emulation/box64/box64-0.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -12,25 +12,29 @@ SRC_URI="https://github.com/ptitSeb/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~arm64 ~ppc64"
-IUSE="aot"
-REQUIRED_USE="aot? ( arm64 )"
-
-RDEPEND="${DEPEND}"
+IUSE="static"
 
 src_configure() {
 	local -a mycmakeargs=(
 		-DNOGIT=1
-		-DARM_DYNAREC=$(usex aot)
+		-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 riscv && mycmakeargs+=( -DRV64=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-0.2.2.ebuild b/app-emulation/box64/box64-9999.ebuild
similarity index 53%
copy from app-emulation/box64/box64-0.2.2.ebuild
copy to app-emulation/box64/box64-9999.ebuild
index ecbd4341b..91c4682ff 100644
--- a/app-emulation/box64/box64-0.2.2.ebuild
+++ b/app-emulation/box64/box64-9999.ebuild
@@ -1,36 +1,40 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit cmake optfeature
+inherit cmake optfeature git-r3
 
 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"
+EGIT_REPO_URI="https://github.com/ptitSeb/${PN}"
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~arm64 ~ppc64"
-IUSE="aot"
-REQUIRED_USE="aot? ( arm64 )"
-
-RDEPEND="${DEPEND}"
+KEYWORDS=""
+IUSE="static"
 
 src_configure() {
 	local -a mycmakeargs=(
-		-DNOGIT=1
-		-DARM_DYNAREC=$(usex aot)
+		-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 riscv && mycmakeargs+=( -DRV64=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"


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/proj/guru:master commit in: app-emulation/box64/
@ 2024-09-03 10:53 David Roman
  0 siblings, 0 replies; 5+ messages in thread
From: David Roman @ 2024-09-03 10:53 UTC (permalink / raw
  To: gentoo-commits

commit:     880eda7f6da058451b191f7c29978716ff609e57
Author:     Richard-Rogalski <rrogalski <AT> tutanota <DOT> com>
AuthorDate: Mon Sep  2 20:19:34 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Sep  2 20:19:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=880eda7f

app-emulation/box64: Add QA checks

Signed-off-by: Richard Rogalski <rrogalski <AT> tutanota.com>

 app-emulation/box64/box64-0.2.2.ebuild | 12 ++++++++++++
 app-emulation/box64/box64-0.3.0.ebuild | 12 ++++++++++++
 app-emulation/box64/box64-9999.ebuild  | 18 ++++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/app-emulation/box64/box64-0.2.2.ebuild b/app-emulation/box64/box64-0.2.2.ebuild
index 1dcaf87e1..71cef82cd 100644
--- a/app-emulation/box64/box64-0.2.2.ebuild
+++ b/app-emulation/box64/box64-0.2.2.ebuild
@@ -15,6 +15,18 @@ KEYWORDS="~arm64 ~ppc64"
 IUSE="aot"
 REQUIRED_USE="aot? ( arm64 )"
 
+pkg_setup() {
+	if [[ $(tc-endian) == big ]]; then
+		eerror "box86/box64 sadly does not support big endian systems."
+		die "big endian not supported!"
+	fi
+
+	if [[ ${CHOST} != *gnu* || ${CHOST} != *linux* ]]; then
+		eerror "box86/64 requires a glibc and a linux system. Musl support is possible, upstream welcomes PRs!"
+		die "Not a GNU+Linux system"
+	fi
+}
+
 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
index e6b02b125..b882fa8dc 100644
--- a/app-emulation/box64/box64-0.3.0.ebuild
+++ b/app-emulation/box64/box64-0.3.0.ebuild
@@ -14,6 +14,18 @@ SLOT="0"
 KEYWORDS="~arm64 ~ppc64"
 IUSE="static"
 
+pkg_setup() {
+	if [[ $(tc-endian) == big ]]; then
+		eerror "box86/box64 sadly does not support big endian systems."
+		die "big endian not supported!"
+	fi
+
+	if [[ ${CHOST} != *gnu* || ${CHOST} != *linux* ]]; then
+		eerror "box86/64 requires a glibc and a linux system. Musl support is possible, upstream welcomes PRs!"
+		die "Not a GNU+Linux system"
+	fi
+}
+
 src_configure() {
 	local -a mycmakeargs=(
 		-DNOGIT=1

diff --git a/app-emulation/box64/box64-9999.ebuild b/app-emulation/box64/box64-9999.ebuild
index 91c4682ff..6d30a199a 100644
--- a/app-emulation/box64/box64-9999.ebuild
+++ b/app-emulation/box64/box64-9999.ebuild
@@ -14,6 +14,24 @@ SLOT="0"
 KEYWORDS=""
 IUSE="static"
 
+pkg_setup() {
+	if [[ $(tc-endian) == big ]]; then
+		eerror "box86/box64 sadly does not support big endian systems."
+		die "big endian not supported!"
+	fi
+
+	if [[ ${CHOST} != *linux* ]]; then
+		eerror "box86/64 requires a linux system."
+		die "Not a GNU+Linux system"
+	fi
+
+	if [[ ${CHOST} != *gnu* ]]; then #in case musl support is added in master branch
+		ewarn ""
+		ewarn "box86/64 will likely not build or run on a non-glibc system."
+		ewarn ""
+	fi
+}
+
 src_configure() {
 	local -a mycmakeargs=(
 		-DNOGIT=0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/proj/guru:master commit in: app-emulation/box64/
@ 2024-09-03 10:53 David Roman
  0 siblings, 0 replies; 5+ messages in thread
From: David Roman @ 2024-09-03 10:53 UTC (permalink / raw
  To: gentoo-commits

commit:     3520bc4a9bf43755ae18ed68fde94d01316c9726
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Mon Sep  2 20:46:15 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Sep  2 20:46:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3520bc4a

app-emulation/box64: directly inherit used toolchain-funcs

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 app-emulation/box64/box64-0.2.2.ebuild | 2 +-
 app-emulation/box64/box64-0.3.0.ebuild | 2 +-
 app-emulation/box64/box64-9999.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-emulation/box64/box64-0.2.2.ebuild b/app-emulation/box64/box64-0.2.2.ebuild
index 71cef82cd..d90d36cab 100644
--- a/app-emulation/box64/box64-0.2.2.ebuild
+++ b/app-emulation/box64/box64-0.2.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake optfeature
+inherit cmake toolchain-funcs optfeature
 
 DESCRIPTION="Linux Userspace x86_64 Emulator with a twist"
 HOMEPAGE="https://box86.org"

diff --git a/app-emulation/box64/box64-0.3.0.ebuild b/app-emulation/box64/box64-0.3.0.ebuild
index b882fa8dc..dfe4a67d8 100644
--- a/app-emulation/box64/box64-0.3.0.ebuild
+++ b/app-emulation/box64/box64-0.3.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake optfeature
+inherit cmake toolchain-funcs optfeature
 
 DESCRIPTION="Linux Userspace x86_64 Emulator with a twist"
 HOMEPAGE="https://box86.org"

diff --git a/app-emulation/box64/box64-9999.ebuild b/app-emulation/box64/box64-9999.ebuild
index 6d30a199a..02e652d71 100644
--- a/app-emulation/box64/box64-9999.ebuild
+++ b/app-emulation/box64/box64-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake optfeature git-r3
+inherit cmake git-r3 toolchain-funcs optfeature
 
 DESCRIPTION="Linux Userspace x86_64 Emulator with a twist"
 HOMEPAGE="https://box86.org"


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-09-03 10:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-16  6:18 [gentoo-commits] repo/proj/guru:master commit in: app-emulation/box64/ Haelwenn Monnier
  -- strict thread matches above, loose matches on Subject: below --
2024-09-03 10:53 David Roman
2024-09-03 10:53 David Roman
2024-09-02  9:58 David Roman
2023-07-16  6:18 Haelwenn Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox