commit: e017b21b357bbe1c3462883dbd20060daa9fca2b Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Thu Aug 28 19:02:02 2025 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Thu Aug 28 19:17:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e017b21b
app-emulation/spectemu: remove svgalib Update EAPI 7 -> 8. Remove svgalib support, `vgaspect` and its man page. Remove X flag, force it to always enabled. Install the `tapeout` binary. I tested it, it works. Closes: https://bugs.gentoo.org/962070 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> .../spectemu/files/spectemu-0.99.3-r2-build.patch | 34 +++++++++++++ app-emulation/spectemu/spectemu-0.99.3-r2.ebuild | 57 ++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/app-emulation/spectemu/files/spectemu-0.99.3-r2-build.patch b/app-emulation/spectemu/files/spectemu-0.99.3-r2-build.patch new file mode 100644 index 000000000000..97d9a877675e --- /dev/null +++ b/app-emulation/spectemu/files/spectemu-0.99.3-r2-build.patch @@ -0,0 +1,34 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -44,17 +44,18 @@ + ./mkinstalldirs $(i_bindir) $(i_mandir) + + install_prog: $(progs) ++ mkdir -p $(i_bindir) + if test -f xspect; then \ +- $(INSTALL_PROGRAM) -s -m 755 xspect $(i_bindir); fi ++ $(INSTALL_PROGRAM) -m 755 xspect $(i_bindir); fi + if test -f vgaspect; then \ +- $(INSTALL_PROGRAM) -s -m 4755 vgaspect $(i_bindir); fi ++ $(INSTALL_PROGRAM) -m 4755 vgaspect $(i_bindir); fi + + install_man: ++ mkdir -p $(i_mandir) + $(INSTALL_DATA) ./xspect.1 $(i_mandir) + $(INSTALL_DATA) ./tapeout.1 $(i_mandir) +- (cd $(i_mandir); rm -f vgaspect.1; ln -s xspect.1 vgaspect.1) + +-install: installdirs install_prog install_man ++install: install_prog install_man + + z80_c_objs=z80.o z80optab.o z80_step.o spperif.o spect.o rom48.o \ + z80_op1.o z80_op2.o z80_op3.o z80_op4.o z80_op5.o z80_op6.o +@@ -88,7 +90,7 @@ + ./sp_to_s < i386emul.sp > i386emul.s + + i386emul.o: i386emul.s +- $(CC) -c $(CFLAGS) i386emul.s ++ $(CC) -c $(ASFLAGS) -Xassembler --noexecstack i386emul.s + + sp_to_s: sp_to_s.o + $(CC) -o sp_to_s $(LDFLAGS) sp_to_s.o diff --git a/app-emulation/spectemu/spectemu-0.99.3-r2.ebuild b/app-emulation/spectemu/spectemu-0.99.3-r2.ebuild new file mode 100644 index 000000000000..7df0738f00ca --- /dev/null +++ b/app-emulation/spectemu/spectemu-0.99.3-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="48k ZX Spectrum Emulator" +HOMEPAGE="http://kempelen.iit.bme.hu/~mszeredi/spectemu/spectemu.html" +SRC_URI="http://www.inf.bme.hu/~mszeredi/spectemu/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="readline" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXxf86vm + readline? ( sys-libs/readline:= ) +" + +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" + +PATCHES=( + "${FILESDIR}"/${P}-automagic.patch + "${FILESDIR}"/${P}-r2-build.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf=( + --with-svga=no + --with-x=yes + $(use_with readline) + ) + + econf "${myconf[@]}" +} + +src_compile() { + default + emake tapeout +} + +src_install() { + emake install_root="${ED}" install + dobin tapeout +}
