commit:     6341eb8816bb2a96d0c8a6cb91f5ca29b249434a
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Wed Mar  5 16:23:40 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue May  6 07:48:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6341eb88

app-emulation/gxemul: add 0.6.3.1

Changes in top-down order:
- bump EAPI
- add public-domain LICENSE -- see LICENSE file
- adjust style
- make use of DOCS & HTML_DOCS
- remove generic die description
- move tc-export to src_configure
- introduce myconfargs
- introduce ${PN} to make code look more generic

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Closes: https://github.com/gentoo/gentoo/pull/40915
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-emulation/gxemul/Manifest              |  1 +
 app-emulation/gxemul/gxemul-0.6.3.1.ebuild | 49 ++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/app-emulation/gxemul/Manifest b/app-emulation/gxemul/Manifest
index 4d1ab5f52d49..b85825887857 100644
--- a/app-emulation/gxemul/Manifest
+++ b/app-emulation/gxemul/Manifest
@@ -1 +1,2 @@
 DIST gxemul-0.6.2.tar.gz 5897883 BLAKE2B 
9f5b76d955dc3e1a5b1623aaf491f18376456f33cfaa6a4c1633480980c35bb99172075135cfc1ca942ae3b0f34c4eb11c4aec4bc00272da8bb905176ddcea4a
 SHA512 
4f389c509f9ecf39603ceed50e899e2bee285d3fefac9b3214076115ee71b5a7a68d1d92690b6debc8de5cf5f0303da83b3cc921a5c0b5eb4c7ad89baa730b59
+DIST gxemul-0.6.3.1.tar.gz 6144125 BLAKE2B 
080f9c0d5ff333bdd782a44cd34abe6cb658efbeed8e68ea7d9f7c3323030b8755f0555cdedaf6531e7d5024f07474de9664ec8537f0b70beffac8ec95d4dd26
 SHA512 
b750a53c764245d2c02147beefdac4f44f1e6bad0f390a2300b3907b312d59a41fa8f6de612494627366f1787e49174acfc9113263901af878fab8e925b0645e

diff --git a/app-emulation/gxemul/gxemul-0.6.3.1.ebuild 
b/app-emulation/gxemul/gxemul-0.6.3.1.ebuild
new file mode 100644
index 000000000000..aeb15b0df272
--- /dev/null
+++ b/app-emulation/gxemul/gxemul-0.6.3.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="A Machine Emulator, Mainly emulates MIPS, but supports other CPU 
types"
+HOMEPAGE="http://gxemul.sourceforge.net/";
+SRC_URI="https://downloads.sourceforge.net/project/gxemul/GXemul/${PV}/${P}.tar.gz";
+
+LICENSE="BSD public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86"
+IUSE="debug X"
+
+RDEPEND="X? ( x11-libs/libX11 )"
+DEPEND="
+       ${RDEPEND}
+       X? ( x11-base/xorg-proto )
+"
+DOCS=( HISTORY README )
+HTML_DOCS=( doc/. )
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.6.0-gcc46.patch
+       "${FILESDIR}"/${PN}-0.6.0-no-doxygen.patch
+)
+
+src_prepare() {
+       default
+       sed -i configure -e 's|-O3||g' || die
+}
+
+src_configure() {
+       tc-export CC CXX
+       # no autotools
+       local myconfargs=(
+               --disable-valgrind
+               $(use debug && echo --debug)
+               $(use X || echo --disable-x)
+       )
+       ./configure "${myconfargs[@]}" || die
+}
+
+src_install() {
+       dobin ${PN}
+       doman man/${PN}.1
+       einstalldocs
+}

Reply via email to