--- gambc-4.2.8.orig/debian/emacsen-startup +++ gambc-4.2.8/debian/emacsen-startup @@ -0,0 +1,18 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian gambc package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The gambc package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/gambc"))) + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)))) --- gambc-4.2.8.orig/debian/gambc.prerm +++ gambc-4.2.8/debian/gambc.prerm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ "$1" = remove ]; then + update-alternatives --remove scheme-r5rs /usr/bin/gsi +fi + +#DEBHELPER# --- gambc-4.2.8.orig/debian/gsi.1 +++ gambc-4.2.8/debian/gsi.1 @@ -0,0 +1,141 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH GSI/GSC 1 "April 19, 2008" "4.2.6" "User Commands" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +gsi \- Gambit-C Scheme Interpreter and Compiler +.SH SYNOPSIS +.B gsi +[ +-\fB:\fP\fIarg\fP,... ] +[ +.B \-f +] +[ +.B \-v +] +[[\-] +[ +.B \-e +] +[ +.I file +]]... +.br +.B gsc +.RI [ options ] +.RI [ files ] +.br +.PP +\fBgsc-script, gsi-script, scheme-ieee-1178-1990, scheme-r4rs, scheme-srfi-0, +six\fP, and \fBsix-script\fP: currently synonyms for \fBgsi\fP. + +\fBscheme-r5rs\fP is registered in the Debian alternatives system and can be +configured to point at \fBgsi\fP. + +.SH DESCRIPTION +This manual page documents briefly the +.B gsi +and +.B gsc +commands. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +The \fBGambit-C\fP programming system is a full implementation of the Scheme +language which conforms to the R4RS, R5RS, and IEEE Scheme standards. It +consists of two main programs: \fBgsi\fP, the Gambit Scheme interpreter, and +\fBgsc\fP, the Gambit Scheme to C compiler. The interpreter provides an +interactive environment with a debugger, while the compiler can produce +stand-alone executables or modules which can be linked or loaded at run time. +Interpreted code and compiled code can be freely mixed. C modules can be +linked with Scheme modules. +.PP +The interpreter is executed in \fBinteractive mode\fP when no file or `\-' or +`\-e' option is given on the command line. When at least one file or `\-' or +`\-e' option is present the interpreter is executed in \fBbatch mode\fP. +.PP +Entering \fB,q\fP or (exit) at the interpreter's command prompt will exit the +interpreter. +.PP +In \fBbatch mode\fP the command line arguments denote files to be loaded, REPL +interactions to start (`\-' option), and expressions to be evaluated (`\-e' +option). Note that the `\-' and `\-e' options can be interspersed with the +files on the command line and can occur multiple times. The interpreter +processes the command line arguments from left to right, loading files with the +`load' procedure and evaluating expressions with the `eval' procedure in the +global interaction environment. After this processing the interpreter exits. +.PP +\fBgsc-cc-o.bat\fP is a script called by \fBgsc\fP to generate object files during +compilation. It takes its data from environment variables and is not intended +for user interaction. + +.SH OPTIONS +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \- +Initiate a REPL at this point. (Continue by issuing a \fB,(c 0)\fP command at +the interpreter prompt) +.TP +.B \-: +Comma separated list of run-time options +.TP +.B \-e +Evaluate an expression. +.TP +.B \-f +Skip initialization file. +.TP +.B \-v +Show version of program. +.SH SEE ALSO +.br + +The documentation for these programs is arguably too extensive to cover with +man pages. Only the common command line options are given here. The programs +are documented fully in \fBGambit-C\fP, available on-line at the Gambit-C +Homepage. Once package gambc-doc is installed, this 200+ page document is +available via the Info system (info gambit-c), in html via doc-base, or as +files in /usr/share/doc/gambc (html, pdf, txt). + +.br + +The Debian package r5rs-doc provides the Revised(5) Report on the Algorithmic +Language Scheme in several formats. That document is the defining +description of the programming language Scheme. + +.br +\fBdhelp(1), gcc(1), update-alternatives(8)\fP +.SH COPYRIGHT +.br +Gambit-C is Copyright (C) 1994-2008 by Marc Feeley, all rights reserved. +.PP +Gambit-C is released under a dual LGPL and Apache 2 license. +.br +For further information refer to /usr/share/doc/gambc/copyright. +.PP +This manual page is +.br +Copyright (C) 2006-2008 Marc Feeley and Kurt B. Kaiser +.br +Released under the same license as Gambit-C. + +.SH AUTHOR +Gambit-C was written by Marc Feeley . +.PP +Homepage: http://www.iro.umontreal.ca/~gambit/ --- gambc-4.2.8.orig/debian/gambc.docs +++ gambc-4.2.8/debian/gambc.docs @@ -0,0 +1 @@ +README --- gambc-4.2.8.orig/debian/gambc.links +++ gambc-4.2.8/debian/gambc.links @@ -0,0 +1,16 @@ +usr/bin/gsi usr/bin/gsc-script +usr/bin/gsi usr/bin/gsi-script +usr/bin/gsi usr/bin/scheme-ieee-1178-1990 +usr/bin/gsi usr/bin/scheme-r4rs +usr/bin/gsi usr/bin/scheme-srfi-0 +usr/bin/gsi usr/bin/six +usr/bin/gsi usr/bin/six-script +usr/share/man/man1/gsi.1.gz usr/share/man/man1/gsc.1.gz +usr/share/man/man1/gsi.1.gz usr/share/man/man1/gsc-script.1.gz +usr/share/man/man1/gsi.1.gz usr/share/man/man1/gsi-script.1.gz +usr/share/man/man1/gsi.1.gz usr/share/man/man1/scheme-ieee-1178-1990.1.gz +usr/share/man/man1/gsi.1.gz usr/share/man/man1/scheme-r4rs.1.gz +usr/share/man/man1/gsi.1.gz usr/share/man/man1/scheme-srfi-0.1.gz +usr/share/man/man1/gsi.1.gz usr/share/man/man1/six.1.gz +usr/share/man/man1/gsi.1.gz usr/share/man/man1/six-script.1.gz +usr/share/man/man1/gsi.1.gz usr/share/man/man1/gsc-cc-o.bat.1.gz --- gambc-4.2.8.orig/debian/emacsen-remove +++ gambc-4.2.8/debian/emacsen-remove @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/gambc + +FLAVOR=$1 +PACKAGE=gambc + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/gambc.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- gambc-4.2.8.orig/debian/gambc-doc.doc-base +++ gambc-4.2.8/debian/gambc-doc.doc-base @@ -0,0 +1,13 @@ +Document: gambc +Title: Gambit-C Manual +Author: Marc Feeley +Abstract: This manual describes the Gambit-C + Scheme interpreter (gsi) and compiler (gsc). +Section: Programming + +Format: text +Files: /usr/share/doc/gambc-doc/gambit-c.txt.gz + +Format: HTML +Index: /usr/share/doc/gambc-doc/gambit-c.html +Files: /usr/share/doc/gambc-doc/*.html --- gambc-4.2.8.orig/debian/changelog +++ gambc-4.2.8/debian/changelog @@ -0,0 +1,64 @@ +gambc (4.2.8-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Remove trailing backslash in debian/control, they are now forbidden + and no longer needed. Patch from Cyril Brulebois. (Closes: #535299) + + -- Stefano Zacchiroli Mon, 14 Sep 2009 18:15:36 +0200 + +gambc (4.2.8-1) unstable; urgency=low + + * New upstream release + * Upstream has split shared lib into three; modify packaging to match + * Fix typo in gambc Suggests: r5rs-doc, move to gambc-doc(Closes: #449609) + * Split deb build into arch-dependent and arch-independent + * Simplify clean target's autoconf run commands + * Update watch file to revised tarball naming pattern (Closes: #450131) + * Update copyright + * Bootstrap gambit before modifying _gsc.c to reduce patch hackery + * libgambc4-dev becomes libdevel - optional + * Was FTBFS on GNU/kFreeBSD: missing OS detection (Closes: #414024) + * Was FTBFS on second attempt (Closes: #424288) + * debian/rules: Move "-Wl,-z,defs" from CFLAGS to LDFLAGS to avoid a lot + of irrelevant linker messages + * Fix debian-rules-ignores-make-clean-error + * Add XS-DM-Upload-Allowed field to control + * Update to Standards-Version 3.7.3 + * Update to debhelper Compatibility Level 6 + * Accept ubuntu patch: use update-alternatives when installing scheme-r5rs + * Update gsi.1: Copyright, available documentation, enhance description + * 4.2.6-1 was on mentors.debian.net for 10 days but never uploaded + * Fix bashism in debian/rules (Closes: #478383) + * 4.2.6-2 was on mentors.debian.net for 60 days but never uploaded + * Change /usr/lib/ installation dir from gambc4.0 to gambc4 + * Run autoconf on autobuilders - simplify the configuration in + debian/rules and remove the lintian overrides for changes to + config.sub, config.guess, and configure + * Update to Standards Version 3.8.0 + * Revise debian/copyright to reflect that the text of the Apache 2.0 + License is now included in the Debian system distribution. + * Add Vcs-Svn and Vcs-Browser fields to debian/control + * CFLAGS now handled by dpkg-buildpackage + * autotools-dev dropped autoconf dependency, add autoconf to builddeps + * Update debian/rules to reflect current way of passing arch to configure + * Improve clean target: do a distclean in all dirs except gsc/ + + -- Kurt B. Kaiser Mon, 07 Jul 2008 20:01:22 -0400 + +gambc (4.0~b20-1) unstable; urgency=low + + * New upstream release + * First Debian release (previous was Alioth only), Closes: #283299 + * Fix and update watch file + * Use configure option --enable-single-host for performance improvement + * Update Standards-Version and debhelper compatibility level + * Switch to building a shared library (libgambc4), and split package + * Split out the documentation for the extensive user manual into gambc-doc + + -- Kurt B. Kaiser Sun, 19 Nov 2006 17:52:10 -0500 + +gambc (4.0.b17-1) unstable; urgency=low + + * Initial release Closes: #283299 + + -- Kurt B. Kaiser Sun, 12 Mar 2006 14:48:11 -0800 --- gambc-4.2.8.orig/debian/compat +++ gambc-4.2.8/debian/compat @@ -0,0 +1 @@ +6 --- gambc-4.2.8.orig/debian/gambc-doc.info +++ gambc-4.2.8/debian/gambc-doc.info @@ -0,0 +1 @@ +doc/gambit-c.info* --- gambc-4.2.8.orig/debian/rules +++ gambc-4.2.8/debian/rules @@ -0,0 +1,161 @@ +#!/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. + +.NOTPARALLEL: + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + CROSS = --build $(DEB_HOST_GNU_TYPE) +else + CROSS = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +config.status: + @echo "**** Configuring source..." + dh_testdir + cp -a /usr/share/misc/config.sub . + cp -a /usr/share/misc/config.guess . + autoconf + # running the new configure: + LDFLAGS="$(LDFLAGS) -Wl,-z,defs " \ + CFLAGS="$(CFLAGS)" \ + ./configure \ + $(CROSS) \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-shared \ + --enable-single-host + +build: patch-stamp build-stamp +build-stamp: config.status + @echo "**** Build bootstrap Gambit compiler from *.c as gsc-comp..." + dh_testdir + # don't rebuild these: + touch doc/gambit-c.pdf + touch doc/gambit-c.html + $(MAKE) bootstrap PACKAGE_SUBDIR="" + @echo "**** Modify .scm source and rebuild system..." + dpatch apply -v 99_move_base_link_file + $(MAKE) PACKAGE_SUBDIR="" + touch build-stamp + +clean: clean-patched +clean-patched: patch-stamp + @echo "**** Cleaning tree..." + dh_testdir + dh_testroot + rm -f build-stamp + # distclean everything except gsi/ gsc/ lib/ which contain generated + # C files needed to build the Scheme compiler. 'mostlyclean' those + # dirs and delete the makefiles manually (config.status is gone) + @for dir in gsi gsc lib ; do \ + echo "* mostlyclean $$dir" ; \ + [ ! -f $$dir/makefile ] || (cd $$dir && $(MAKE) mostlyclean) ; \ + echo "* saving $$dir" ; \ + rm -rf $$dir.copy ; \ + cp -a $$dir $$dir.copy ; \ + done + [ ! -f makefile ] || $(MAKE) distclean + @for dir in gsi gsc lib ; do \ + echo "* restore $$dir; remove makefile and links" ; \ + rm -rf $$dir ; \ + mv $$dir.copy $$dir ; \ + [ ! -f $$dir/makefile ] || \ + (cd $$dir && rm -f makefile libgambc*) ; \ + done + # further cleaning approaching distribution configuration + rm -rf gsi/gsi gsc/gsc gsc-comp + rm -rf doc/gambit-c.info* + dh_clean + debian/rules unpatch + rm -f config.guess config.sub configure + # restore original gsc directory prior to repeating build + @if [ -d gsc.hold ]; then \ + rm -rf gsc ; \ + echo "**** Restoring upstream gsc directory..." ; \ + cp -a gsc.hold/ gsc/ ; \ + rm -rf gsc.hold/ ; \ + fi + +install: build + @echo "**** Installing into debian/tmp..." + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + # Add here commands to install the package into debian/tmp + $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr \ + PACKAGE_SUBDIR="" + # scheme-r5rs will be handled by upgrade-alternatives + rm debian/tmp/usr/bin/scheme-r5rs + +# Build architecture-independent files here. +binary-indep: build install + @echo "**** Building arch-independent debs..." + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i + dh_installdocs -i + dh_installemacsen -i + dh_installexamples -i --exclude=makefile + dh_installinfo -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + @echo "**** Building arch-dependent debs..." + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a + dh_installdocs -a + dh_install -a --sourcedir=debian/tmp/usr + dh_installman -a debian/gsi.1 + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a -L libgambc4 -l debian/libgambc4/usr/lib + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +patch: patch-stamp +patch-stamp: + @echo "**** Save a copy of the original gsc/..." + rm -rf gsc.hold/ + cp -a gsc/ gsc.hold/ + @echo "**** Patching source..." + dpatch apply 01_texinfo + dpatch apply 02_gambit.el + dpatch apply 100_pass_soname_when_linking + # (Note: 99_move_base_link_file is applied after bootstrap) + touch patch-stamp + +unpatch: + @echo "**** Unpatching source..." + -dpatch deapply-all + rm -rf patch-stamp debian/patched + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install \ + clean-patched patch unpatch --- gambc-4.2.8.orig/debian/TODO +++ gambc-4.2.8/debian/TODO @@ -0,0 +1,3 @@ +TODO: + +* Man page: add synopsis for gsc --- gambc-4.2.8.orig/debian/libgambc4.install +++ gambc-4.2.8/debian/libgambc4.install @@ -0,0 +1,3 @@ +lib/*.so.* usr/lib/ +lib/*.scm usr/lib/gambc4 +lib/*.c usr/lib/gambc4 --- gambc-4.2.8.orig/debian/copyright +++ gambc-4.2.8/debian/copyright @@ -0,0 +1,105 @@ +This package was debianized by Kurt B. Kaiser on +Wed, 8 Feb 2006 19:52:27 -0800. + +The current Debian maintainer is Kurt B. Kaiser + +It was downloaded from http://www.iro.umontreal.ca/~gambit/ + +Copyright Holder: Marc Feeley + +The software, manual, and Debian packaging are separately copyrighted and +licensed. + +Software License: +================= + +"The Gambit-C system release v4.2.8 is Copyright (C) 1994-2008 by Marc Feeley, +all rights reserved. The Gambit-C system release v4.2.8 is licensed under two +licenses: the Apache License, Version 2.0, and the GNU LESSER GENERAL PUBLIC +LICENSE, Version 2.1. You have the option to choose which of these two +licenses to abide by. The licenses are copied below." + +GNU Lesser General Public License: + +This library is free software; you can redistribute it and/or modify it under +the terms of the GNU Lesser General Public License as published by the Free +Software Foundation; either version 2.1 of the License, or (at your option) any +later version. + +This library is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +details. + +You should have received a copy of the GNU Lesser General Public License along +with this library; if not, write to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General Public License, +version 2, can be found in /usr/share/common-licenses/LGPL-2.1. + + +Apache License, Version 2.0: + +On Debian systems, the complete text of the Apache License, Version 2.0, can +be found in /usr/share/common-licenses/Apache-2.0. + + +Gambit-C Manual License: +======================== + + This file documents Gambit-C, a portable implementation of Scheme. + + Copyright (C) 1994-2008 Marc Feeley. + + Permission is granted to make and distribute verbatim copies of this +manual provided the copyright notice and this permission notice are +preserved on all copies. + + Permission is granted to process this file through TeX and print the +results, provided the printed document carries copying permission +notice identical to this one except for the removal of this paragraph +(this paragraph not being relevant to the printed manual). + + Permission is granted to copy and distribute modified versions of +this manual under the conditions for verbatim copying, provided that +the entire resulting derived work is distributed under the terms of a +permission notice identical to this one. + + Permission is granted to copy and distribute translations of this +manual into another language, under the above conditions for modified +versions, except that this permission notice may be stated in a +translation approved by the copyright holder. + + +Packaging License: +================== + +The gsi.1 man page is + +Copyright (C) 2006-2007 Marc Feeley and Kurt B. Kaiser + +and is released under the same license as the Gambit-C software. See above for +details. + +The rest of the Debian packaging is + +Copyright (C) 2006-2008 by Kurt B. Kaiser + +and is released under the GPL, version 2 or any later version: + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation; either version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with +this program; if not, write to the Free Software Foundation, Inc., 51 Franklin +Street, Fifth Floor, Boston, MA 02110-1301 USA. + +On Debian systems, the complete text of the GNU General Public License, +version 2, can be found in /usr/share/common-licenses/GPL-2. --- gambc-4.2.8.orig/debian/gambc-doc.docs +++ gambc-4.2.8/debian/gambc-doc.docs @@ -0,0 +1,3 @@ +doc/gambit-c.html +doc/gambit-c.pdf +doc/gambit-c.txt --- gambc-4.2.8.orig/debian/libgambc4-dev.links +++ gambc-4.2.8/debian/libgambc4-dev.links @@ -0,0 +1,3 @@ +usr/lib/libgambc.so.4 usr/lib/libgambc.so +usr/lib/libgambcgsc.so.4 usr/lib/libgambcgsc.so +usr/lib/libgambcgsi.so.4 usr/lib/libgambcgsi.so --- gambc-4.2.8.orig/debian/watch +++ gambc-4.2.8/debian/watch @@ -0,0 +1,4 @@ +version=3 + +http://www.iro.umontreal.ca/~gambit/download/gambit/v4.2/source/\ +gambc-v(\d+)_(\d+)_(\d+)\.tgz --- gambc-4.2.8.orig/debian/gambc-doc.examples +++ gambc-4.2.8/debian/gambc-doc.examples @@ -0,0 +1,3 @@ +examples/* +misc/bench.tgz +misc/syntax-case.scm --- gambc-4.2.8.orig/debian/gambc.postinst +++ gambc-4.2.8/debian/gambc.postinst @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +if [ "$1" = configure ]; then + update-alternatives \ + --install /usr/bin/scheme-r5rs scheme-r5rs /usr/bin/gsi 20 \ + --slave /usr/share/man/man1/scheme-r5rs.1 \ + scheme-r5rs.1 \ + /usr/share/man/man1/gsi.1.gz +fi + +#DEBHELPER# --- gambc-4.2.8.orig/debian/libgambc4-dev.install +++ gambc-4.2.8/debian/libgambc4-dev.install @@ -0,0 +1 @@ +include/* usr/include/ --- gambc-4.2.8.orig/debian/emacsen-install +++ gambc-4.2.8/debian/emacsen-install @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/gambc + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=gambc + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 --- gambc-4.2.8.orig/debian/gambc.install +++ gambc-4.2.8/debian/gambc.install @@ -0,0 +1,2 @@ +bin/* usr/bin +share/emacs/site-lisp/gambit.el usr/share/emacs/site-lisp/gambc --- gambc-4.2.8.orig/debian/control +++ gambc-4.2.8/debian/control @@ -0,0 +1,53 @@ +Source: gambc +Section: devel +Priority: optional +Maintainer: Kurt B. Kaiser +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 6), autotools-dev, autoconf, dpatch, texinfo +Standards-Version: 3.8.0 +Vcs-Svn: svn://svn.debian.org/svn/pkg-gambc/gambc/trunk +Vcs-Browser: http://svn.debian.org/wsvn/pkg-gambc/gambc/trunk/ +Homepage: http://www.iro.umontreal.ca/~gambit/ + +Package: gambc +Architecture: any +Depends: ${shlibs:Depends}, libgambc4 (= ${binary:Version}), + libgambc4-dev (= ${binary:Version}) +Recommends: gambc-doc +Description: Gambit-C Scheme interpreter and compiler + The gambc package includes a Scheme interpreter and a Scheme compiler which + can be used to build standalone executables. The thread system is very + efficient and can support millions of concurrent processes. + . + The Gambit-C system conforms to the R4RS, R5RS and IEEE Scheme standards. The + full numeric tower is implemented, including: infinite precision integers + (bignums), rationals, inexact reals (floating point numbers), and complex + numbers. Gambit-C supports a number of extensions to the standards. + +Package: libgambc4 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: shared library for the Gambit-C interpreter and compiler + The package includes libgambc4, which is necessary to run the gsi interpreter + and the gsc compiler. It also includes the _gambc.c base link file and the + gambit.h header file necessary to use the compiler. + +Package: libgambc4-dev +Section: libdevel +Architecture: any +Depends: libgambc4 (= ${binary:Version}) +Description: header file and link for the Gambit-C shared library + The package includes gambit.h and the gambit.so link. libgambit.a is + not required on Debian because libgambc is only linked using the gsc + compiler. + +Package: gambc-doc +Section: doc +Architecture: all +Suggests: r5rs-doc +Description: documentation for the Gambit-C interpreter and compiler + The package includes info, .pdf, and text versions of the Gambit-C manual, + a 200+ page document containing a complete description of the interpreter + and compiler suite. Also included are numerous examples, benchmark code, + and an implementation of syntax-case for Gambit-C. --- gambc-4.2.8.orig/debian/patches/100_pass_soname_when_linking.dpatch +++ gambc-4.2.8/debian/patches/100_pass_soname_when_linking.dpatch @@ -0,0 +1,206 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 100_pass_soname_when_linking.dpatch by Kurt B. Kaiser +## +## DP: Support passing soname when linking libgambc; install libgambc as +## DP: libgambc.so.4 and install links libgambc.so.4 and libgambc.so +## DP: Also do the same for libgambcgsc.so and libgambcgsi.so +## DP: Upstream is now creating three shared libs. + +@DPATCH@ +diff -urNad gambc~/configure.ac gambc/configure.ac +--- gambc~/configure.ac 2008-06-04 18:20:15.000000000 -0400 ++++ gambc/configure.ac 2008-06-04 18:20:17.000000000 -0400 +@@ -12,6 +12,19 @@ + PACKAGE_SUBDIR="/$PACKAGE_VERSION" + #PACKAGE_SUBDIR="" + ++LIB_NAME="lib$PACKAGE_SHORTNAME" ++TRIPLET_VERSION=$(echo $PACKAGE_VERSION | sed -e "s/v//") ++LIB_VERSION=${LIB_NAME}.so.$TRIPLET_VERSION ++LIB_SONAME=${LIB_NAME}.so.4 ++ ++GSC_LIB_NAME=${LIB_NAME}gsc ++GSC_LIB_VERSION=${GSC_LIB_NAME}.so.$TRIPLET_VERSION ++GSC_LIB_SONAME=${GSC_LIB_NAME}.so.4 ++ ++GSI_LIB_NAME=${LIB_NAME}gsi ++GSI_LIB_VERSION=${GSI_LIB_NAME}.so.$TRIPLET_VERSION ++GSI_LIB_SONAME=${GSI_LIB_NAME}.so.4 ++ + AC_SUBST(PACKAGE_SHORTNAME) + AC_SUBST(PACKAGE_NAME) + AC_SUBST(PACKAGE_VERSION) +@@ -1196,6 +1209,14 @@ + SETDLPATH="LIBPATH=\$(rootfromhere)/lib:\$(rootfromhere)/gsi:\$(rootfromhere)/gsc:\${LIBPATH}" + ;; + ++ # Debian: ++ linux* | kfreebsd* | hurd*) ++ GAMBCLIB=$LIB_VERSION ++ GAMBCGSCLIB=$GSC_LIB_VERSION ++ GAMBCGSILIB=$GSI_LIB_VERSION ++ SETDLPATH="LD_LIBRARY_PATH=\$(rootfromhere)/lib:\$(rootfromhere)/gsi:\$(rootfromhere)/gsc:\${LD_LIBRARY_PATH}" ++ ;; ++ + *) GAMBCLIB="libgambc.so" + GAMBCGSCLIB="libgambcgsc.so" + GAMBCGSILIB="libgambcgsi.so" +@@ -1203,8 +1224,18 @@ + ;; + esac + +- MAKE_LIBRARY='$(C_COMPILER) $(FLAGS_LIB) -o $(LIBRARY) $(LIBRARY_OBJECTS) $(MAKE_LIBRARY_LIBS) $(LIBS)' +- MAKE_LIBRARY_FOR_INSTALL='$(C_COMPILER) $(FLAGS_LIB) -o $(LIBRARY) $(LIBRARY_OBJECTS) $(MAKE_LIBRARY_FOR_INSTALL_LIBS) $(LIBS)' ++ if test $GAMBCLIB = $LIB_VERSION; then ++ MAKE_LIBRARY='$(C_COMPILER) $(FLAGS_LIB) -Wl,-soname,$(LIB_SONAME) -o $(LIBRARY) $(LIBRARY_OBJECTS) $(MAKE_LIBRARY_LIBS) $(LIBS)' ++ else ++ MAKE_LIBRARY='$(C_COMPILER) $(FLAGS_LIB) -o $(LIBRARY) $(LIBRARY_OBJECTS) $(MAKE_LIBRARY_LIBS) $(LIBS)' ++ fi ++ ++ if test $GAMBCLIB = $LIB_VERSION; then ++ MAKE_LIBRARY_FOR_INSTALL='$(C_COMPILER) $(FLAGS_LIB) -Wl,-soname,$(LIB_SONAME) -o $(LIBRARY) $(LIBRARY_OBJECTS) $(MAKE_LIBRARY_FOR_INSTALL_LIBS) $(LIBS)' ++ else ++ MAKE_LIBRARY_FOR_INSTALL='$(C_COMPILER) $(FLAGS_LIB) -o $(LIBRARY) $(LIBRARY_OBJECTS) $(MAKE_LIBRARY_FOR_INSTALL_LIBS) $(LIBS)' ++ fi ++ + FIXLIB='#' + LINK='$(C_COMPILER) $(FLAGS_EXE) $(EXECUTABLE_OBJECTS) $(LINK_LIBS) $(LIBS) -o $(EXECUTABLE)' + LINK_FOR_INSTALL='$(C_COMPILER) $(FLAGS_EXE) $(EXECUTABLE_OBJECTS) $(LINK_FOR_INSTALL_LIBS) $(LIBS) -o $(EXECUTABLE)' +@@ -1341,6 +1372,10 @@ + AC_SUBST(bat) + AC_SUBST(SETDLPATH) + AC_SUBST(GSC_CC_O) ++AC_SUBST(LIB_VERSION) ++AC_SUBST(LIB_SONAME) ++AC_SUBST(GSC_LIB_SONAME) ++AC_SUBST(GSI_LIB_SONAME) + AC_SUBST(GAMBCLIB) + AC_SUBST(GAMBCGSCLIB) + AC_SUBST(GAMBCGSILIB) +diff -urNad gambc~/gsc/makefile.in gambc/gsc/makefile.in +--- gambc~/gsc/makefile.in 2008-06-04 18:20:15.000000000 -0400 ++++ gambc/gsc/makefile.in 2008-06-04 18:20:17.000000000 -0400 +@@ -30,8 +30,10 @@ + LIBS = @LIBS@ + + GAMBCLIB = @GAMBCLIB@ ++LIB_VERSION = @LIB_VERSION@ + GAMBCGSCLIB = @GAMBCGSCLIB@ + GAMBCGSILIB = @GAMBCGSILIB@ ++LIB_SONAME = @GSC_LIB_SONAME@ + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ + INSTALL_LIB = @INSTALL_LIB@ +@@ -146,6 +148,11 @@ + $(LIBRARY): $(LIBRARY_OBJECTS_IN_COMPILE_ORDER) + rm -f $(LIBRARY) + @MAKE_LIBRARY@ ++ # needed for bootstrap: ++ if test $(GAMBCLIB) = $(LIB_VERSION); then \ ++ ln -sf $(GAMBCGSCLIB) $(LIB_SONAME); \ ++ ln -sf $(LIB_SONAME) libgambcgsc.so; \ ++ fi + + _gambcgsc.c: $(LIBRARY_MODULES_C) $(rootfromhere)/lib/_gambc.c + @SETDLPATH@ $(rootfromhere)/gsc-comp -:=$(srcdirpfx)$(rootfromhere) -f -link -l $(srcdirpfx)$(rootfromhere)/lib/_gambc -o $@ $(LIBRARY_MODULES_C) +@@ -182,6 +189,11 @@ + $(INSTALL_DATA) $(srcdirpfx)_gambcgsc.c $(libdir)/_gambcgsc.c + @MAKE_LIBRARY_FOR_INSTALL@ + $(INSTALL_LIB) $(LIBRARY) $(libdir)/$(LIBRARY) ++ if test $(GAMBCLIB) = $(LIB_VERSION); then \ ++ cd $(libdir); \ ++ ln -sf $(GAMBCGSCLIB) $(LIB_SONAME); \ ++ ln -sf $(LIB_SONAME) libgambcgsc.so; \ ++ fi + @FIXLIB@ $(libdir)/$(LIBRARY) + #for library in $(LIBRARIES_SCM); do \ + # $(INSTALL_DATA) $$library $(libdir)/$$library; \ +@@ -193,6 +205,8 @@ + + uninstall-post: + rm -f $(bindir)/$(EXECUTABLE) ++ rm -f $(libdir)/$(LIB_SONAME) ++ rm -f $(libdir)/libgambcgsc.so + + mostlyclean-pre: + +diff -urNad gambc~/gsi/makefile.in gambc/gsi/makefile.in +--- gambc~/gsi/makefile.in 2008-06-04 18:20:15.000000000 -0400 ++++ gambc/gsi/makefile.in 2008-06-04 18:20:42.000000000 -0400 +@@ -30,8 +30,10 @@ + LIBS = @LIBS@ + + GAMBCLIB = @GAMBCLIB@ ++LIB_VERSION = @LIB_VERSION@ + GAMBCGSCLIB = @GAMBCGSCLIB@ + GAMBCGSILIB = @GAMBCGSILIB@ ++LIB_SONAME = @GSI_LIB_SONAME@ + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ + INSTALL_LIB = @INSTALL_LIB@ +@@ -166,6 +168,11 @@ + $(INSTALL_DATA) $(srcdirpfx)_gambcgsi.c $(libdir)/_gambcgsi.c + @MAKE_LIBRARY_FOR_INSTALL@ + $(INSTALL_LIB) $(LIBRARY) $(libdir)/$(LIBRARY) ++ if test $(GAMBCLIB) = $(LIB_VERSION); then \ ++ cd $(libdir); \ ++ ln -sf $(GAMBCGSILIB) $(LIB_SONAME); \ ++ ln -sf $(LIB_SONAME) libgambcgsi.so; \ ++ fi + @FIXLIB@ $(libdir)/$(LIBRARY) + #for library in $(LIBRARIES_SCM); do \ + # $(INSTALL_DATA) $$library $(libdir)/$$library; \ +@@ -177,6 +184,8 @@ + + uninstall-post: + rm -f $(bindir)/$(EXECUTABLE) ++ rm -f $(libdir)/$(LIB_SONAME) ++ rm -f $(libdir)/libgambcgsi.so + + mostlyclean-pre: + +diff -urNad gambc~/lib/makefile.in gambc/lib/makefile.in +--- gambc~/lib/makefile.in 2008-06-04 18:20:15.000000000 -0400 ++++ gambc/lib/makefile.in 2008-06-04 18:20:17.000000000 -0400 +@@ -30,6 +30,8 @@ + LIBS = @LIBS@ + + GAMBCLIB = @GAMBCLIB@ ++LIB_VERSION = @LIB_VERSION@ ++LIB_SONAME = @LIB_SONAME@ + GAMBCCOMPLIB = @GAMBCCOMPLIB@ + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ +@@ -117,6 +119,11 @@ + $(LIBRARY): $(LIBRARY_OBJECTS_IN_COMPILE_ORDER) + rm -f $(LIBRARY) + @MAKE_LIBRARY@ ++ # needed for bootstrap: ++ if test $(GAMBCLIB) = $(LIB_VERSION); then \ ++ ln -sf $(GAMBCLIB) $(LIB_SONAME); \ ++ ln -sf $(LIB_SONAME) libgambc.so; \ ++ fi + + _gambc.c: $(MODULES_C) + @SETDLPATH@ $(rootfromhere)/gsc-comp -:=$(srcdirpfx)$(rootfromhere) -f -link -flat -o _gambc.c $(MODULES_C) +@@ -166,6 +173,11 @@ + $(srcdirpfx)$(rootfromhere)/mkidirs $(libdir) + $(INSTALL_DATA) $(srcdirpfx)_gambc.c $(libdir)/_gambc.c + $(INSTALL_LIB) $(LIBRARY) $(libdir)/$(LIBRARY) ++ if test $(GAMBCLIB) = $(LIB_VERSION); then \ ++ cd $(libdir); \ ++ ln -sf $(GAMBCLIB) $(LIB_SONAME); \ ++ ln -sf $(LIB_SONAME) libgambc.so; \ ++ fi + @FIXLIB@ $(libdir)/$(LIBRARY) + for library in $(LIBRARIES_SCM); do \ + $(INSTALL_DATA) $$library $(libdir)/$$library; \ +@@ -176,6 +188,8 @@ + uninstall-post: + rm -f $(libdir)/_gambc.c + rm -f $(libdir)/$(LIBRARY) ++ rm -f $(libdir)/$(LIB_SONAME) ++ rm -f $(libdir)/libgambc.so + @for library in $(LIBRARIES_SCM); do \ + rm -f $(libdir)/$$library; \ + done --- gambc-4.2.8.orig/debian/patches/99_move_base_link_file.dpatch +++ gambc-4.2.8/debian/patches/99_move_base_link_file.dpatch @@ -0,0 +1,20 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 99_move_base_link_file.dpatch by "Kurt B. Kaiser" +## +## DP: Find the compiler's base link file in lib/gambc4 instead of lib/ so +## DP: the user doesn't have to specify the path. It would be best if +## DP: this wasn't hard coded in Gambit-C. + +@DPATCH@ +diff -urNad gambc~/gsc/_gsclib.scm gambc/gsc/_gsclib.scm +--- gambc~/gsc/_gsclib.scm 2008-03-10 12:22:50.000000000 -0400 ++++ gambc/gsc/_gsclib.scm 2008-06-05 09:20:01.000000000 -0400 +@@ -244,7 +244,7 @@ + (let ((gambcdir-lib + (parameterize + ((##current-directory +- (##path-expand "lib" (##path-expand "~~")))) ++ (##path-expand "lib/gambc4" (##path-expand "~~")))) + (##current-directory)))) + (##string-append gambcdir-lib "_gambc")) + (macro-force-vars (base) --- gambc-4.2.8.orig/debian/patches/00list +++ gambc-4.2.8/debian/patches/00list @@ -0,0 +1,4 @@ +01_texinfo +02_gambit.el +100_pass_soname_when_linking +99_move_base_link_file --- gambc-4.2.8.orig/debian/patches/01_texinfo.dpatch +++ gambc-4.2.8/debian/patches/01_texinfo.dpatch @@ -0,0 +1,33 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 01_texinfo.dpatch by "Kurt B. Kaiser" +## +## DP: 1. Node names must follow info file name w/o intervening space. +## DP: 2. Node names must be actual nodes. +## DP: 3. Add appropriate category in Info directory. +## DP: 4. Use texinfo commands instead of format. + +@DPATCH@ +diff -urNad gambc~/doc/gambit-c.txi gambc/doc/gambit-c.txi +--- gambc~/doc/gambit-c.txi 2006-10-26 14:38:05.000000000 -0400 ++++ gambc/doc/gambit-c.txi 2006-10-26 14:38:35.000000000 -0400 +@@ -9,15 +9,12 @@ + @tableindent=1.3in + @end iftex + +-@ifinfo +-@format +-START-INFO-DIR-ENTRY ++@dircategory Programming ++@direntry + * Gambit-C: (gambit-c). A portable implementation of Scheme. +-* gsi: (gambit-c) interpreter. Gambit interpreter. +-* gsc: (gambit-c) compiler. Gambit compiler. +-END-INFO-DIR-ENTRY +-@end format +-@end ifinfo ++* gsi: (gambit-c)GSI. Gambit interpreter. ++* gsc: (gambit-c)GSC. Gambit compiler. ++@end direntry + + @c Define new indices for commands, file names, and options. + @defcodeindex cm --- gambc-4.2.8.orig/debian/patches/02_gambit.el.dpatch +++ gambc-4.2.8/debian/patches/02_gambit.el.dpatch @@ -0,0 +1,18 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 02_gambit.el.dpatch by "Kurt B. Kaiser" +## +## DP: Use proper quoting + +@DPATCH@ +diff -urNad gambc~/misc/gambit.el gambc/misc/gambit.el +--- gambc~/misc/gambit.el 2004-10-11 11:37:43.000000000 -0700 ++++ gambc/misc/gambit.el 2006-03-11 23:23:57.000000000 -0800 +@@ -397,7 +397,7 @@ + "Highlight the expression at a specific location in a buffer. + + The location buffer is the one that contains the location to +-highlight and "pos" points to the first character of the ++highlight and `pos' points to the first character of the + expression in the buffer. If the location buffer is not visible + then we must display it in a window. We also have to make sure + the highlighted expression is visible, which may require the