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 @@ + + + + + contact@hacktivis.me + Haelwenn (lanodan) Monnier + + + Support fetching disks over HTTP using + + 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 +# 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 +}