commit:     bb65a691d65339b6762a857268e8fe2c886b31bc
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Tue Jun 10 07:10:21 2025 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Tue Jun 10 07:10:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bb65a691

app-emulation/tinyemu: import from ::lanodanOverlay, add 0.2019.12.21

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 app-emulation/tinyemu/Manifest                    |  1 +
 app-emulation/tinyemu/metadata.xml                | 11 ++++++
 app-emulation/tinyemu/tinyemu-0.2019.12.21.ebuild | 47 +++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/app-emulation/tinyemu/Manifest b/app-emulation/tinyemu/Manifest
new file mode 100644
index 0000000000..2ece5a27f0
--- /dev/null
+++ b/app-emulation/tinyemu/Manifest
@@ -0,0 +1 @@
+DIST tinyemu-2019-12-21.tar.gz 250826 BLAKE2B 
112398ba63d0d40d1bc05f05aacd1ba3a13da6a7932acef5ba01a7201382d2186868d619502eda07dc00d708872c2bc50d76824879e382ec746133f5ae5f5e7c
 SHA512 
21656acae4854b5893e8413390191b24e0686a6071ffbb90feb6aeb8d1a0ed1f471ff35813fabc5414318672658aacbb00108f647dee9c8d95242a6b73c4ba60

diff --git a/app-emulation/tinyemu/metadata.xml 
b/app-emulation/tinyemu/metadata.xml
new file mode 100644
index 0000000000..bf88b8963a
--- /dev/null
+++ b/app-emulation/tinyemu/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>cont...@hacktivis.me</email>
+               <name>Haelwenn (lanodan) Monnier</name>
+       </maintainer>
+       <use>
+               <flag name="http">Support fetching disks over HTTP using</flag>
+       </use>
+</pkgmetadata>

diff --git a/app-emulation/tinyemu/tinyemu-0.2019.12.21.ebuild 
b/app-emulation/tinyemu/tinyemu-0.2019.12.21.ebuild
new file mode 100644
index 0000000000..0d8ef8d8fa
--- /dev/null
+++ b/app-emulation/tinyemu/tinyemu-0.2019.12.21.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2022 Haelwenn (lanodan) Monnier <cont...@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="${PN}-$(ver_rs 1- - "$(ver_cut 2-)")"
+
+DESCRIPTION="small and simple system emulator for the RISC-V and x86 
architectures"
+HOMEPAGE="https://bellard.org/tinyemu/";
+SRC_URI="https://bellard.org/tinyemu/${MY_P}.tar.gz";
+S="${WORKDIR}/${MY_P}"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="http +sdl"
+
+DEPEND="
+       http? (
+               net-misc/curl
+               dev-libs/openssl:=
+       )
+       sdl? ( media-libs/libsdl )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( readme.txt )
+
+src_prepare() {
+       default
+
+       sed -i \
+               -e 's;^bindir=.*;bindir=/usr/bin/;' \
+               -e 's;^CC=.*;CC ?= cc;' \
+               -e 's;^STRIP=.*;STRIP=true;' \
+               -e 's;^CFLAGS=-O2 -Wall -g;CFLAGS+=;' \
+               Makefile || die
+}
+
+src_configure() {
+       if use !http; then sed -i '/^CONFIG_FS_NET/s;^;#;' Makefile || die; fi
+       if use !sdl; then sed -i '/^CONFIG_SDL/s;^;#;' Makefile || die; fi
+}
+
+src_install() {
+       mkdir -p "${ED}/usr/bin/" || die
+       default
+}

Reply via email to