diff options
-rw-r--r-- | build.scm | 10 | ||||
-rw-r--r-- | continue.h | 3 | ||||
-rw-r--r-- | debian/changelog | 483 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 15 | ||||
-rw-r--r-- | debian/copyright | 16 | ||||
-rw-r--r-- | debian/doc-base | 19 | ||||
-rw-r--r-- | debian/postinst | 27 | ||||
-rw-r--r-- | debian/postrm | 9 | ||||
-rw-r--r-- | debian/prerm | 18 | ||||
-rw-r--r-- | debian/require.scm.debian | 2 | ||||
-rwxr-xr-x | debian/rules | 203 | ||||
-rw-r--r-- | scm.1 | 2 | ||||
-rwxr-xr-x | xgen.scm | 2 |
14 files changed, 808 insertions, 2 deletions
@@ -563,6 +563,16 @@ (nostart linux "" "" #f () ()) (dump linux "" "" #f ("unexelf.c" "gmalloc.c") ()) + (m linux-ia64 "" "-lm" "/lib/libm.so" () ()) + (c linux-ia64 "" "-lc" "/lib/libc.so" () ()) + (dlll linux-ia64 "-DSUN_DL" "-ldl" #f () ()) + (regex linux-ia64 "" "" #f () ()) + (graphics linux-ia64 "-I/usr/include/X11 -DX11" "-L/usr/X11R6/lib -lX11" + "/usr/X11R6/lib/libX11.so" () ()) + (curses linux-ia64 "" "-lcurses" "/lib/libncurses.so" () ()) + (nostart linux-ia64 "" "" #f () ()) + (dump linux-ia64 "" "" #f ("unexelf.c" "gmalloc.c") ()) + (dump irix "" "-G 0" #f () ()) (m acorn-unixlib "" "" #f () ()) @@ -84,6 +84,9 @@ typedef long STACKITEM; #ifdef _UNICOS # define STACK_GROWS_UP #endif +#ifdef __hppa__ +# define STACK_GROW_UP +#endif /* James Clark came up with this neat one instruction fix for continuations on the SPARC. It flushes the register windows so diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1566562 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,483 @@ +scm (5e4-1) unstable; urgency=low + + * New upstream release. + * debian/control: Require at least version 3a5 of slib. + + * debian/postrm: New file to remove /usr/lib/scm/implcat and + /usr/lib/scm/slibcat upon purge. (Closes: #455124). Thanks to Kumar + Appaiah for the fix. + + * debian/control (Architecture): Add armel and armeb. (Closes: #408792). + + * debian/rules (install): Don't use -s when installing. dh_strip should + be sufficient, and this should make the nostrip build option work. + (Closes: #438004). + + * continue.h: Repeat change from 5e1-2. + + * xgen.scm: Repeat change from 5e2-4. + + * scm.1: Repeat change from 5e2-4. + + * build.scm: Repeat change from 5e3-5. + + -- Thomas Bushnell, BSG <tb@debian.org> Fri, 28 Dec 2007 15:56:00 -0800 + +scm (5e3-6) unstable; urgency=medium + + * Medium urgency because this is a release critical issue, + and is part of the fix made in slib 3a4-4. + + * debian/control (scm): Add version specification to the slib + dependency (>> 3a4). + + -- Thomas Bushnell, BSG <tb@debian.org> Wed, 8 Nov 2006 00:12:38 -0800 + +scm (5e3-5) unstable; urgency=low + + * build.scm (build: C-libraries): Duplicate linux section for linux-ia64. + + -- Thomas Bushnell, BSG <tb@debian.org> Sat, 28 Oct 2006 02:27:38 -0700 + +scm (5e3-4) unstable; urgency=low + + * debian/rules (PLATFORM): New variable, to hold the SCM platform name; + linux normally, but linux-ia64 on ia64. + (SCM_OPTIONS): Instead of always giving -p linux, use $(PLATFORM). + + -- Thomas Bushnell, BSG <tb@debian.org> Fri, 27 Oct 2006 20:02:53 -0700 + +scm (5e3-3) unstable; urgency=low + + * debian/rules (install): Don't install slibcat, since we build it at + install time. (Closes: #395552) + + -- Thomas Bushnell, BSG <tb@debian.org> Fri, 27 Oct 2006 12:31:20 -0700 + +scm (5e3-2) unstable; urgency=low + + * Makefile (ofiles): If $(ARCH) is ia64, add continue-ia64.o. + * debian/rules: Set ARCH from DEB_BUILD_ARCH when making scmlit. + (Closes: #395312) + + -- Thomas Bushnell, BSG <tb@debian.org> Thu, 26 Oct 2006 21:50:09 -0700 + +scm (5e3-1) unstable; urgency=low + + * New upstream release. + * debian/control (Architecture): Add ia64 to list of supported archs. Now + everything but s390 is listed. (Closes: #335980) + (Build-Depends): Require at least version 3a4 of slib. + + * Change to continue.h from version 5e1-2 repeated here. + + * Change to xgen.scm from version 5e2-4 repeated here. + + * Change to scm.1 from version 5e2-4 repeated here. + + -- Thomas Bushnell, BSG <tb@debian.org> Mon, 23 Oct 2006 23:31:59 -0700 + +scm (5e2-5) unstable; urgency=low + + * debian/rules (binary-arch): Depend on install. Whoops! + + -- Thomas Bushnell, BSG <tb@debian.org> Sat, 21 Oct 2006 19:20:05 -0700 + +scm (5e2-4) unstable; urgency=medium + + * Medium urgency because this fixes the non-working xgen.scm and + compile.scm programs. + + * debian/control (Standards-Version): Update to 3.7.2. + + * debian/control (Architecture): Change i386-hurd to hurd-i386. + + * scm.1 (.TH): Put in section number. + + * debian/doc-base: Put .gz suffix after info files, since that's how we + install them. + + * debian/rules (binary-arch): Make compile.scm and xgen.scm executable. + * xgen.scm (#!): Find /usr/bin/scm in correct place. + + * debian/control (Build-Depends): Add debhelper. + * debian/rules (DH_VERBOSE): New variable; commented out. + (checkdir): Delete variable; replace with dh_testdir. + (checkroot): Delete target; replace with dh_testroot. + (clean): Call dh_testroot. Remove build-stamp first in case something + later bombs. Call dh_clean at the end. + (binary-indep): Just depend on build and install and do nothing else. + (install): New target. Most of the guts come here from binary-arch. + Call debhelper stuff at the front. + Install into debian/scm instead of debian/tmp. + (binary-arch): Use debhelper commands to build the package. + (.PHONY): Add install. + * debian/compat: New file (level 5). + * debian/postinst: Add #DEBHELPER# token. + * debian/prerm: Add #DEBHELPER# token. + + -- Thomas Bushnell, BSG <tb@debian.org> Fri, 20 Oct 2006 13:37:25 -0700 + +scm (5e2-3) unstable; urgency=low + + * debian/control (Architecture): Remove s390, officially unsupported by + upstream. + + -- Thomas Bushnell, BSG <tb@debian.org> Tue, 12 Sep 2006 00:04:04 -0700 + +scm (5e2-2) unstable; urgency=low + + * debian/postinst: Rebuild the slib catalog every time. + + -- Thomas Bushnell, BSG <tb@debian.org> Sat, 27 May 2006 15:35:32 -0700 + +scm (5e2-1) unstable; urgency=low + + * New upstream release. + * Change to continue.h from version 5e1-2 repeated here. + + -- Thomas Bushnell, BSG <tb@debian.org> Wed, 26 Apr 2006 23:01:39 -0700 + +scm (5e1-5) unstable; urgency=low + + * debian/control (scm): Add ppc64 to Architecture list. + * scmfig.h (__powerpc64__, __x86_64__): Define SHORT_INT and CDR_DOUBLES. + (Closes: #353173, #251765). + + -- Thomas Bushnell, BSG <tb@debian.org> Wed, 22 Feb 2006 15:19:31 -0800 + +scm (5e1-4) unstable; urgency=low + + * debian/control (Build-Depends): Actually *make* the preceding change + rather than simply documenting it. (Closes: #347027). + + -- Thomas Bushnell, BSG <tb@debian.org> Mon, 9 Jan 2006 09:54:52 -0800 + +scm (5e1-3) unstable; urgency=low + + * debian/control (Build-Depends): Depend on libx11-dev instead of xlibs-dev. + (Closes: #347027). + + -- Thomas Bushnell, BSG <tb@debian.org> Mon, 9 Jan 2006 09:18:22 -0800 + +scm (5e1-2) unstable; urgency=low + + * debian/control (Architecture): Provide explicit list: alpha amd64 arm + hppa i386 i386-hurd m68k mips mipsel powerpc s390 sparc. This is all + the Debian archs except for ia64, which is officially unspported by + upstream. + + * continue.h: When __hppa__ is defined, set STACK_GROWS_UP. + + -- Thomas Bushnell, BSG <tb@debian.org> Fri, 28 Oct 2005 17:24:42 -0700 + +scm (5e1-1) unstable; urgency=low + + * New upstream release. (Closes: #335970) + * debian/rules (SCM_OPTIONS): Remove -F turtlegr; the file supporting + this option seems to have gone by the wayside. + * debian/rules (binary-arch): Don't try to install grtest.scm; it's gone + now. + + * debian/rules (build-stamp): Use tee to capture output of ./build so + that we can capture a copy of the file in the build log. + + * scm.1: Fix spelling errors in manual page: + verobse -> verbose; + qoutes -> quotes; + aguments -> arguments; + neccessary -> necessary; + preceeds -> precedes. + syncronization -> synchronization. + (Closes: #300131) + + * debian/postinst, debian/prerm: Assume that install-docs is in the + standard place, and test for it there with test -x. (Closes: #292996) + + -- Thomas Bushnell, BSG <tb@debian.org> Thu, 27 Oct 2005 12:00:49 -0700 + +scm (5d9-5) unstable; urgency=low + + * New maintainer. Adopted with permission of previous maintainer. + + * repl.c (s_read): Remove static qualifier on declaration. + * scmfig.h: Use SHORT_INT and CDR_DOUBLES on __powerpc64__ and + __x86_64__ just as with __ia64. + (Closes: #295074, #251765) + + * debian/control (Build-Depends): Use libreadline5-dev in place of + libreadline4-dev. (Closes: #326297) + + -- Thomas Bushnell, BSG <tb@debian.org> Wed, 26 Oct 2005 19:31:02 -0700 + +scm (5d9-4.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for sarge-targetted RC bugfix. + * Revert upstream "CAUTIOUS" define, which causes the scm build to + fail its test suite on alpha (and, it appears, powerpc as well). + Closes: #245810. + + -- Steve Langasek <vorlon@debian.org> Tue, 7 Dec 2004 23:23:48 -0800 + +scm (5d9-4) unstable; urgency=low + + * Apply patch from 144062 to fix hppa build (Closes: #144062) + * Change scm.1 section from Jan 4 200 to 1. (lintian) + + -- James LewisMoss <dres@debian.org> Thu, 6 May 2004 14:24:32 -0400 + +scm (5d9-3) unstable; urgency=low + + * Properly clean up info files. + * Make and install Xlibscm.info. + + -- James LewisMoss <dres@debian.org> Sat, 3 Apr 2004 15:44:38 -0500 + +scm (5d9-2) unstable; urgency=low + + * Fix path problem in slibcat. Hack at mklibcat.scm. (Closes: #241510) + + -- James LewisMoss <dres@debian.org> Sat, 3 Apr 2004 15:35:52 -0500 + +scm (5d9-1) unstable; urgency=low + + * New upstream release + * Merge NMU sparc changes (Closes: #191171, #191356) + * SHORT_INT is defined for ia64 upstream (Closes: #141928) + * Scheme imps now grouped in info file (has been for a while) + (Closes: #115452) + + -- James LewisMoss <dres@debian.org> Sun, 14 Mar 2004 11:44:51 -0500 + +scm (5d6-3.1) unstable; urgency=low + + * NMU with patch from James Troup, to fix FTBFS on sparc. Closes: #191171 + + -- Joey Hess <joeyh@debian.org> Tue, 29 Apr 2003 19:56:51 -0400 + +scm (5d6-3) unstable; urgency=low + + * Add build depend on xlibs-dev (Closes: #148020) + + -- James LewisMoss <dres@debian.org> Fri, 24 May 2002 15:56:12 -0400 + +scm (5d6-2) unstable; urgency=low + + * Remove libregexx-dev from build-depends. + * Change build to use ./scmlit rather than scmlit (should fix some build + problems) (looks like alpha is mostly building) + * New release (Closes: #140175) + * Built with turtlegraphics last time (Closes: #58515) + + -- James LewisMoss <dres@debian.org> Thu, 23 May 2002 13:41:02 -0400 + +scm (5d6-1) unstable; urgency=low + + * New upstream. + * Add xlib and turtlegr to requested list of features. (closes + some bug) + * Make clean actually clean most everything up. + * Remove hacks renaming build to something else and just set build as a + .PHONY target in debian/rules. + * Add the turtlegr code. + + -- James LewisMoss <dres@debian.org> Fri, 17 May 2002 13:27:00 -0400 + +scm (5d5-1) unstable; urgency=low + + * New upstream + * Has fixes for 64 bit archs. May fix alpha compile problem. Does fix + (Closes: #140175) + * Take out -O2 arg. + + -- James LewisMoss <dres@debian.org> Sat, 6 Apr 2002 17:46:22 -0500 + +scm (5d4-3) unstable; urgency=low + + * Don't link with regexx, but just use libc6's regular expression + functions. + * Define (terms) to output /usr/share/common-licenses/GPL (Closes: + #119321) + + -- James LewisMoss <dres@debian.org> Wed, 12 Dec 2001 16:27:02 -0500 + +scm (5d4-2) unstable; urgency=low + + * Add texinfo to build depends (Closes: #107011) + + -- James LewisMoss <dres@debian.org> Sun, 29 Jul 2001 22:16:35 -0400 + +scm (5d4-1) unstable; urgency=low + + * New upstream release. + * Move install-info --remove to prerm. + + -- James LewisMoss <dres@debian.org> Tue, 22 May 2001 01:35:50 -0400 + +scm (5d3-5) unstable; urgency=low + + * Move scm info files to section "The Algorithmic Language Scheme" to + match up with guile. + + -- James LewisMoss <dres@debian.org> Mon, 11 Dec 2000 03:49:34 -0500 + +scm (5d3-4) unstable; urgency=low + + * Fix build depends (Closes: #76691) + + -- James LewisMoss <dres@debian.org> Sat, 11 Nov 2000 09:55:07 -0500 + +scm (5d3-3) unstable; urgency=low + + * Fix path in scm dhelp file. + + -- James LewisMoss <dres@debian.org> Fri, 27 Oct 2000 15:37:47 -0400 + +scm (5d3-2) unstable; urgency=low + + * Actually put the header files in the package. Oops. + + -- James LewisMoss <dres@debian.org> Thu, 26 Oct 2000 21:52:47 -0400 + +scm (5d3-1) unstable; urgency=low + + * New upstream. (Closes: #74761) + * Make (terms) use new license location. + * Make use libregexx rather than librx. + * Fix build depends for above. + * Using new regex lib seems to fix crash (Closes: #66787) + * Consider adding scm-dev package with headers, but instead just add the + headers to the scm package. (Closes: #70787) + * Add doc-base support. + + -- James LewisMoss <dres@debian.org> Sun, 22 Oct 2000 22:29:41 -0400 + +scm (5d2-3) unstable frozen; urgency=low + + * Fix libncurses4-dev -> libncurses5-dev build depend (Closes: #58435) + * Fix libreadline2-dev -> libreadline4-dev build depend. + * Fix license location in copyright file (lintian warning) + * Add tetex-bin as a build depend (needs makeinfo) (Closes: #53197) + * Add -isp option to dpkg-gencontrol (lintian error) + * Move scm to section interpreters. + + -- James LewisMoss <dres@debian.org> Sun, 12 Mar 2000 09:04:17 -0500 + +scm (5d2-2) unstable; urgency=low + + * Apply patch from upstream for bug in eval.c. (Picked up from + comp.lang.scheme) + * Add Build-Depends on slib, librx1g-dev, libncurses4-dev, libreadlineg2-dev. + * Up standards version. + * Correct description: this is an R5RS implementation now + * Make sure no optimizations are done on m68k. (Closes: #52434) + + -- James LewisMoss <dres@debian.org> Thu, 16 Dec 1999 23:53:15 -0500 + +scm (5d2-1) unstable; urgency=low + + * New upstream. + + -- James LewisMoss <dres@debian.org> Mon, 6 Dec 1999 19:30:02 -0500 + +scm (5d1-2) unstable; urgency=low + + * Remove TAGS on clean (cut the diff back down to reasonable size). + + -- James LewisMoss <dres@debian.org> Sat, 13 Nov 1999 14:10:10 -0500 + +scm (5d1-1) unstable; urgency=low + + * New upstream. + * move stuff to /usr/share. + + -- James LewisMoss <dres@debian.org> Sat, 13 Nov 1999 13:26:46 -0500 + +scm (5d0-3) unstable; urgency=low + + * Change scmlit call to ./scmlit call (missed one) (Fixes bugs #37455 + and #35545) + * Change man file permissions to 644 (fixes lintian warning) + + -- James LewisMoss <dres@debian.org> Wed, 12 May 1999 22:39:54 -0400 + +scm (5d0-2) unstable; urgency=low + + * Removed call to add_final in init_crs. lendwin doesn't do anything + and scm was crashing when quit everytime in final_scm. + * Changed copyright to reflect new source. + + -- James LewisMoss <dres@debian.org> Thu, 11 Mar 1999 22:13:19 -0500 + +scm (5d0-1) unstable; urgency=low + + * New upstream. + * Changed (terms) to access "/usr/doc/copyright/GPL". + * Changed regex to use -lrx + + -- James LewisMoss <dres@debian.org> Sun, 7 Mar 1999 12:39:16 -0500 + +scm (5c3-6) unstable; urgency=low + + * New maintainer. + + -- James LewisMoss <dres@debian.org> Fri, 26 Feb 1999 00:45:30 -0500 + +scm (5c3-5) frozen unstable; urgency=low + + * debian/rules chmod +x's bld.scm. Fixes #30521. + + -- David N. Welton <davidw@efn.org> Fri, 11 Dec 1998 20:21:49 -0800 + +scm (5c3-4) frozen unstable; urgency=low + + * Made bld.scm executable. Fixes #29578. + + -- David N. Welton <davidw@efn.org> Mon, 30 Nov 1998 20:57:12 -0800 + +scm (5c3-3) frozen unstable; urgency=low + + * -nw + * Fixes #16762. + * Fixes #18163. + * Fixes #18164. + * Fixes #23743. + * Fixes #24098. + * Fixes #24099. + * Fixes #24547. + + -- David N. Welton <davidw@efn.org> Mon, 9 Nov 1998 21:41:29 -0800 + +scm (5c3-2) frozen unstable; urgency=low + + * Re-uploading for slink freeze. + + -- David N. Welton <davidw@efn.org> Mon, 2 Nov 1998 21:06:01 -0800 + +scm (5c3-1) unstable; urgency=low + + * New upstream version. + + -- David N. Welton <davidw@efn.org> Thu, 29 Oct 1998 21:37:49 -0800 + +scm (5b3-1) unstable; urgency=low + + * New maintainer + * New version + * libc6 + + -- Rob Browning <rlb@cs.utexas.edu> Fri, 12 Dec 1997 17:29:42 -0600 + +scm (4e6-2) unstable; urgency=low + + * Recompiled to use regex0. + + -- Karl Sackett <krs@debian.org> Wed, 18 Dec 1996 13:27:20 -0600 + +scm (4e6-1) unstable; urgency=low + + * First Debian release. + * Makefile.in: scm compiles with regex. + + -- Karl Sackett <krs@debian.org> Fri, 13 Dec 1996 08:55:23 -0600 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..cca40a5 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: scm +Section: interpreters +Priority: optional +Maintainer: Thomas Bushnell, BSG <tb@debian.org> +Standards-Version: 3.7.2 +Build-Depends: slib (>> 3a5), libncurses5-dev, libreadline5-dev, texi2html, texinfo, libx11-dev, debhelper (>= 5) + +Package: scm +Architecture: alpha amd64 arm hppa i386 hurd-i386 m68k mips mipsel powerpc ppc64 sparc ia64 armel armeb +Section: interpreters +Priority: optional +Depends: slib (>> 3a5), ${shlibs:Depends} +Description: A Scheme language interpreter + Scm conforms to Revised^5 Report on the Algorithmic Language Scheme and + the IEEE P1178 specification. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a9a786e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +This is the Debian GNU/Linux prepackaged version of scm. + +This package was put together by Karl Sackett <krs@debian.org>, and +upgraded by James LewisMoss <dres@debian.org> from sources obtained +from: + + ftp://swissnet.ai.mit.edu/ftpdir/scm/scm5d9.tar.gz + +For more information see: + + http://www-swiss.ai.mit.edu/~jaffer/SCM + +License: + +scm is distributed under the GNU General Public License. See +/usr/share/common-licenses/GPL for details. diff --git a/debian/doc-base b/debian/doc-base new file mode 100644 index 0000000..c3c3a7e --- /dev/null +++ b/debian/doc-base @@ -0,0 +1,19 @@ +Document: scm +Title: SCM: scheme interpreter +Author: Aubrey Jaffer +Abstract: This manual describes the scheme interpreter scm. +Section: Apps/Programming + +Format: info +Files: /usr/share/info/scm.info.gz + +Format: info +Files: /usr/share/info/Xlibscm.info.gz + +Format: HTML +Index: /usr/share/doc/scm/scm.html +Files: /usr/share/doc/scm/scm.html + +Format: HTML +Index: /usr/share/doc/scm/Xlibscm.html +Files: /usr/share/doc/scm/Xlibscm.html diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..aa235c4 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,27 @@ +#!/bin/sh +set -e + +install-info --quiet --section "The Algorithmic Language Scheme" \ + "The Algorithmic Language Scheme" \ + --description="A Scheme language interpreter" \ + /usr/share/info/scm.info.gz + +install-info --quiet --section "The Algorithmic Language Scheme" \ + "The Algorithmic Language Scheme" \ + --description="SCM Language X Interface" \ + /usr/share/info/Xlibscm.info.gz + +# doc base support +if [ "$1" = configure ]; then + if test -x /usr/sbin/install-docs >/dev/null 2>&1; then + /usr/sbin/install-docs -i /usr/share/doc-base/scm + fi +fi + +rm -f /usr/lib/scm/slibcat +/usr/bin/scm -c "(require 'new-catalog)" +if [ -e /usr/lib/scm/slibcat ] ; then + chmod 644 /usr/lib/scm/slibcat +fi + +#DEBHELPER# diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..70022ef --- /dev/null +++ b/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ "$1" = purge ] && [ -e /usr/lib/scm/implcat ] && [ -e /usr/lib/scm/slibcat ]; then + rm -f /usr/lib/scm/implcat /usr/lib/scm/slibcat +fi + +#DEBHELPER# diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..37960c3 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/scm ]; then + rm -f /usr/doc/scm +fi + +# doc base support +if [ "$1" = remove -o "$1" = upgrade ]; then + if test -x /usr/sbin/install-docs >/dev/null 2>&1; then + /usr/sbin/install-docs -r scm + fi +fi + +install-info --quiet --remove /usr/share/info/scm.info.gz + +#DEBHELPER# diff --git a/debian/require.scm.debian b/debian/require.scm.debian new file mode 100644 index 0000000..06e43e6 --- /dev/null +++ b/debian/require.scm.debian @@ -0,0 +1,2 @@ +(define (library-vicinity) "/usr/share/slib/") +(load (in-vicinity (library-vicinity) "require")) diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..37527c0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,203 @@ +#! /usr/bin/make -f +# -*-Makefile-*- + +CC =gcc +CFLAGS = -g -Wall +LDFLAGS = + +SHELL =/bin/sh +srcdir =. + +INSTALL =/usr/bin/install +INSTALL_DIR =$(INSTALL) -d -m 755 -o root -g root +INSTALL_PROGRAM =$(INSTALL) -m 755 -o root -g root +INSTALL_DATA =$(INSTALL) -m 644 -o root -g root +INSTALL_MAN =$(INSTALL) -m 644 -o root -g root + +ifeq ($(DEB_BUILD_ARCH), m68k) +COMPILER_OPTIONS= +else +COMPILER_OPTIONS= +endif + +ifeq ($(DEB_BUILD_ARCH),ia64) +PLATFORM=linux-ia64 +else +PLATFORM=linux +endif + +SCM_OPTIONS = -p $(PLATFORM) \ + --compiler-options="$(COMPILER_OPTIONS)" \ + -F cautious \ + -F bignums \ + -F arrays \ + -F array-for-each \ + -F inexact \ + -F record \ + -F compiled-closure \ + -F generalized-c-arguments \ + -F tick-interrupts \ + -F i/o-extensions \ + -F edit-line \ + -F regex \ + -F socket \ + -F posix \ + -F unix \ + -F curses \ + -F dynamic-linking \ + -F xlib \ + -F dump \ + -F macro + +# -F dump +# -F turtlegr + +# -F heap-can-shrink \ + +#SCHEME_LIBRARY_PATH=../slib-3a1/ +#export SCHEME_LIBRARY_PATH +NON_LIB_FILES = 'bench.scm|build.scm|example.scm|r4rstest.scm|pi.scm|grtest.scm' + +# Uncomment this to turn on verbose mode +#export DH_VERBOSE=1 + + +build: build-stamp +build-stamp: + chmod +x build + dh_testdir + cp debian/require.scm.debian require.scm +ifeq ($(DEB_BUILD_ARCH), m68k) + ${MAKE} scmlit CFLAGS="-g -Wall" ARCH=$(DEB_BUILD_ARCH) +else + ${MAKE} scmlit ARCH=$(DEB_BUILD_ARCH) +endif + test -e /usr/share/slib || \ + (echo "Must have slib installed for compile" && exit 1) + ./build ${SCM_OPTIONS} | tee debian/bld + chmod ug+x debian/bld + debian/bld + make scm.info + make Xlibscm.info + texi2html -monolithic scm.texi + texi2html -monolithic Xlibscm.texi + touch build-stamp + +clean: + dh_testdir + dh_testroot + -rm -f build-stamp + + -rm -f scm.info* scm.html tmp1 tmp2 scmflags.h scmlit + -rm -f Xlibscm.info* + -rm -f features.txi platform.txi + -rm -f *.info + -rm require.scm scm + make distclean + -rm -f srcdir.mk + -rm -f debian/bld + -rm -rf *~ debian/*~ debian/tmp* debian/files debian/substvars + + dh_clean + +binary-indep: build install +# We have nothing to do by default + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + -rm -rf debian/scm + +# debian/scm + $(INSTALL_DIR) debian/scm + $(INSTALL_DIR) debian/scm/DEBIAN + $(INSTALL_PROGRAM) debian/postinst debian/scm/DEBIAN + $(INSTALL_PROGRAM) debian/prerm debian/scm/DEBIAN + +# binaries + $(INSTALL_DIR) debian/scm/usr/bin + $(INSTALL_PROGRAM) scm debian/scm/usr/bin + +# library + $(INSTALL_DIR) debian/scm/usr/lib/scm + $(INSTALL_DATA) `ls *.scm | egrep -v ${NON_LIB_FILES}` debian/scm/usr/lib/scm +## $(INSTALL_DATA) slibcat debian/scm/usr/lib/scm + chmod +x debian/scm/usr/lib/scm/compile.scm + chmod +x debian/scm/usr/lib/scm/xgen.scm + +# headers + $(INSTALL_DIR) debian/scm/usr/include/scm + $(INSTALL_DATA) *.h debian/scm/usr/include/scm + +# man pages + $(INSTALL_DIR) debian/scm/usr/share/man/man1 + $(INSTALL_MAN) scm.1 debian/scm/usr/share/man/man1 + gzip -9vr debian/scm/usr/share/man || true + +# documentation + $(INSTALL_DIR) debian/scm/usr/share/doc/scm + $(INSTALL_DATA) debian/changelog debian/scm/usr/share/doc/scm/changelog.Debian + $(INSTALL_DATA) ChangeLog debian/scm/usr/share/doc/scm/changelog + $(INSTALL_DATA) QUICKREF debian/scm/usr/share/doc/scm + $(INSTALL_DATA) README debian/scm/usr/share/doc/scm + gzip -9v debian/scm/usr/share/doc/scm/* + $(INSTALL_DATA) scm.html debian/scm/usr/share/doc/scm + $(INSTALL_DATA) Xlibscm.html debian/scm/usr/share/doc/scm + $(INSTALL_DATA) debian/copyright debian/scm/usr/share/doc/scm + + $(INSTALL_DIR) debian/scm/usr/share/doc-base + $(INSTALL_DATA) debian/doc-base debian/scm/usr/share/doc-base/scm + +# examples + $(INSTALL_DIR) debian/scm/usr/share/doc/scm/examples + $(INSTALL_DATA) r4rstest.scm debian/scm/usr/share/doc/scm/examples + $(INSTALL_DATA) example.scm debian/scm/usr/share/doc/scm/examples + $(INSTALL_DATA) pi.scm debian/scm/usr/share/doc/scm/examples + $(INSTALL_DATA) pi.c debian/scm/usr/share/doc/scm/examples + $(INSTALL_DATA) bench.scm debian/scm/usr/share/doc/scm/examples + $(INSTALL_DATA) split.scm debian/scm/usr/share/doc/scm/examples +# $(INSTALL_DATA) grtest.scm debian/scm/usr/share/doc/scm/examples + +# info pages + $(INSTALL_DIR) debian/scm/usr/share/info + $(INSTALL_DATA) scm.info* debian/scm/usr/share/info + $(INSTALL_DATA) Xlibscm.info* debian/scm/usr/share/info + gzip -9 debian/scm/usr/share/info/* + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installcron +# dh_installinfo +# dh_uncodumented + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: build clean binary binary-arch binary-indep install @@ -1,5 +1,5 @@ .\" dummy line -.TH SCM "April 2006" +.TH SCM 1 "April 2006" .UC 4 .SH NAME scm \- a Scheme Language Interpreter @@ -1,4 +1,4 @@ -#! /usr/local/bin/scm \ %0 %* +#! /usr/bin/scm \ %0 %* - !# ;; Copyright (C) 1991-2000 Free Software Foundation, Inc. ;; |