On 2019/09/29 16:00, trondd wrote:
> Stuart Henderson <s...@spacehopper.org> wrote:
> 
> > tar is mangled (sent as text/plain).
> > 
> > On 2019/09/28 10:31, trondd wrote:
> > > Bump to the top.
> > > 
> > > No retro-computing/BBS nostalgia here? :P
> > > 
> > > Thanks.
> > > Tim.
> > > 
> > > On Sat, September 21, 2019 5:32 pm, trondd wrote:
> > > > New port of comms/pterm, aka PLATOterm.
> > > >
> > > > PLATO is a BBS-like system with roots in training and education but grew
> > > > into a community through muti-user games, messaging, and chat.  There's
> > > > been a resurgence the past few years with effort from IRATA.online and
> > > > ports of pterm to different OS's and retro-computers.
> > > >
> > > > The binary is officially 'pterm' but I had to rename it to 'platoterm' 
> > > > as
> > > > putty already has a pterm binary.
> > > >
> > > > Only been able to test on amd64.  Don't know how to test the floppy
> > > > support yet, either.
> > > >
> > > > Default connection is to cyber1's system, but IRATA.online is free to 
> > > > sign
> > > > up and also has a guest account for checking it out.  If you want to try
> > > > it, be sure to know the PLATO terminal keyoard maping to a PC keyboard:
> > > > https://cyber1.org/keyboard.asp (it's also in pterm's help menu)
> > > >
> > > > Tim.
> > > >
> > > > DESCR:
> > > > Pterm is a terminal emulator designed for connecting to PLATO-like
> > > > systems such as Cyber1 and the Cybis release from Tom Hunter.  It also
> > > > has the ability to run MicroTutor from floppy disk images.
> > > >
> > > > PLATO is a multi-user system hosting games, educational material, and
> > > > communities.  A PLATO server is hosted at IRATA.online with free access
> > > > and a CYBIS system is hosted at cyber1.org
> > 
> 
> Ugh....sorry.
> 
> 

New tgz attached, but here's the diff compared to yours so you can see my
changes easily;

- tidy Makefile
- use python module, don't hardcode 3.7
- simpler way to override CC/CXX, also honour CFLAGS
- update the py2-only script to py3 so it can run without a build dep on
multiple pythons; it wasn't run before because it needed a python -> python2.7
symlink
- just remove the lines in wxversion.py, simpler than commenting-out

I see a runtime problem, if I go to help -> pterm keyboard (which seems pretty
much essential for a new user?) it has some assertion failures:

./src/gtk/colour.cpp(185): assert "IsOk()" failed in Red(): invalid colour
./src/gtk/colour.cpp(196): assert "IsOk()" failed in Green(): invalid colour
./src/gtk/colour.cpp(207): assert "IsOk()" failed in Blue(): invalid colour


diff 55165a18519ce510530c7b850c0a0b786f187092 /usr/ports/mystuff/comms/pterm
blob - 42784ce52cc84b9cce32a895e9f1b548206f1d15
file + Makefile
--- Makefile
+++ Makefile
@@ -14,7 +14,6 @@ MAINTAINER =          Tim Meunier <tro...@kagu-tsuchi.com>
 # GPLv2+ in 8080 emulator
 PERMIT_PACKAGE =       Yes
 
-# "make port-lib-depends-check" can help
 WANTLIB =              ${COMPILER_LIBCXX} c m SDL sndfile
 WANTLIB +=             wx_baseu-3.0 wx_baseu_net-3.0 wx_baseu_xml-3.0
 WANTLIB +=             wx_gtk3u_adv-3.0 wx_gtk3u_core-3.0
@@ -24,13 +23,18 @@ MASTER_SITES =              
https://cyber1.org/download/linux/
 
 EXTRACT_SUFX =         .tar.bz2
 
-# Standard for C++ ports:
 COMPILER =             base-clang ports-gcc base-gcc
 
-BUILD_DEPENDS =                lang/python/3.7
-LIB_DEPENDS =          audio/libsndfile devel/sdl x11/wxWidgets>=3.0.4
+MODULES =              lang/python
+MODPY_RUNDEP =         No
+MODPY_VERSION =                ${MODPY_DEFAULT_VERSION_3}
+CONFIGURE_STYLE =      none
 
-MAKE_ENV =             CXX="${CXX}" CC="${CC}"
+LIB_DEPENDS =          audio/libsndfile \
+                       devel/sdl \
+                       x11/wxWidgets>=3.0.4
+
+MAKE_FLAGS =           CXX="${CXX}" CC="${CC}" OPTIMIZE="${CFLAGS}"
 
 USE_GMAKE =            Yes
 
blob - ccf05fbe751157c89c72313a94c853adaf878ab2
file + /dev/null
--- patches/patch-Makefile
+++ patches/patch-Makefile
@@ -1,16 +0,0 @@
-$OpenBSD$
-
-Index: Makefile
---- Makefile.orig
-+++ Makefile
-@@ -26,8 +26,8 @@ OBJS    = main.o init.o trace.o dump.o \
-         tpmux.o dtdisksubs.o ext.o pni.o \
-         $(PWD)/charset.o $(PWD)/dtnetsubs.o
- 
--CC      = gcc
--CXX     = g++
-+CC      ?= gcc
-+CXX     ?= g++
- 
- ifneq ("$(NPU_SUPPORT)","")
- OBJS +=         npu_async.o npu_bip.o npu_hip.o npu_svm.o npu_tip.o npu_net.o
blob - /dev/null
file + patches/patch-getkitver_py
--- patches/patch-getkitver_py
+++ patches/patch-getkitver_py
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: getkitver.py
+--- getkitver.py.orig
++++ getkitver.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ 
+ import os
+ import sys
+@@ -12,5 +12,5 @@ for l in f:
+         nums2 = [ ]
+         for n in nums:
+             nums2.append (int (n))
+-        print "%d.%d.%d" % tuple (nums2)[:3]
++        print("%d.%d.%d" % tuple (nums2)[:3])
+         sys.exit (0)
blob - d16c311c4e5a787dda6ad8568f01b852886dfa42
file + patches/patch-wxversion_py
--- patches/patch-wxversion_py
+++ patches/patch-wxversion_py
@@ -3,7 +3,7 @@ $OpenBSD$
 Index: wxversion.py
 --- wxversion.py.orig
 +++ wxversion.py
-@@ -39,15 +39,16 @@ if sys.platform[:3] == "win":
+@@ -39,15 +39,7 @@ if sys.platform[:3] == "win":
  else:
      wxversion = shellstr ("wx-config", "--version")
  
@@ -16,15 +16,6 @@ Index: wxversion.py
 -            svnversion += "+"
 -    else:
 -        svnversion = ""
-+#svnversion = shellstr ("svn", "info", "PtermApp.cpp")
-+#if svnversion:
-+#    m = re.search (r"Revision: (\d+)", svnversion)
-+#    if m:
-+#        svnversion = m.group (1)
-+#        if shellstr ("svn", "status", "pterm_wx.cpp"):
-+#            svnversion += "+"
-+#    else:
-+#        svnversion = ""
 +svnversion = ""
  now = time.strftime ("%d %B %Y").lstrip ("0")
  
blob - 607beb7ac8a507ba7fb0538fedd82b93df321e16
file + pkg/DESCR
--- pkg/DESCR
+++ pkg/DESCR
@@ -4,4 +4,4 @@ has the ability to run MicroTutor from floppy disk ima
 
 PLATO is a multi-user system hosting games, educational material, and
 communities.  A PLATO server is hosted at IRATA.online with free access
-and a CYBIS system is hosted at cyber1.org
+and a CYBIS system is hosted at cyber1.org.

Attachment: pterm.tgz
Description: application/tar-gz

Reply via email to