Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2006 21:03:02 GMT
From:      trasz <trasz@pin.if.uz.zgora.pl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/100834: New port: emulators/nonpareil - Simulator for many HP calculators
Message-ID:  <200607252103.k6PL32iX076165@www.freebsd.org>
Resent-Message-ID: <200607252110.k6PLAFWr007027@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         100834
>Category:       ports
>Synopsis:       New port: emulators/nonpareil - Simulator for many HP calculators
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 25 21:10:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     trasz
>Release:        
>Organization:
>Environment:
>Description:
Nonpareil is a high-fidelity simulator for calculators. It currently
supports many HP calculators models introduced between 1972 and
1982. Simulation fidelity is achieved through the use of the actual
microcode of the calculators, thus in most cases the simulation
behavior exactly matches that of the real calculator.

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       nonpareil
#       nonpareil/Makefile
#       nonpareil/distinfo
#       nonpareil/files
#       nonpareil/files/patch-src-util.h
#       nonpareil/files/patch-src-SConscript
#       nonpareil/files/patch-src-util.c
#       nonpareil/files/patch-src-proc.c
#       nonpareil/files/patch-src-sound.c
#       nonpareil/pkg-descr
#       nonpareil/pkg-plist
#
echo c - nonpareil
mkdir -p nonpareil > /dev/null 2>&1
echo x - nonpareil/Makefile
sed 's/^X//' >nonpareil/Makefile << 'END-of-nonpareil/Makefile'
X# New ports collection makefile for:   nonpareil
X# Date created:                        24 Jul 2006
X# Whom:                                trasz
X#
X# $FreeBSD$
X#
X
XPORTNAME=      nonpareil
XPORTVERSION=   0.77
XCATEGORIES=    emulators
XMASTER_SITES=  http://nonpareil.brouhaha.com/download/
X
XMAINTAINER=    trasz@pin.if.uz.zgora.pl
XCOMMENT=       Simulator for many HP calculators
X
XUSE_SCONS=     yes
XUSE_GNOME=     gtk20 libxml2
XUSE_SDL=        mixer
XBUILD_DEPENDS= pnmtopng:${PORTSDIR}/graphics/netpbm \
X               bison2:${PORTSDIR}/devel/bison2
X
XPLIST_EXECS=   bin/uasm bin/nonpareil bin/modutil
XPLIST_DATA=    lib/nonpareil/21.obj lib/nonpareil/25.obj \
X               lib/nonpareil/32e.obj lib/nonpareil/33c.obj \
X               lib/nonpareil/34c.obj lib/nonpareil/37e.obj \
X               lib/nonpareil/38c.obj lib/nonpareil/38e.obj \
X               lib/nonpareil/41cv.mod lib/nonpareil/41cx.mod \
X               lib/nonpareil/82143a.mod lib/nonpareil/82182a.mod \
X               lib/nonpareil/11c.obj lib/nonpareil/12c.obj \
X               lib/nonpareil/15c.obj lib/nonpareil/16c.obj \
X               lib/nonpareil/35.kml lib/nonpareil/45.kml \
X               lib/nonpareil/55.kml lib/nonpareil/80.kml \
X               lib/nonpareil/21.kml lib/nonpareil/25.kml \
X               lib/nonpareil/32e.kml lib/nonpareil/33c.kml \
X               lib/nonpareil/34c.kml lib/nonpareil/37e.kml \
X               lib/nonpareil/38c.kml lib/nonpareil/38e.kml \
X               lib/nonpareil/41cv.kml lib/nonpareil/41cx.kml \
X               lib/nonpareil/11c.kml lib/nonpareil/12c.kml \
X               lib/nonpareil/15c.kml lib/nonpareil/16c.kml \
X               lib/nonpareil/35.png lib/nonpareil/45.png \
X               lib/nonpareil/55.png lib/nonpareil/80.png \
X               lib/nonpareil/21.png lib/nonpareil/25.png \
X               lib/nonpareil/32e.png lib/nonpareil/33c.png \
X               lib/nonpareil/34c.png lib/nonpareil/37e.png \
X               lib/nonpareil/38c.png lib/nonpareil/41cv.png \
X               lib/nonpareil/11c.png lib/nonpareil/12c.png \
X               lib/nonpareil/15c.png lib/nonpareil/16c.png \
X               lib/nonpareil/35.obj lib/nonpareil/35.lst \
X               lib/nonpareil/45.obj lib/nonpareil/45.lst \
X               lib/nonpareil/55.obj lib/nonpareil/55.lst \
X               lib/nonpareil/80.obj lib/nonpareil/80.lst
X
XPLIST_FILES=   ${PLIST_EXECS} ${PLIST_DATA}
XPORTDOCS=      CREDITS DEBUGGING README TODO
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X       ${MKDIR} ${DOCSDIR}
X       ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
X.endif
X       ${CHOWN} 0:0 ${PLIST_FILES:S|^|${PREFIX}/|}
X       ${TOUCH} ${PLIST_FILES:S|^|${PREFIX}/|}
X       ${CHMOD} 644 ${PLIST_DATA:S|^|${PREFIX}/|}
X       ${CHMOD} 755 ${PLIST_EXECS:S|^|${PREFIX}/|}
X
X.include <bsd.port.mk>
END-of-nonpareil/Makefile
echo x - nonpareil/distinfo
sed 's/^X//' >nonpareil/distinfo << 'END-of-nonpareil/distinfo'
XMD5 (nonpareil-0.77.tar.gz) = b3aadd73fe28cf7cfa2118306a0519b9
XSHA256 (nonpareil-0.77.tar.gz) = 8e1dd0574bafc17e5946af3af15c1f7eb6bc9afb8436cd7d45ab7340660ed575
XSIZE (nonpareil-0.77.tar.gz) = 4903320
END-of-nonpareil/distinfo
echo c - nonpareil/files
mkdir -p nonpareil/files > /dev/null 2>&1
echo x - nonpareil/files/patch-src-util.h
sed 's/^X//' >nonpareil/files/patch-src-util.h << 'END-of-nonpareil/files/patch-src-util.h'
X--- src.orig/util.h    Mon Jul 24 14:32:21 2006
X+++ src/util.h Mon Jul 24 14:33:52 2006
X@@ -56,7 +56,7 @@
X // strlcpy will copy as much of src into dest as it can, up to one less than
X // the maximum length of dest specified by the argument l.  Unlike strncpy(),
X // strlcpy() will always leave dest NULL-terminated on return.
X-char *strlcpy (char *dest, const char *src, size_t l);
X+//char *strlcpy (char *dest, const char *src, size_t l);
X 
X 
X // strlncpy will copy up to n characters from src to dest, but not more than
END-of-nonpareil/files/patch-src-util.h
echo x - nonpareil/files/patch-src-SConscript
sed 's/^X//' >nonpareil/files/patch-src-SConscript << 'END-of-nonpareil/files/patch-src-SConscript'
X--- src.orig/SConscript        Mon Jul 24 14:32:21 2006
X+++ src/SConscript     Mon Jul 24 14:33:03 2006
X@@ -37,7 +37,7 @@
X     pkg_config_cmd = 'pkg-config'
X pkg_config_cmd += ' --cflags --libs '
X 
X-sdl_pkg_config_cmd = 'sdl-config --cflags --libs'
X+sdl_pkg_config_cmd = 'sdl11-config --cflags --libs'
X 
X build_env.Append (CPPPATH = ['.'])
X build_env.Append (CPPPATH = ['#/build/common'])  # generated includes
END-of-nonpareil/files/patch-src-SConscript
echo x - nonpareil/files/patch-src-util.c
sed 's/^X//' >nonpareil/files/patch-src-util.c << 'END-of-nonpareil/files/patch-src-util.c'
X--- src.orig/util.c    Mon Jul 24 14:32:21 2006
X+++ src/util.c Mon Jul 24 14:34:48 2006
X@@ -130,6 +130,7 @@
X }
X 
X 
X+#if 0
X // strlcpy will copy as much of src into dest as it can, up to one less than
X // the maximum length of dest specified by the argument l.  Unlike strncpy(),
X // strlcpy() will always leave dest NULL-terminated on return.
X@@ -139,6 +140,7 @@
X   dest [l - 1] = '\0';
X   return dest;
X }
X+#endif
X 
X 
X // strlncpy will copy up to n characters from src to dest, but not more than
END-of-nonpareil/files/patch-src-util.c
echo x - nonpareil/files/patch-src-proc.c
sed 's/^X//' >nonpareil/files/patch-src-proc.c << 'END-of-nonpareil/files/patch-src-proc.c'
Xdiff -urN src.orig/proc.c src/proc.c
X--- src.orig/proc.c    Tue Jul 25 21:29:20 2006
X+++ src/proc.c Tue Jul 25 21:30:08 2006
X@@ -352,7 +352,13 @@
X   // Microsoft freopen() isn't compliant with the C standard, which allows
X   // NULL for the filename if you're reopening an existing file handle.
X #else
X+  // XXX: for some reason this does not work.
X+#if 0
X   f = freopen (NULL, "r", f);
X+#else
X+  fclose(f);
X+  f = fopen(fn, "rb");
X+#endif
X #endif
X   if (! f)
X     {
END-of-nonpareil/files/patch-src-proc.c
echo x - nonpareil/files/patch-src-sound.c
sed 's/^X//' >nonpareil/files/patch-src-sound.c << 'END-of-nonpareil/files/patch-src-sound.c'
X--- src.orig/sound.c   Mon Jul 24 14:38:57 2006
X+++ src/sound.c        Mon Jul 24 14:39:06 2006
X@@ -24,7 +24,7 @@
X #include <stdlib.h>
X #include <string.h>
X 
X-#include "SDL/SDL_audio.h"
X+#include "SDL11/SDL_audio.h"
X 
X #include "util.h"
X #include "sound.h"
END-of-nonpareil/files/patch-src-sound.c
echo x - nonpareil/pkg-descr
sed 's/^X//' >nonpareil/pkg-descr << 'END-of-nonpareil/pkg-descr'
XNonpareil is a high-fidelity simulator for calculators. It currently
Xsupports many HP calculators models introduced between 1972 and
X1982. Simulation fidelity is achieved through the use of the actual
Xmicrocode of the calculators, thus in most cases the simulation
Xbehavior exactly matches that of the real calculator.
X
XWWW: http://nonpareil.brouhaha.com/
END-of-nonpareil/pkg-descr
echo x - nonpareil/pkg-plist
sed 's/^X//' >nonpareil/pkg-plist << 'END-of-nonpareil/pkg-plist'
X@dirrm lib/nonpareil
END-of-nonpareil/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607252103.k6PL32iX076165>