logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 9c51f02ad67cff4b5a79b4c1eba134da517b5175
parent 965680017bcc0359494a2b4b78521ea9457a8632
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 23 Jul 2022 23:19:03 +0200

app-emulation/tinyemu: Install readme.txt

Diffstat:

Aapp-emulation/tinyemu/tinyemu-0.2019.12.21-r1.ebuild47+++++++++++++++++++++++++++++++++++++++++++++++
Dapp-emulation/tinyemu/tinyemu-0.2019.12.21.ebuild45---------------------------------------------
2 files changed, 47 insertions(+), 45 deletions(-)

diff --git a/app-emulation/tinyemu/tinyemu-0.2019.12.21-r1.ebuild b/app-emulation/tinyemu/tinyemu-0.2019.12.21-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@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 +} diff --git a/app-emulation/tinyemu/tinyemu-0.2019.12.21.ebuild b/app-emulation/tinyemu/tinyemu-0.2019.12.21.ebuild @@ -1,45 +0,0 @@ -# Copyright 2022 Haelwenn (lanodan) Monnier <contact@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}" - -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 -}