[gentoo-commits] repo/proj/guru:dev commit in: x11-terms/terminal-simulator/

2024-11-29 Thread Seth Price
commit: dbdaebe4086c17c5260a2b579f64d1b24ca65c58
Author: Seth M. Price  aol  com>
AuthorDate: Fri Nov 29 17:35:04 2024 +
Commit: Seth Price  aol  com>
CommitDate: Fri Nov 29 17:37:56 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dbdaebe4

x11-terms/terminal-simulator: require OpenGL SDL2

SDL2 needs to be built with OpenGL support.  Some systems don’t
have this USE flag enabled by default, so this now requires it.

Revision not bumped; if it compiled correctly already, it’s safe to
assume the opengl flag was already enabled.

Fixes: https://bugs.gentoo.org/941152
Signed-off-by: Seth M. Price  aol.com>

 x11-terms/terminal-simulator/terminal-simulator-0.2.ebuild | 2 +-
 x11-terms/terminal-simulator/terminal-simulator--r1.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/x11-terms/terminal-simulator/terminal-simulator-0.2.ebuild 
b/x11-terms/terminal-simulator/terminal-simulator-0.2.ebuild
index 1e7358c13..7312b648f 100644
--- a/x11-terms/terminal-simulator/terminal-simulator-0.2.ebuild
+++ b/x11-terms/terminal-simulator/terminal-simulator-0.2.ebuild
@@ -11,7 +11,7 @@ LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
 
-DEPEND="media-libs/libsdl2 media-libs/sdl2-image virtual/opengl"
+DEPEND="media-libs/libsdl2[opengl] media-libs/sdl2-image virtual/opengl"
 RDEPEND="${DEPEND}"
 
 src_compile() {

diff --git a/x11-terms/terminal-simulator/terminal-simulator--r1.ebuild 
b/x11-terms/terminal-simulator/terminal-simulator--r1.ebuild
index 682004aad..e1f25fbbd 100644
--- a/x11-terms/terminal-simulator/terminal-simulator--r1.ebuild
+++ b/x11-terms/terminal-simulator/terminal-simulator--r1.ebuild
@@ -12,7 +12,7 @@ 
EGIT_REPO_URI="https://github.com/larsbrinkhoff/terminal-simulator.git";
 LICENSE="GPL-3"
 SLOT="0"
 
-DEPEND="media-libs/libsdl2 media-libs/sdl2-image virtual/opengl"
+DEPEND="media-libs/libsdl2[opengl] media-libs/sdl2-image virtual/opengl"
 RDEPEND="${DEPEND}"
 
 src_compile() {



[gentoo-commits] repo/proj/guru:dev commit in: x11-terms/terminal-simulator/

2024-11-17 Thread Seth Price
commit: d3a0ab9822f1887e2082b3be75231250ddcf566d
Author: Seth M. Price  aol  com>
AuthorDate: Mon Nov 18 02:13:15 2024 +
Commit: Seth Price  aol  com>
CommitDate: Mon Nov 18 02:13:15 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d3a0ab98

x11-terms/terminal-simulator: fix  ebuild bug

Fixed bug in ebuild in which some necessary files for vt52
were not installed.  Originally noted by @pastalian:


Signed-off-by: Seth M. Price  aol.com>

 ...terminal-simulator-.ebuild => terminal-simulator--r1.ebuild} | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/x11-terms/terminal-simulator/terminal-simulator-.ebuild 
b/x11-terms/terminal-simulator/terminal-simulator--r1.ebuild
similarity index 94%
rename from x11-terms/terminal-simulator/terminal-simulator-.ebuild
rename to x11-terms/terminal-simulator/terminal-simulator--r1.ebuild
index d7cf7141e..682004aad 100644
--- a/x11-terms/terminal-simulator/terminal-simulator-.ebuild
+++ b/x11-terms/terminal-simulator/terminal-simulator--r1.ebuild
@@ -40,6 +40,8 @@ src_install() {
doins common/*.shader
insinto "/usr/share/terminal-simulator/vt52"
doins common/*.shader
+   insinto "/usr/share/terminal-simulator/vt52/rom"
+   doins vt52/rom/*
 
dodoc README.md
 }



[gentoo-commits] repo/proj/guru:dev commit in: x11-terms/terminal-simulator/files/, x11-terms/terminal-simulator/

2024-10-05 Thread Seth Price
commit: a192ac023076261012c0714cad395d271f66644a
Author: Seth M. Price  aol  com>
AuthorDate: Sat Oct  5 22:21:24 2024 +
Commit: Seth Price  aol  com>
CommitDate: Sat Oct  5 22:24:41 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a192ac02

x11-terms/terminal-simulator: new package, add 0.2, 

Signed-off-by: Seth M. Price  aol.com>

 x11-terms/terminal-simulator/Manifest  |  1 +
 ...ulator-0.2_do-not-force-compiler-warnings.patch | 18 +
 x11-terms/terminal-simulator/files/vt100   |  5 +++
 x11-terms/terminal-simulator/files/vt52|  5 +++
 x11-terms/terminal-simulator/metadata.xml  | 20 ++
 .../terminal-simulator-0.2.ebuild  | 33 
 .../terminal-simulator-.ebuild | 45 ++
 7 files changed, 127 insertions(+)

diff --git a/x11-terms/terminal-simulator/Manifest 
b/x11-terms/terminal-simulator/Manifest
new file mode 100644
index 0..6d6abe0e3
--- /dev/null
+++ b/x11-terms/terminal-simulator/Manifest
@@ -0,0 +1 @@
+DIST terminal-simulator-0.2.tar.gz 72930468 BLAKE2B 
7b1362e7a49db8392f459e9a4bda79f4a475c977f0080029db5b56e69a16f055ff30bd4f02789a5b3ee7b18c119c5a5038ebbf5125ee58965922936ebb4851f2
 SHA512 
011f740137e56d0c1722deb5c4da363cf2cb365fa8016e0c2ceb08f3ab5dbb23b2b0971b4482d343401968ea372121ec4930a1bd8d3875c4150db44788a4a80b

diff --git 
a/x11-terms/terminal-simulator/files/terminal-simulator-0.2_do-not-force-compiler-warnings.patch
 
b/x11-terms/terminal-simulator/files/terminal-simulator-0.2_do-not-force-compiler-warnings.patch
new file mode 100644
index 0..9499685c4
--- /dev/null
+++ 
b/x11-terms/terminal-simulator/files/terminal-simulator-0.2_do-not-force-compiler-warnings.patch
@@ -0,0 +1,18 @@
+Remove unnecessary warning flags in Makefile.
+
+From: Seth M. Price 
+
+--- a/vt100/Makefile
 b/vt100/Makefile
+@@ -9,11 +9,10 @@ endif
+ #For clang: CFLAGS=-Ofast
+ check: vt100 ../test/test.sh
+   cd ..; sh test/test.sh
+-WARN=-Wall -Wno-unused-parameter -Wno-parentheses -Wno-unused-result
++WARN=
+ SRC=main.c cpu.c sys.c ddt.c pusart.c \
+   nvr.c keyboard.c video.c rom.c sound.c render.c \
+   ../common/sdl.c ../common/opengl.c ../common/event.c \
+   ../common/logger.c ../common/pty.c
+ DEPS=`sdl2-config --libs --cflags` -lSDL2_image $(LDFLAGS)
+ vt100: $(SRC) Makefile vt100.h ../common/xsdl.h ../common/opengl.h

diff --git a/x11-terms/terminal-simulator/files/vt100 
b/x11-terms/terminal-simulator/files/vt100
new file mode 100644
index 0..2e34784ce
--- /dev/null
+++ b/x11-terms/terminal-simulator/files/vt100
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Program is hard-coded to look in $PWD for shaders,
+# so this wrapper changes $PWD to something sane
+DATADIR=/usr/share/terminal-simulator/vt100
+(cd "$DATADIR" && /usr/libexec/terminal-simulator/vt100 $@)

diff --git a/x11-terms/terminal-simulator/files/vt52 
b/x11-terms/terminal-simulator/files/vt52
new file mode 100644
index 0..d27a767e3
--- /dev/null
+++ b/x11-terms/terminal-simulator/files/vt52
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Program is hard-coded to look in $PWD for shaders,
+# so this wrapper changes $PWD to something sane
+DATADIR=/usr/share/terminal-simulator/vt52
+(cd "$DATADIR" && /usr/libexec/terminal-simulator/vt52 $@)

diff --git a/x11-terms/terminal-simulator/metadata.xml 
b/x11-terms/terminal-simulator/metadata.xml
new file mode 100644
index 0..3f27ef635
--- /dev/null
+++ b/x11-terms/terminal-simulator/metadata.xml
@@ -0,0 +1,20 @@
+
+https://www.gentoo.org/dtd/metadata.dtd";>
+
+   
+   Seth Price
+   sprice...@aol.com
+   
+   
+   This is a software simulation of the VT100 hardware.
+   (There is also a VT52 simulation.) The original firmware
+   ROM is built in and executed by an 8080 emulator. Other
+   components include video display with character generator
+   ROM, settings NVRAM, Intel 8251 USART, and a keyboard
+   matrix scanner. The Advanced Video Option is not included.
+   
+   
+   
https://github.com/larsbrinkhoff/terminal-simulator/issues
+   larsbrinkhoff/terminal-simulator
+   
+

diff --git a/x11-terms/terminal-simulator/terminal-simulator-0.2.ebuild 
b/x11-terms/terminal-simulator/terminal-simulator-0.2.ebuild
new file mode 100644
index 0..1e7358c13
--- /dev/null
+++ b/x11-terms/terminal-simulator/terminal-simulator-0.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="VT100 terminal hardware simulator"
+HOMEPAGE="https://github.com/larsbrinkhoff/terminal-simulator";
+SRC_URI="https://github.com/larsbrinkhoff/terminal-simulator/archive/refs/tags/${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="media-libs/libsdl2 media-