summaryrefslogtreecommitdiff
path: root/emulators/tcl-hp-15c
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2018-08-31 09:24:25 +0000
committerhauke <hauke@pkgsrc.org>2018-08-31 09:24:25 +0000
commitbc3305b10089d223678afd49d0d563899a468c3c (patch)
tree38563905e7fb24966a8ae006922c8fadd1f2b8e4 /emulators/tcl-hp-15c
parenteeef8d0ffc19ee253ecfc2d18c5e65d9541538da (diff)
downloadpkgsrc-bc3305b10089d223678afd49d0d563899a468c3c.tar.gz
Add a TCL based simulator for the programmable RPN pocket calculator
Hewlett-Packard HP-15C
Diffstat (limited to 'emulators/tcl-hp-15c')
-rw-r--r--emulators/tcl-hp-15c/DESCR10
-rw-r--r--emulators/tcl-hp-15c/Makefile47
-rw-r--r--emulators/tcl-hp-15c/PLIST114
-rw-r--r--emulators/tcl-hp-15c/distinfo6
-rw-r--r--emulators/tcl-hp-15c/files/hp-15c.sh3
5 files changed, 180 insertions, 0 deletions
diff --git a/emulators/tcl-hp-15c/DESCR b/emulators/tcl-hp-15c/DESCR
new file mode 100644
index 00000000000..afcfac43fc5
--- /dev/null
+++ b/emulators/tcl-hp-15c/DESCR
@@ -0,0 +1,10 @@
+The HP-15C Simulator is intended to be a useful RPN calculator for
+your PC desktop. It therefore makes use of the features of the
+underlying operating system and its GUI: Programs can be saved in
+files, so that you need to key them in only once. Pop-up menus provide
+easy and fast access to many HP-15C functions and features. However,
+no new function, which is not supported by the real HP-15C, is added.
+
+The Simulator supports almost all functions and features of the real
+HP-15C. Differences between the real HP-15C and the Simulator are
+rather small.
diff --git a/emulators/tcl-hp-15c/Makefile b/emulators/tcl-hp-15c/Makefile
new file mode 100644
index 00000000000..a05eb3d5e5d
--- /dev/null
+++ b/emulators/tcl-hp-15c/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1 2018/08/31 09:24:25 hauke Exp $
+
+DISTNAME= HP-15C_4.0.00_Source
+PKGNAME= tcl-hp-15c-${PKGVER}
+PKGVER= 4.0.00.5811
+CATEGORIES= emulators math
+MASTER_SITES= -http://bit.ly/2FQ82VL
+EXTRACT_SUFX= .zip
+
+MAINTAINER= hauke@NetBSD.org
+HOMEPAGE= http://hp-15c.homepage.t-online.de/
+COMMENT= Simulated HP-15C RPN calculator
+LICENSE= gnu-gpl-v3
+
+DEPENDS+= tk>=8.3.2:../../x11/tk
+
+NO_CONFIGURE= YES
+NO_BUILD= YES
+
+USE_TOOLS+= unzip pax find sed
+
+HP15CDIR= share/tcl-hp-15c
+
+INSTALLATION_DIRS= share/fonts/X11/TTF
+INSTALLATION_DIRS+= ${HP15CDIR}
+INSTALLATION_DIRS+= bin
+
+FONTS_DIRS.ttf= ${PREFIX}/share/fonts/X11/TTF
+
+do-extract:
+ ${MKDIR} ${WRKSRC} ; \
+ cd ${WRKSRC} ; \
+ ${UNZIP_CMD} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
+
+post-extract:
+ ${SED} -e "s,@PREFIX@,${PREFIX},g" \
+ < ${FILESDIR}/hp-15c.sh > ${WRKDIR}/hp-15c.sh
+
+do-install:
+ ${FIND} ${WRKSRC} -type f -exec chmod -x \{\} \;
+ cd ${WRKSRC} ; ${PAX} -rw . ${DESTDIR}${PREFIX}/${HP15CDIR}
+ ${INSTALL_DATA} ${WRKSRC}/HP-15C_Simulator_Font.ttf \
+ ${DESTDIR}${FONTS_DIRS.ttf}/HP-15C_Simulator_Font.ttf
+ ${INSTALL_SCRIPT} ${WRKDIR}/hp-15c.sh ${DESTDIR}${PREFIX}/bin/hp-15c
+
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/tcl-hp-15c/PLIST b/emulators/tcl-hp-15c/PLIST
new file mode 100644
index 00000000000..a943e3c5f6f
--- /dev/null
+++ b/emulators/tcl-hp-15c/PLIST
@@ -0,0 +1,114 @@
+@comment $NetBSD: PLIST,v 1.1 2018/08/31 09:24:25 hauke Exp $
+bin/hp-15c
+share/fonts/X11/TTF/HP-15C_Simulator_Font.ttf
+share/tcl-hp-15c/HP-15C.ico
+share/tcl-hp-15c/HP-15C.tcl
+share/tcl-hp-15c/HP-15C_Simulator_Font.ttf
+share/tcl-hp-15c/Read Me & Release Notes.html
+share/tcl-hp-15c/css/HP-15C_css.txt
+share/tcl-hp-15c/doc/FAQ.htm
+share/tcl-hp-15c/doc/convert.htm
+share/tcl-hp-15c/doc/dm15.htm
+share/tcl-hp-15c/doc/formats/formats.css
+share/tcl-hp-15c/doc/formats/layout.css
+share/tcl-hp-15c/doc/images/HP-15C.png
+share/tcl-hp-15c/doc/images/HP-15C_small.png
+share/tcl-hp-15c/doc/images/Quick Start.gif
+share/tcl-hp-15c/doc/images/complex_1.gif
+share/tcl-hp-15c/doc/images/display_area_small.gif
+share/tcl-hp-15c/doc/images/display_error_small.gif
+share/tcl-hp-15c/doc/images/display_small.gif
+share/tcl-hp-15c/doc/images/favicon.ico
+share/tcl-hp-15c/doc/images/gsb_menu_sorted.png
+share/tcl-hp-15c/doc/images/gsb_menu_unsorted.png
+share/tcl-hp-15c/doc/images/key_backspace_char_missing.png
+share/tcl-hp-15c/doc/images/key_backspace_char_ok.png
+share/tcl-hp-15c/doc/images/key_rolldown_char_missing.png
+share/tcl-hp-15c/doc/images/key_rolldown_char_ok.png
+share/tcl-hp-15c/doc/images/mail_logo.gif
+share/tcl-hp-15c/doc/images/matrix_4x3_elements.png
+share/tcl-hp-15c/doc/images/matrix_4x3_rowcolumn.png
+share/tcl-hp-15c/doc/images/matrix_functions.png
+share/tcl-hp-15c/doc/images/matrix_stack_descriptor.png
+share/tcl-hp-15c/doc/images/matrix_stack_submenu.png
+share/tcl-hp-15c/doc/images/prefs_strict_hp15c_off.png
+share/tcl-hp-15c/doc/images/prefs_strict_hp15c_on.png
+share/tcl-hp-15c/doc/images/prgm_code.gif
+share/tcl-hp-15c/doc/images/prgm_code_col.gif
+share/tcl-hp-15c/doc/images/prgm_mnemonics.gif
+share/tcl-hp-15c/doc/images/prgm_mnemonics_col.gif
+share/tcl-hp-15c/doc/images/prgm_step_000.gif
+share/tcl-hp-15c/doc/images/prgm_step_001.gif
+share/tcl-hp-15c/doc/images/prgm_step_021.gif
+share/tcl-hp-15c/doc/images/prgm_step_run.gif
+share/tcl-hp-15c/doc/images/prgm_step_small.gif
+share/tcl-hp-15c/doc/images/stack_complex.gif
+share/tcl-hp-15c/doc/images/stack_fix2.gif
+share/tcl-hp-15c/doc/images/stack_fix4.gif
+share/tcl-hp-15c/doc/images/stack_sci3.gif
+share/tcl-hp-15c/doc/images/storage_1cols.gif
+share/tcl-hp-15c/doc/images/storage_2cols.gif
+share/tcl-hp-15c/doc/images/storage_7regs1col.gif
+share/tcl-hp-15c/doc/images/storage_7regs2col.gif
+share/tcl-hp-15c/doc/images/test_menu.gif
+share/tcl-hp-15c/doc/index.htm
+share/tcl-hp-15c/doc/introduction.htm
+share/tcl-hp-15c/doc/js/MnemonicConverter.js
+share/tcl-hp-15c/doc/keyboard.htm
+share/tcl-hp-15c/doc/keyboard_n.htm
+share/tcl-hp-15c/doc/links.htm
+share/tcl-hp-15c/doc/menus.htm
+share/tcl-hp-15c/doc/preferences.htm
+share/tcl-hp-15c/doc/programs.htm
+share/tcl-hp-15c/doc/usage.htm
+share/tcl-hp-15c/icons/HP-15C-logo.icns
+share/tcl-hp-15c/icons/HP-15C-logo.ico
+share/tcl-hp-15c/icons/HP-15C-logo.zip
+share/tcl-hp-15c/icons/HP-15C-picture.icns
+share/tcl-hp-15c/icons/HP-15C-picture.ico
+share/tcl-hp-15c/icons/HP-15C-picture.zip
+share/tcl-hp-15c/images/HP-15C-logo-256.png
+share/tcl-hp-15c/images/HP-15C-logo-512.png
+share/tcl-hp-15c/images/PrefIconDM15CC.gif
+share/tcl-hp-15c/images/PrefIconFiles.gif
+share/tcl-hp-15c/images/PrefIconFonts.gif
+share/tcl-hp-15c/images/PrefIconHelp.gif
+share/tcl-hp-15c/images/PrefIconSimulator.gif
+share/tcl-hp-15c/images/PrefIconSystem.gif
+share/tcl-hp-15c/images/PrevIconDev.gif
+share/tcl-hp-15c/images/dispframe.gif
+share/tcl-hp-15c/lib/dm15cc/dm15cc.tcl
+share/tcl-hp-15c/lib/dm15cc/pkgIndex.tcl
+share/tcl-hp-15c/lib/hplcd/hplcd.tcl
+share/tcl-hp-15c/lib/hplcd/pkgIndex.tcl
+share/tcl-hp-15c/lib/html/html.tcl
+share/tcl-hp-15c/lib/html/pkgIndex.tcl
+share/tcl-hp-15c/lib/math/combinatorics.tcl
+share/tcl-hp-15c/lib/math/fuzzy.tcl
+share/tcl-hp-15c/lib/math/linalg.tcl
+share/tcl-hp-15c/lib/math/math.tcl
+share/tcl-hp-15c/lib/math/pkgIndex.tcl
+share/tcl-hp-15c/lib/math/tclIndex
+share/tcl-hp-15c/lib/matrix/matrix.tcl
+share/tcl-hp-15c/lib/matrix/matrix_0.0.9.tcl
+share/tcl-hp-15c/lib/matrix/pkgIndex.tcl
+share/tcl-hp-15c/lib/ncgi/ncgi.tcl
+share/tcl-hp-15c/lib/ncgi/pkgIndex.tcl
+share/tcl-hp-15c/lib/prdoc/pkgIndex.tcl
+share/tcl-hp-15c/lib/prdoc/prdoc.tcl
+share/tcl-hp-15c/lib/saturn/pkgIndex.tcl
+share/tcl-hp-15c/lib/saturn/s56b.tcl
+share/tcl-hp-15c/logo/HP-15C-logo-22x22.png
+share/tcl-hp-15c/logo/HP-15C-logo-256x256.png
+share/tcl-hp-15c/logo/HP-15C-logo-32x32.png
+share/tcl-hp-15c/logo/HP-15C-logo-48x48.png
+share/tcl-hp-15c/logo/HP-15C-logo-512x512.png
+share/tcl-hp-15c/msgs/ROOT.msg
+share/tcl-hp-15c/msgs/de.msg
+share/tcl-hp-15c/msgs/en_gb.msg
+share/tcl-hp-15c/msgs/en_us.msg
+share/tcl-hp-15c/msgs/es.msg
+share/tcl-hp-15c/msgs/fr.msg
+share/tcl-hp-15c/msgs/it.msg
+share/tcl-hp-15c/msgs/nl.msg
+share/tcl-hp-15c/msgs/pt_br.msg
diff --git a/emulators/tcl-hp-15c/distinfo b/emulators/tcl-hp-15c/distinfo
new file mode 100644
index 00000000000..78112be2668
--- /dev/null
+++ b/emulators/tcl-hp-15c/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/08/31 09:24:25 hauke Exp $
+
+SHA1 (HP-15C_4.0.00_Source.zip) = c78f6dc60eb8a1beedc354d514324da3f039df1a
+RMD160 (HP-15C_4.0.00_Source.zip) = 0091c6c25621b8231b974230837ae9222b2eb0f4
+SHA512 (HP-15C_4.0.00_Source.zip) = d81de895086ab7b9b9f855fd1c7b518dc5104db6f94ba449630ea6de11942f7535a704a2603bfe5640253beed1a5b681193d12e71cddb4aa65d85283ad3de487
+Size (HP-15C_4.0.00_Source.zip) = 944359 bytes
diff --git a/emulators/tcl-hp-15c/files/hp-15c.sh b/emulators/tcl-hp-15c/files/hp-15c.sh
new file mode 100644
index 00000000000..522c8c0365d
--- /dev/null
+++ b/emulators/tcl-hp-15c/files/hp-15c.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cd @PREFIX@/share/tcl-hp-15c && @PREFIX@/bin/wish HP-15C.tcl