1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Scheme in one Day/Defun, a small footprint implementation of Scheme with

some database, unix programming and cgi scripting extensions.

Requested by:	 Philippe Laliberte <arsphl@oeil.qc.ca> on -ports
This commit is contained in:
Joseph Koshy 1999-04-28 09:45:39 +00:00
parent 9320c70c85
commit e272093d6d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18176
8 changed files with 204 additions and 0 deletions

29
lang/siod/Makefile Normal file
View File

@ -0,0 +1,29 @@
# New ports collection makefile for: siod
# Version required: 3.4
# Date created: 28 April 1999
# Whom: jkoshy
#
# $Id$
#
DISTNAME= siod
PKGNAME= siod-3.4
CATEGORIES= lang
MASTER_SITES= http://people.delphi.com/gjc/\
ftp://ftp.std.com/pub/gjc/
EXTRACT_SUFX= .tgz
MAINTAINER= jkoshy@FreeBSD.ORG
NO_WRKSUBDIR= true
MAKEFILE= makefile
ALL_TARGET= freebsd
MAN1= siod.1 snapshot-dir.1 snapshot-compare.1 http-get.1 \
cp-build.1 ftp-cp.1 csiod.1 ftp-put.1 ftp-test.1 ftp-get.1 \
http-stress.1 proxy-server.1
post-install:
${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>

1
lang/siod/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (siod.tgz) = c92809b7b2b8b7581e8cce00899732c9

37
lang/siod/files/patch-aa Normal file
View File

@ -0,0 +1,37 @@
--- makefile-- Fri Feb 20 18:22:04 1998
+++ makefile Wed Apr 28 13:02:03 1999
@@ -19,10 +19,10 @@
#
#
MANSEC=1
-MANDIR=$(IROOT)/usr/local/man/man$(MANSEC)
-BINDIR=$(IROOT)/usr/local/bin
-INCDIR=$(IROOT)/usr/local/include
-LIBDIR=$(IROOT)/usr/local/lib
+MANDIR=$(PREFIX)/man/man$(MANSEC)
+BINDIR=$(PREFIX)/bin
+INCDIR=$(PREFIX)/include
+LIBDIR=$(PREFIX)/lib
LIBSIODDIR=$(LIBDIR)/siod
CP_F=cp -f
# -Wmissing-prototypes
@@ -270,6 +270,19 @@
CFLAGS="$(CDEBUG)" \
LD_EXE_LIBS="-lm -ldl" \
build_driver
+
+## FreeBSD, possibly other BSDs
+freebsd:
+ $(MAKE) \
+ PROGS="siod tar.so parser_pratt.so ss.so \
+ regex.so" \
+ CFLAGS="$(CDEBUG) $(GCCW) -DHAVE_SYS_PARAM_H $(CFLAGS)" \
+ LD_LIB_LIBS="-lcrypt -lm" \
+ LD_LIB_FLAGS="-shared" \
+ LD_EXE_FLAGS="-rdynamic -Xlinker -rpath -Xlinker $(LIBDIR) -Xlinker -rpath -Xlinker $(LIBSIODDIR)" \
+ SO="so" \
+ build_driver
+
unknown:
-ln -s ssiod siod

21
lang/siod/files/patch-ab Normal file
View File

@ -0,0 +1,21 @@
--- regex.c-- Mon Dec 1 23:48:17 1997
+++ regex.c Wed Apr 28 12:59:44 1999
@@ -4,6 +4,9 @@
author: george j. carrette
*/
+#if defined(HAVE_SYS_PARAM_H)
+#include <sys/param.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
@@ -11,7 +14,7 @@
#if defined(VMS)
#include <types.h>
#endif
-#if defined(sgi)
+#if defined(sgi) || defined(BSD)
#include <sys/types.h>
#endif
#include <regex.h>

66
lang/siod/files/patch-ac Normal file
View File

@ -0,0 +1,66 @@
--- slibu.c-- Tue Dec 2 00:46:38 1997
+++ slibu.c Wed Apr 28 14:07:05 1999
@@ -20,6 +20,10 @@
#include <errno.h>
#include <stdarg.h>
+#if defined(HAVE_SYS_PARAM_H)
+#include <sys/param.h>
+#endif
+
#if defined(unix)
#include <unistd.h>
#include <dirent.h>
@@ -50,7 +54,7 @@
#include <dl.h>
#endif
-#if defined(__osf__) || defined(sun) || defined(linux) || defined(sgi)
+#if defined(__osf__) || defined(sun) || defined(linux) || defined(sgi) || defined(BSD)
#include <dlfcn.h>
#endif
@@ -288,6 +292,7 @@
return(NIL);}
#endif
+#if !defined(BSD)
LISP lputpwent(LISP alist,LISP file)
{int iflag = no_interrupt(1);
int status;
@@ -296,6 +301,7 @@
status = putpwent(&p,get_c_file(file,NULL));
no_interrupt(iflag);
return(NIL);}
+#endif
LISP laccess_problem(LISP lfname,LISP lacc)
{char *fname = get_c_string(lfname);
@@ -1554,7 +1560,7 @@
/* note: error cases can leak memory in this procedure. */
{LISP init_name;
void (*fcn)(void) = NULL;
-#if defined(__osf__) || defined(sun) || defined(linux) || defined(sgi)
+#if defined(__osf__) || defined(sun) || defined(linux) || defined(sgi) || defined(BSD)
void *handle;
#endif
#if defined(hpux)
@@ -1575,7 +1581,7 @@
{put_st("so-loading ");
put_st(get_c_string(fname));
put_st("\n");}
-#if defined(__osf__) || defined(sun) || defined(linux) || defined(sgi)
+#if defined(__osf__) || defined(sun) || defined(linux) || defined(sgi) || defined(BSD)
#if !defined(__osf__)
/* Observed bug: values of LD_LIBRARY_PATH established with putenv
-after- a process has started are ignored. Work around follows. */
@@ -2197,7 +2203,9 @@
#if defined(__osf__)
init_subr_1("setpwfile",lsetpwfile);
#endif
+#if !defined(BSD)
init_subr_2("putpwent",lputpwent);
+#endif
init_subr_2("access-problem?",laccess_problem);
init_subr_3("utime",lutime);
init_subr_2("fchmod",lfchmod);

1
lang/siod/pkg-comment Normal file
View File

@ -0,0 +1 @@
a small footprint implementation of the Scheme programming language

5
lang/siod/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
SIOD is a small-footprint implementation of the Scheme programming
language that is provided with some database, unix programming and cgi
scripting extensions.
WWW: http://people.delphi.com/gjc/siod.html

44
lang/siod/pkg-plist Normal file
View File

@ -0,0 +1,44 @@
bin/csiod
bin/snapshot-dir
bin/snapshot-compare
bin/http-get
bin/cp-build
bin/ftp-cp
bin/ftp-put
bin/ftp-test
bin/ftp-get
bin/http-stress
bin/proxy-server
bin/siod
lib/siod/fork-test.scm
lib/siod/http-server.scm
lib/siod/http-stress.scm
lib/siod/http.scm
lib/siod/maze-support.scm
lib/siod/pratt.scm
lib/siod/siod.scm
lib/siod/smtp.scm
lib/siod/sql_oracle.scm
lib/siod/sql_rdb.scm
lib/siod/sql_sybase.scm
lib/siod/cgi-echo.scm
lib/siod/find-files.scm
lib/siod/hello.scm
lib/siod/parser_pratt.scm
lib/siod/pop3.scm
lib/siod/selfdoc.scm
lib/siod/sample.c
lib/siod/siod.html
lib/siod/piechart.scm
lib/siod/cgi.scm
lib/siod/ftp.scm
lib/siod/sql_msql.scm
lib/siod/tar.so
lib/siod/ss.so
lib/siod/regex.so
lib/siod/parser_pratt.so
lib/libsiod.so
include/siod.h
@dirrm lib/siod
@exec /sbin/ldconfig -m %D/lib
@unexec /sbin/ldconfig -R