--- tinyscheme-1.37.orig/scheme.h +++ tinyscheme-1.37/scheme.h @@ -70,7 +70,7 @@ #endif #ifndef USE_PLIST -# define USE_PLIST 0 +# define USE_PLIST 1 #endif /* To force system errors through user-defined error handling (see *error-hook*) */ @@ -95,7 +95,7 @@ #endif #ifndef INLINE -# define INLINE +# define INLINE inline #endif #ifndef USE_INTERFACE --- tinyscheme-1.37.orig/makefile +++ tinyscheme-1.37/makefile @@ -1,5 +1,11 @@ # Makefile for TinyScheme # Time-stamp: <2002-06-24 14:13:27 gildea> + +PREFIX=$(DESTDIR)/usr +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man/man1 +INCDIR=$(PREFIX)/include +LIBDIR=$(PREFIX)/lib/tinyscheme # Windows/2000 #CC = cl -nologo @@ -33,7 +39,7 @@ LD = gcc LDFLAGS = -shared DEBUG=-g -Wno-char-subscripts -O -SYS_LIBS= -ldl +SYS_LIBS= -ldl -lm PLATFORM_FEATURES= -DSUN_DL=1 @@ -47,7 +53,7 @@ #LIBPREFIX = lib #OUT = -o $@ -FEATURES = $(PLATFORM_FEATURES) -DUSE_DL=1 -DUSE_MATH=0 -DUSE_ASCII_NAMES=0 +FEATURES = $(PLATFORM_FEATURES) -DUSE_DL=1 -DUSE_MATH=1 -DUSE_ASCII_NAMES=0 -DInitFile=\"$(LIBDIR)/init.scm\" OBJS = scheme.$(Osuf) dynload.$(Osuf) @@ -56,6 +62,12 @@ all: $(LIBTARGET) $(STATICLIBTARGET) scheme$(EXE_EXT) +install: scheme + install -m 755 -d $(BINDIR) $(MANDIR) $(LIBDIR) + install -m 755 $< $(BINDIR)/tinyscheme + install -m 644 debian/tinyscheme.1 $(MANDIR) + install -m 644 init.scm $(LIBDIR) + %.$(Osuf): %.c $(CC) -I. -c $(DEBUG) $(FEATURES) $(DL_FLAGS) $< --- tinyscheme-1.37.orig/debian/docs +++ tinyscheme-1.37/debian/docs @@ -0,0 +1,4 @@ +BUILDING +hack.txt +Manual.txt +MiniSCHEMETribute.txt --- tinyscheme-1.37.orig/debian/control +++ tinyscheme-1.37/debian/control @@ -0,0 +1,20 @@ +Source: tinyscheme +Section: interpreters +Priority: optional +Maintainer: Panu Kalliokoski +Uploaders: MJ Ray (Debian) +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.2 + +Package: tinyscheme +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Very small scheme implementation + TinyScheme is an implementation of the algorithmic language Scheme that + aims to very small memory footprint while being as close to R5RS as + practically feasible. TinyScheme is also a good base for hacking, + given the implementation's small size, easy gluing with C and code + being fully reentrant. + . + TinyScheme is based on an s-expression evaluator. This package + distributes TinyScheme as a standalone executable. --- tinyscheme-1.37.orig/debian/rules +++ tinyscheme-1.37/debian/rules @@ -0,0 +1,78 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +ORIGSOURCE=tinyscheme1.37.zip +ORIGURL=http://tinyscheme.sourceforge.net/$(ORIGSOURCE) +ORIGDIR=tinyscheme.orig + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +get-orig-source: + wget $(ORIGURL) + mkdir $(ORIGDIR) + unzip -d $(ORIGDIR) $(ORIGSOURCE) + tar czf ../tinyscheme_1.37.orig.tar.gz $(ORIGDIR) + rm -rf $(ORIGDIR) $(ORIGSOURCE) + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/tinyscheme + + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- tinyscheme-1.37.orig/debian/changelog +++ tinyscheme-1.37/debian/changelog @@ -0,0 +1,57 @@ +tinyscheme (1.37-3) unstable; urgency=low + + * took away rest of references about "ts". + + -- Panu Kalliokoski Fri, 12 May 2006 15:32:57 +0300 + +tinyscheme (1.37-2) unstable; urgency=low + + * Added a get-orig-source rule in debian/rules. + * Dropped manpage building so that it doesn't have to build-depend on + stx2any and moved it into debian/. + * Changed Uploaders: field. + * Renamed the program from ts to tinyscheme. + + -- Panu Kalliokoski Tue, 25 Apr 2006 15:45:46 +0300 + +tinyscheme (1.37-1) unstable; urgency=low + + * New upstream version. + + -- Panu Kalliokoski Wed, 19 Apr 2006 23:33:02 +0300 + +tinyscheme (1.35-5) unstable; urgency=low + + * Checked spelling of debian/ files + * fixes from debian-mentors + * first upload (closes: #234854) + + -- Panu Kalliokoski Wed, 1 Mar 2006 15:17:42 +0200 + +tinyscheme (1.35-4) unstable; urgency=low + + * fixed lintian errors + * added manual page + + -- Panu Kalliokoski Tue, 28 Feb 2006 12:48:42 +0200 + +tinyscheme (1.35-3) unstable; urgency=low + + * fixed bug: ts should be able to find init.scm. + * documented binary name + + -- Panu Kalliokoski Tue, 11 Jan 2005 00:46:01 +0200 + +tinyscheme (1.35-2) unstable; urgency=low + + * Property lists and math functions compiled in. + + -- Panu Kalliokoski Tue, 11 Jan 2005 00:36:12 +0200 + +tinyscheme (1.35-1) unstable; urgency=low + + * Initial Release. + * debianised by dh_make. + + -- Panu Kalliokoski Mon, 10 Jan 2005 23:13:42 +0200 + --- tinyscheme-1.37.orig/debian/compat +++ tinyscheme-1.37/debian/compat @@ -0,0 +1 @@ +4 --- tinyscheme-1.37.orig/debian/tinyscheme.1 +++ tinyscheme-1.37/debian/tinyscheme.1 @@ -0,0 +1,25 @@ +.TH "tinyscheme" "1" "" "" +.SH NAME +.PP +tinyscheme \(em a tiny Scheme implementation +.SH SYNOPSIS +.PP +\fBtinyscheme\fP [ -? ] +.br +\fBtinyscheme\fP \fIfile\fP [ \fIfile2\fP .\|.\|. ] +.br +\fBtinyscheme\fP -1 \fIfile\fP [ \fIargs\fP .\|.\|. ] +.SH OPTIONS +.PP +Without options, \fBtinyscheme\fP enters a read-eval-print loop. +.RS 3 +.TP +\&\fC-?\fP +Show a usage message. +.TP +\&\fC-1\fP +Run a script with arguments. +.RE +.SH AUTHOR +.PP +This manual page was written for the Debian distribution by Panu Kalliokoski. --- tinyscheme-1.37.orig/debian/copyright +++ tinyscheme-1.37/debian/copyright @@ -0,0 +1,41 @@ +This package was debianised by Panu Kalliokoski on +Mon, 10 Jan 2005 23:13:42 +0200. + +It was downloaded from http://tinyscheme.sourceforge.net/ +Upstream Author: Dimitrios Souflis + +Copyright: Copyright (c) 2000, Dimitrios Souflis + +License: + + LICENSE TERMS + +Copyright (c) 2000, Dimitrios Souflis +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +Neither the name of Dimitrios Souflis nor the names of the +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.