Index: head/emulators/simh/Makefile =================================================================== --- head/emulators/simh/Makefile (revision 438140) +++ head/emulators/simh/Makefile (revision 438141) @@ -1,52 +1,60 @@ # Created by: jraynard # $FreeBSD$ PORTNAME= simh PORTVERSION= 3.9.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= emulators -MASTER_SITES= http://simh.trailing-edge.com/sources/ +MASTER_SITES= http://simh.trailing-edge.com/sources/:src \ + http://www.ml1.org.uk/distfiles/:pdf \ + http://www.ancientgeek.org.uk/distfiles/:pdf DISTNAME= ${PORTNAME}v${PORTVERSION:R:S/.//}-${PORTVERSION:E} +DISTFILES= ${PORTNAME}v${PORTVERSION:R:S/.//}-${PORTVERSION:E}.zip:src \ + ${PORTNAME}_docpdf.zip:pdf MAINTAINER= bob@eager.cx COMMENT= Emulates classic DEC, HP, GRI, IBM, Altair, SDS, Honeywell, and others LICENSE= BSD3CLAUSE NO_WRKSUBDIR= yes USES= gmake dos2unix zip +DOS2UNIX_GLOB= *.c *.h *.txt *.mak *.ini makefile CFLAGS+= -Wno-format-extra-args -Wno-comment -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses MAKE_ENV= GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1 MAKEFILE= makefile -SUB_FILES= pkg-message +SUB_FILES= pkg-message simh.1 -PORTDOCS= 0readme_${PORTVERSION:R:S/.//}.txt 0readme_ethernet.txt +READMES= 0readme_${PORTVERSION:R:S/.//}.txt 0readme_ethernet.txt +PORTDOCS= ${READMES} pdf/* OPTIONS_DEFINE= DOCS pre-patch: @${MKDIR} ${WRKSRC}/BIN post-patch: @${REINPLACE_CMD} -e \ '/shell ldconfig/s|^|#| ; \ /-O2/s| = | ?= |' ${WRKSRC}/makefile @${REINPLACE_CMD} -e \ 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/VAX/vax_sysdev.c post-build: # eclipse conflicts with java/eclipse, install it as simh-eclipse @${MV} ${WRKSRC}/BIN/eclipse ${WRKSRC}/BIN/simh-eclipse do-install: ${INSTALL_PROGRAM} ${WRKSRC}/BIN/* ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/VAX/ka655x.bin ${STAGEDIR}${DATADIR} + ${INSTALL_MAN} ${WRKDIR}/simh.1 ${STAGEDIR}${MANPREFIX}/man/man1 do-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR}/pdf + (cd ${WRKSRC} && ${INSTALL_DATA} ${READMES} ${STAGEDIR}${DOCSDIR}) + (cd ${WRKSRC} && ${COPYTREE_SHARE} pdf ${STAGEDIR}${DOCSDIR}) .include Index: head/emulators/simh/distinfo =================================================================== --- head/emulators/simh/distinfo (revision 438140) +++ head/emulators/simh/distinfo (revision 438141) @@ -1,2 +1,5 @@ +TIMESTAMP = 1490544722 SHA256 (simhv39-0.zip) = e49b259b66ad6311ca9066dee3d3693cd915106a6938a52ed685cdbada8eda3b SIZE (simhv39-0.zip) = 3103657 +SHA256 (simh_docpdf.zip) = dff83e9a55f5e8bc2364489d6cc2a6731c60237acf37f4c46f080914896f8a0c +SIZE (simh_docpdf.zip) = 2282195 Index: head/emulators/simh/files/pkg-message.in =================================================================== --- head/emulators/simh/files/pkg-message.in (revision 438140) +++ head/emulators/simh/files/pkg-message.in (revision 438141) @@ -1,5 +1,9 @@ ********************************************************************* -The file needed by the VAX emulator is located in %%DATADIR%% +The 'eclipse' emulator has been renamed to 'simh-eclipse'. + +The file needed by the VAX emulator is located in: + + %%DATADIR%% ********************************************************************* Index: head/emulators/simh/files/simh.1.in =================================================================== --- head/emulators/simh/files/simh.1.in (nonexistent) +++ head/emulators/simh/files/simh.1.in (revision 438141) @@ -0,0 +1,105 @@ +.Dd March 26, 2017 +.Dt SIMH 1 CON +.Os +.Sh NAME +.Nm simh +.Nd Simulation suite for various computer systems +.Sh SYNOPSIS +.Nm +.Op Fl e +.Op Fl q +.Op Fl v +.Oo +.Ar startup-file +.Op Ar arguments +.Oc +.Sh DESCRIPTION +.Nm +is a comprehensive suite of simulators for a number of legacy computer systems. +.Pp +Note that there is no actual +.Nm +command; each simulator is invoked with its own command. +Currently, the +available commands are: +.Bd -ragged -offset indent +.Sy altair , +.Sy altairz80 , +.Sy gri , +.Sy h316 , +.Sy hp2100 , +.Sy i1401 , +.Sy i1620 , +.Sy i7094 , +.Sy ibm1130 , +.Sy id16 , +.Sy id32 , +.Sy lgp , +.Sy nova , +.Sy pdp1 , +.Sy pdp10 , +.Sy pdp11 , +.Sy pdp15 , +.Sy pdp4 , +.Sy pdp7 , +.Sy pdp8 , +.Sy pdp9 , +.Sy s3 , +.Sy sds , +.Sy simh-eclipse , +.Sy swtp6800mp-a , +.Sy swtp6800mp-a2 , +.Sy vax , +.Sy vax780 . +.Ed +.Pp +The following options are available for all of the commands: +.Bl -tag -width indent +.It Fl e +Processing of +.Ar startup-file +(including nested command invocations) is aborted if +a command error is encountered. +.It Fl q +Certain informational messages are suppressed. +.It Fl v +The commands in +.Ar startup-file +are echoed before they are executed. +.El +.Pp +If +.Ar startup-file +is specified, it is used as an initial source of simulator commands. +If +.Ar startup-file +is not specified, +the simulator looks for a startup file consisting of the simulator +name (including its path components) plus the extension +.Pa .ini . +.Pp +If a startup file is specified, either on the +command line or implicitly via the +.Pa .ini +capability, it should contain a series of non-interactive simulator +commands, one per line. +These commands can be used to set up standard parameters, for example disk +sizes. +.Pp +After initializing its internal structures and processing the startup file (if any), +the simulator types out its name and version and then prompts for input with: +.Bd -ragged -offset indent +.Sy sim> +.Ed +.Sh EXIT STATUS +.Nm +exits 0 on success, and >0 if an error occurs. +.Sh SEE ALSO +Documentation is available for each of the simulators. There is +also generic simulator documentation. It can be found locally in +.Pa %%DOCSDIR%% +(if installed), and also at +.Pa http://simh.trailing-edge.com/pdf/all_docs.html . +.Sh AUTHORS +.An "Robert M. Supnik and many others" . +.Fx "port maintenance, and this manual page, by" An "Bob Eager" Aq bob@eager.cx . Property changes on: head/emulators/simh/files/simh.1.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/simh/pkg-descr =================================================================== --- head/emulators/simh/pkg-descr (revision 438140) +++ head/emulators/simh/pkg-descr (revision 438141) @@ -1,20 +1,19 @@ SIMH is a highly portable, multi-system simulator. SIMH implements simulators for: - Data General Nova, Eclipse - Digital Equipment Corporation PDP-1, PDP-4, PDP-7, PDP-8, PDP-9, PDP-10, PDP-11, PDP-15, VAX - GRI Corporation GRI-909 - IBM 1401, 1620, 1130, System 3 - Interdata (Perkin-Elmer) 16b and 32b systems - Hewlett-Packard 2116, 2100, 21MX - Honeywell H316/H516 - MITS Altair 8800, with both 8080 and Z80 - Royal-Mcbee LGP-30, LGP-21 - Scientific Data Systems SDS 940 These simulators are capable of running the Unix V5, V6 and V7 binaries -licenced for non-commercial use by SCO. See ${WRKDIR}/simh_doc.txt for -further details. +licenced for non-commercial use by SCO. See documentation for further details. WWW: http://simh.trailing-edge.com Index: head/emulators/simh/pkg-plist =================================================================== --- head/emulators/simh/pkg-plist (revision 438140) +++ head/emulators/simh/pkg-plist (revision 438141) @@ -1,29 +1,30 @@ bin/altair bin/altairz80 bin/gri bin/h316 bin/hp2100 bin/i1401 bin/i1620 bin/i7094 bin/ibm1130 bin/id16 bin/id32 bin/lgp bin/nova bin/pdp1 bin/pdp10 bin/pdp11 bin/pdp15 bin/pdp4 bin/pdp7 bin/pdp8 bin/pdp9 bin/s3 bin/sds bin/simh-eclipse bin/swtp6800mp-a bin/swtp6800mp-a2 bin/vax bin/vax780 +man/man1/simh.1.gz %%DATADIR%%/ka655x.bin