pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add HP1973 0.0



Module Name:	pkgsrc-wip
Committed By:	Greg Troxel <gdt%lexort.com@localhost>
Pushed By:	gdt
Date:		Thu Aug 31 08:45:27 2023 -0400
Changeset:	9668b7a9af4650178e3fa32aa1ff5f1f0493855a

Added Files:
	HP-1973/DESCR
	HP-1973/Makefile
	HP-1973/PLIST
	HP-1973/TODO
	HP-1973/distinfo
	HP-1973/patches/patch-HP1973.py

Log Message:
Add HP1973 0.0

I love the HP-45 calculator. It's beautiful on the outside, but I
wanted to show people that it's beautiful on the inside, too. So, as a
coding and retrocomputing challenge I decided to rewrite an earlier,
terminal-based simulator of mine in Python (but with standalone
executables), with a GUI. As with all such 'just a few days on this'
projects it spiralled out of control, and the result is HP-1973.

It not only runs (included) ROM code from the HP-45, but also the
HP-35 and the HP-80. You can select which calculator you wish to use
when the application starts, and also have the option to choose
between multiple ROM versions for a given calculator (with warnings if
a ROM is known to contain bugs). In total, six calculator-ROM
variations are included.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9668b7a9af4650178e3fa32aa1ff5f1f0493855a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 HP-1973/DESCR                   | 13 +++++++++++++
 HP-1973/Makefile                | 39 +++++++++++++++++++++++++++++++++++++++
 HP-1973/PLIST                   |  8 ++++++++
 HP-1973/TODO                    |  2 ++
 HP-1973/distinfo                |  6 ++++++
 HP-1973/patches/patch-HP1973.py | 14 ++++++++++++++
 6 files changed, 82 insertions(+)

diffs:
diff --git a/HP-1973/DESCR b/HP-1973/DESCR
new file mode 100644
index 0000000000..3115d2fb2c
--- /dev/null
+++ b/HP-1973/DESCR
@@ -0,0 +1,13 @@
+I love the HP-45 calculator. It's beautiful on the outside, but I
+wanted to show people that it's beautiful on the inside, too. So, as a
+coding and retrocomputing challenge I decided to rewrite an earlier,
+terminal-based simulator of mine in Python (but with standalone
+executables), with a GUI. As with all such 'just a few days on this'
+projects it spiralled out of control, and the result is HP-1973.
+
+It not only runs (included) ROM code from the HP-45, but also the
+HP-35 and the HP-80. You can select which calculator you wish to use
+when the application starts, and also have the option to choose
+between multiple ROM versions for a given calculator (with warnings if
+a ROM is known to contain bugs). In total, six calculator-ROM
+variations are included.
diff --git a/HP-1973/Makefile b/HP-1973/Makefile
new file mode 100644
index 0000000000..ffa0fb37e8
--- /dev/null
+++ b/HP-1973/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD$
+
+PKGNAME=		HP1973-0.0
+DISTNAME=		HP1973-Source
+CATEGORIES=		emulators
+MASTER_SITES=		https://sarahkmarr.com/
+EXTRACT_SUFX=		.zip
+
+MAINTAINER=		gdt%NetBSD.org@localhost
+HOMEPAGE=		https://sarahkmarr.com/retrohp1973.html
+COMMENT=		HP-45 emulator
+#LICENSE=		generic-nonlicense
+
+RESTRICTED=		No hosting permitted
+NO_SRC_ON_FTP=		${RESTRICTED}
+NO_SRC_ON_CDROM=	${RESTRICTED}
+NO_BIN_ON_FTP=		${RESTRICTED}
+NO_BIN_ON_CDROM=	${RESTRICTED}
+
+USE_LANGUAGES=		# none
+
+# \todo wrong path?
+REPLACE_PYTHON+=	HP1973.py
+
+# \todo tkinter
+DEPENDS+=		${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
+
+do-build:
+	${TRUE}
+
+INSTALLATION_DIRS=	bin share/HP1973
+
+do-install:
+	cd ${WRKSRC} && \
+	${INSTALL_SCRIPT} HP1973.py ${DESTDIR}/${PREFIX}/bin && \
+	${INSTALL_DATA} *json ${DESTDIR}/${PREFIX}/share
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/HP-1973/PLIST b/HP-1973/PLIST
new file mode 100644
index 0000000000..f9e6aa4e9f
--- /dev/null
+++ b/HP-1973/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+bin/HP1973.py
+share/hp1973_calcs.json
+share/hp1973_help.json
+share/hp1973_prefs_linux.json
+share/hp1973_prefs_macos.json
+share/hp1973_prefs_windows.json
+@pkgdir share/HP1973
diff --git a/HP-1973/TODO b/HP-1973/TODO
new file mode 100644
index 0000000000..55dc13575c
--- /dev/null
+++ b/HP-1973/TODO
@@ -0,0 +1,2 @@
+  - depend on tkinter
+  - find json from share if not in current dir
diff --git a/HP-1973/distinfo b/HP-1973/distinfo
new file mode 100644
index 0000000000..5837e529a8
--- /dev/null
+++ b/HP-1973/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (HP1973-Source.zip) = a893833b800f859f1ce18f92ae23c1e58566ed488bd1d497bc8aac88fd724a5c
+SHA512 (HP1973-Source.zip) = 1d15a0a4d66b6e431715b9c4850fdce4a9295934c030affec0d41bae3579d0db01310d4d0ef20a2b2c1cb3ff2d70ebd75115aec5a4732f3d3f970b9fd781b845
+Size (HP1973-Source.zip) = 118858 bytes
+SHA1 (patch-HP1973-Source_HP1973.py) = 89b6c0185cc47d05c86c037f455b2b97ea5d1608
diff --git a/HP-1973/patches/patch-HP1973.py b/HP-1973/patches/patch-HP1973.py
new file mode 100644
index 0000000000..93e9afe423
--- /dev/null
+++ b/HP-1973/patches/patch-HP1973.py
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Add faux pythone #!, so we can REPLACE_PYTHON.
+
+Not yet reported upstream.
+
+--- HP1973.py.orig	2023-07-24 11:27:23.000000000 +0000
++++ HP1973.py
+@@ -1,3 +1,5 @@
++#!/usr/bin/env python
++
+ # ----------------------------------------------------------------------------------------
+ # HP-1973 (A 50th Anniversary Electronic Slide Rule)
+ #          a simulator of HP-35, HP-45 and HP-80 calculators


Home | Main Index | Thread Index | Old Index