Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,18 +1,23 @@
# $NetBSD: Makefile,v 1.18 2015/08/18 07:31:12 wiz Exp $
# $NetBSD: Makefile,v 1.19 2016/03/24 10:53:16 youri Exp $
DISTNAME= sc-6.21
PKGREVISION= 3
CATEGORIES= math
MASTER_SITES= ftp://gatekeeper.dec.com/pub/misc/
EXTRACT_SUFX= .tar.Z
DISTNAME= sc-7.16_1.0.1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GITHUB:=n-t-roff/}
MAINTAINER= eric@fox.phoenix.az.us
MAINTAINER= carsten.kunze@arcor.de
HOMEPAGE= https://github.com/n-t-roff/sc
COMMENT= Curses-based spreadsheet program
LICENSE= public-domain
MAKE_JOBS_SAFE= no
HAS_CONFIGURE= yes
WRKSRC= ${WRKDIR}
USE_TOOLS+= yacc
MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man1
INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man1
MAKE_FLAGS= prefix=${DESTDIR}${PREFIX} \
MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 \
DOBACKUPS=
INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man1 share/${name}
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -1,7 +1,7 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:05:49 joerg Exp $
@comment $NetBSD: PLIST,v 1.3 2016/03/24 10:53:16 youri Exp $
bin/psc
bin/sc
bin/scqref
bin/psc
man/man1/sc.1
man/man1/psc.1
man/man1/sc.1
share/sc/tutorial.sc

View File

@@ -1,10 +1,7 @@
$NetBSD: distinfo,v 1.8 2015/01/09 14:30:22 joerg Exp $
$NetBSD: distinfo,v 1.10 2016/03/24 10:53:16 youri Exp $
SHA1 (sc-6.21.tar.Z) = 80d8972bcd1b5adcbc00345b6866954603dadf31
RMD160 (sc-6.21.tar.Z) = 24abfaea2e5ef644394efd5e13ad1850280abbd6
Size (sc-6.21.tar.Z) = 180360 bytes
SHA1 (patch-aa) = 24cb53e798d3b923ff370b29d8de5bbb9e4127b2
SHA1 (patch-ab) = 2055f81bbabaa2752ed6dc18ce66ca857b9654f4
SHA1 (patch-ac) = 1b3628ae0bf881c8c3e9886210d23d63207f912f
SHA1 (patch-ad) = e579f8e29ebba4d653e83741a829262c2b7d8d2b
SHA1 (patch-sc.h) = c432ea8d2f7a99c30f32d8bb0468e29aaa3f27c8
SHA1 (sc-7.16_1.0.1.tar.gz) = 969f57067e1fe4f1548919d2bb0523c129e4af1b
RMD160 (sc-7.16_1.0.1.tar.gz) = 5a6322fe30df7b9da20deb8373170403d07e740e
SHA512 (sc-7.16_1.0.1.tar.gz) = e780543b3a46abc91c2dcd8e30a07f3dc46937bf71fc28f5aef87a2072d8b601f5931363874ccba70a8aa0a81afd748434a1822868e38917217ee56e79b74c0c
Size (sc-7.16_1.0.1.tar.gz) = 214534 bytes
SHA1 (patch-Makefile) = fd3dc25eeb413ff6cc4b5a1edbbbaf332e571814

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-Makefile,v 1.1 2016/03/24 10:53:17 youri Exp $
Install doc file in share instead of lib
--- Makefile.in.orig 2016-03-23 17:51:29.000000000 +0100
+++ Makefile.in 2016-03-24 11:04:24.197693519 +0100
@@ -32,7 +32,7 @@
# This is where the library file (tutorial) goes.
#LIBDIR=/usr/local/share/$(name) # reno
-LIBDIR=${prefix}/lib/$(name)
+LIBDIR=${prefix}/share/$(name)
LIBRARY=-DLIBDIR=\"${LIBDIR}\"
# Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up

View File

@@ -1,206 +0,0 @@
$NetBSD: patch-aa,v 1.4 2009/12/12 20:22:01 asau Exp $
--- Makefile.orig 1992-05-11 22:43:33.000000000 +0400
+++ Makefile 2009-12-12 23:19:38.000000000 +0300
@@ -18,18 +18,18 @@
# This is where the install step puts it.
#EXDIR=/site/bin
-EXDIR=/usr/local/bin
+EXDIR=${PREFIX}/bin
# This is where the man page goes.
-#MANDIR=/usr/local/src/man/man1 # reno
-#MANEXT=1 # reno
-MANDIR=/usr/man/manl
-MANEXT=l
+MANDIR=${PREFIX}/man/man1 # reno
+MANEXT=1 # reno
+#MANDIR=/usr/man/manl
+#MANEXT=l
MANMODE=644
# This is where the library file (tutorial) goes.
#LIBDIR=/usr/local/share/$(name) # reno
-LIBDIR=/usr/local/lib/$(name)
+LIBDIR=${PREFIX}/share/$(name)
# Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
SIMPLE=
@@ -47,8 +47,8 @@
# Set INTERNATIONAL if you need 8 bit characters. You should
# not set this if you are running 5.3.0. I think it is OK in 5.3.1.
-#INTERNATIONAL=-DINTERNATIONAL
-INTERNATIONAL=
+INTERNATIONAL=-DINTERNATIONAL
+#INTERNATIONAL=
# Set SIGVOID if signal routines are type void.
# use: SIGVOID=-DSIGVOID for:
@@ -67,30 +67,30 @@
# Set RINT= on/with (they have rint):
# SunOS 4.0.3c compiler
# BSD4.4 (reno)
-#RINT=
-RINT=-DRINT
+RINT=
+#RINT=-DRINT
# Set RE_COMP if you have the re_comp/re_exec regular expression routines
# (most BSD based systems do).
-#RE_COMP=-DRE_COMP
-RE_COMP=
+RE_COMP=-DRE_COMP
+#RE_COMP=
# Set REGCMP if you have the regcmp/regex regular expression routines
# (most System V based systems do)
-REGCMP=-DREGCMP
+#REGCMP=-DREGCMP
#REGCMP=
# This is the name of a pager like "more".
# "pg" may be appropriate for SYSV.
-DFLT_PAGER=-DDFLT_PAGER=\"less\"
-#DFLT_PAGER=-DDFLT_PAGER=\"more\" # generic && reno
+#DFLT_PAGER=-DDFLT_PAGER=\"less\"
+DFLT_PAGER=-DDFLT_PAGER=\"more\" # generic && reno
# this is the name to save back ups in
SAVE=-DSAVENAME=\"$(NAME).SAVE\"
# path to crypt, do not define if you don't have crypt
# most systems
-CRYPT=-DCRYPT_PATH=\"/bin/crypt\"
+#CRYPT=-DCRYPT_PATH=\"/bin/crypt\"
# BSD
#CRYPT=-DCRYPT_PATH=\"/usr/bin/crypt\"
# other people?
@@ -133,8 +133,8 @@
# noticing the rows become 2, 3, 40, 41, 42... (etc).
# Known systems/terminfos w/ curses problems:
# {Esix Rev. D+, AT&T SysV3.2.1}:at386-m,xterm, HP-UX7.0:(not sure)
-IDLOKISBAD=-DIDLOKBAD
-#IDLOKISBAD=
+#IDLOKISBAD=-DIDLOKBAD
+IDLOKISBAD=
# If you don't have idlok() in your curses define NOIDLOK
NO_IDLOK=
@@ -149,17 +149,17 @@
# IF you have problems w/ your yacc try bison, Berkeley yacc, or
# some other yacc. Some systems don't allow you to
# increase the number of terminals (mostly AT&T), SCO's does though.
-#YACC=yacc
+YACC=yacc
# NOTE: Do not use with bison 1.16! Get a new version....
-YACC=bison -y
+#YACC=bison -y
# MS-DOS needs y_tab instead of the normal y.tab
#YTAB=y_tab
YTAB=y.tab
# Command to use to make temporary copies of some source files.
-LN=ln
-#LN=ln -s
+#LN=ln
+LN=ln -s
#LN=cp
#### SYSTEM DEFINES ####
@@ -178,11 +178,11 @@
#CFLAGS= -DSYSV2 -g -pipe -traditional
# Use this for system V.3
-CFLAGS= -DSYSV3 -O
-LDFLAGS= -s
+#CFLAGS= -O -DSYSV3
+#LDFLAGS= -s
#CFLAGS= -DSYSV3 -g
#LDFLAGS= -g
-LIB=-lm -lcurses -lPW
+LIB=
# with gcc also use:
#CC=gcc
#CFLAGS= -DSYSV3 -O -pipe -traditional
@@ -221,9 +221,9 @@
#CFLAGS= -O -DBSD42 -pipe
# Use this for BSD 4.3
-#CFLAGS= -O -DBSD43
+CFLAGS += -DBSD43
#LDFLAGS=
-#LIB=-lm -lcurses -ltermcap
+LIB=-lm -lcurses -ltermcap -lcompat
# Use this for SunOS 4.X if you have the System V package installed.
# This will link with the System V curses which is preferable to the
@@ -440,36 +440,36 @@
p$(name).man: p$(name).1
nroff -man p$(name).1 > p$(name).man
-install: $(EXDIR)/$(name) $(EXDIR)/$(name)qref $(EXDIR)/p$(name) \
- $(LIBDIR)/tutorial \
- $(MANDIR)/$(name).$(MANEXT) $(MANDIR)/p$(name).$(MANEXT)
-
-$(EXDIR)/$(name): $(name)
- cp $(name) $(EXDIR)
- strip $(EXDIR)/$(name)
-
-$(EXDIR)/$(name)qref: $(name)qref
- cp $(name)qref $(EXDIR)
- strip $(EXDIR)/$(name)qref
-
-$(EXDIR)/p$(name): p$(name)
- cp p$(name) $(EXDIR)
- strip $(EXDIR)/p$(name)
-
-$(LIBDIR)/tutorial: tutorial.sc $(LIBDIR)
- cp tutorial.sc $(LIBDIR)/tutorial.$(name)
- chmod $(MANMODE) $(LIBDIR)/tutorial.$(name)
-
-$(LIBDIR):
- mkdir $(LIBDIR)
-
-$(MANDIR)/$(name).$(MANEXT): $(name).1
- cp $(name).1 $(MANDIR)/$(name).$(MANEXT)
- chmod $(MANMODE) $(MANDIR)/$(name).$(MANEXT)
-
-$(MANDIR)/p$(name).$(MANEXT): p$(name).1
- cp p$(name).1 $(MANDIR)/p$(name).$(MANEXT)
- chmod $(MANMODE) $(MANDIR)/p$(name).$(MANEXT)
+install: $(DESTDIR)$(EXDIR)/$(name) $(DESTDIR)$(EXDIR)/$(name)qref $(DESTDIR)$(EXDIR)/p$(name) \
+ $(DESTDIR)$(LIBDIR)/tutorial \
+ $(DESTDIR)$(MANDIR)/$(name).$(MANEXT) $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT)
+
+$(DESTDIR)$(EXDIR)/$(name): $(name)
+ cp $(name) $(DESTDIR)$(EXDIR)
+ strip $(DESTDIR)$(EXDIR)/$(name)
+
+$(DESTDIR)$(EXDIR)/$(name)qref: $(name)qref
+ cp $(name)qref $(DESTDIR)$(EXDIR)
+ strip $(DESTDIR)$(EXDIR)/$(name)qref
+
+$(DESTDIR)$(EXDIR)/p$(name): p$(name)
+ cp p$(name) $(DESTDIR)$(EXDIR)
+ strip $(DESTDIR)$(EXDIR)/p$(name)
+
+$(DESTDIR)$(LIBDIR)/tutorial: tutorial.sc $(DESTDIR)$(LIBDIR)
+ cp tutorial.sc $(DESTDIR)$(LIBDIR)/tutorial.$(name)
+ chmod $(MANMODE) $(DESTDIR)$(LIBDIR)/tutorial.$(name)
+
+$(DESTDIR)$(LIBDIR):
+ mkdir $(DESTDIR)$(LIBDIR)
+
+$(DESTDIR)$(MANDIR)/$(name).$(MANEXT): $(name).1
+ cp $(name).1 $(DESTDIR)$(MANDIR)/$(name).$(MANEXT)
+ chmod $(MANMODE) $(DESTDIR)$(MANDIR)/$(name).$(MANEXT)
+
+$(DESTDIR)$(MANDIR)/p$(name).$(MANEXT): p$(name).1
+ cp p$(name).1 $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT)
+ chmod $(MANMODE) $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT)
diffs: ${SRC}
for i in ${DOCS} ${SRC} ;\

View File

@@ -1,18 +0,0 @@
$NetBSD: patch-ab,v 1.2 2000/01/12 20:30:34 wiz Exp $
--- lex.c.orig Mon May 11 20:43:36 1992
+++ lex.c Thu Jul 30 20:26:51 1998
@@ -384,11 +384,11 @@
ctl('z'), 0
};
-void
+int
charout(c)
int c;
{
- (void)putchar(c);
+ return putchar(c);
}
void

View File

@@ -1,55 +0,0 @@
$NetBSD: patch-ac,v 1.4 2006/12/11 14:52:04 obache Exp $
--- interp.c.orig 1992-05-11 18:43:36.000000000 +0000
+++ interp.c
@@ -21,13 +21,13 @@
#include <ieeefp.h>
#endif /* IEEE_MATH */
+#include <errno.h>
#include <math.h>
#include <signal.h>
#include <setjmp.h>
#include <stdio.h>
#include <ctype.h>
-extern int errno; /* set by math functions */
#ifdef BSD42
#include <strings.h>
#include <sys/time.h>
@@ -476,7 +476,7 @@ double
dodts(mo, day, yr)
int mo, day, yr;
{
- long trial;
+ time_t trial;
register struct tm *tp;
register int i;
register long jdate;
@@ -484,7 +484,7 @@ int mo, day, yr;
mdays[1] = 28 + (yr%4 == 0);
if (mo < 1 || mo > 12 || day < 1 || day > mdays[--mo] ||
- yr > 1999 || yr < 1970) {
+ yr > 2035 || yr < 1970) {
error("@dts: invalid argument");
cellerror = CELLERROR;
return(0.0);
@@ -551,15 +551,13 @@ dotime(which, when)
int which;
double when;
{
- long time();
-
static long t_cache;
static struct tm tm_cache;
struct tm *tp;
- long tloc;
+ time_t tloc;
if (which == NOW)
- return (double)time((long *)0);
+ return (double)time(NULL);
tloc = (long)when;

View File

@@ -1,40 +0,0 @@
$NetBSD: patch-ad,v 1.2 2006/09/29 15:55:27 he Exp $
--- cmds.c.orig 1992-05-11 20:43:34.000000000 +0200
+++ cmds.c
@@ -28,6 +28,7 @@
#include "sc.h"
#include <signal.h>
#include <errno.h>
+#include <limits.h>
#ifdef SYSV3
extern void exit();
@@ -39,8 +40,6 @@ void openrow();
void syncref();
void unspecial();
-extern int errno;
-
/* a linked list of free [struct ent]'s, uses .next as the pointer */
extern struct ent *freeents;
@@ -700,12 +699,18 @@ int r0, c0, rn, cn;
int fieldlen, nextcol;
register row, col;
register struct ent **pp;
+ char fnbuf[PATH_MAX];
if ((strcmp(fname, curfile) == 0) &&
!yn_ask("Confirm that you want to destroy the data base: (y,n)")) {
return;
}
+ if (*fname == '\0') {
+ snprintf(fnbuf, sizeof fnbuf, "%s.asc", curfile);
+ fname = fnbuf;
+ }
+
if (!pline && (pline = scxmalloc((unsigned)(FBUFLEN *
++fbufs_allocated))) == (char *)NULL)
{ error("Malloc failed in printfile()");

View File

@@ -1,15 +0,0 @@
$NetBSD: patch-sc.h,v 1.1 2015/01/09 14:30:22 joerg Exp $
--- sc.h.orig 2015-01-09 12:50:27.000000000 +0000
+++ sc.h
@@ -418,9 +418,4 @@ extern int collimit;
#endif
-#if defined(BSD42) || defined(BSD43) && !defined(ultrix)
-#define memcpy(dest, source, len) bcopy(source, dest, (unsigned int)len);
-#define memset(dest, zero, len) bzero((dest), (unsigned int)(len));
-#else
-#include <memory.h>
-#endif
+#include <string.h>