diff --git a/debian/.cvsignore b/debian/.cvsignore new file mode 100644 index 000000000..753ce2bd1 --- /dev/null +++ b/debian/.cvsignore @@ -0,0 +1,12 @@ +*.debhelper +*.substvars +files +libqthreads12 +libguile-ltdl-1 +guile-1.6 +guile-1.6-dev +guile-1.6-dev.install.alpha +guile-1.6-dev.install.i386 +guile-1.6-doc +guile-1.6-libs +tmp diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..e67aa6de0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,21 @@ +guile-1.6 (1.6.1-3) unstable; urgency=low + + * handle non-qthreads architectures properly. + + -- Rob Browning Mon, 16 Dec 2002 23:48:51 -0600 + +guile-1.6 (1.6.1-2) unstable; urgency=low + + * include libguilereadline-v-12.so.* too. + * add conflicts/replaces goops-doc to guile-1.6-doc. + + -- Rob Browning Sat, 23 Nov 2002 17:12:33 -0600 + +guile-1.6 (1.6.1-1) unstable; urgency=low + + * trial pkg. + + -- Rob Browning Mon, 11 Nov 2002 10:52:58 -0600 + + + \ No newline at end of file diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..06412f46b --- /dev/null +++ b/debian/control @@ -0,0 +1,92 @@ +Source: guile-1.6 +Priority: optional +Maintainer: Rob Browning +Build-Depends: libtool, debhelper (>= 4), libncurses5-dev, libreadline4-dev +Build-Conflicts: ash (<= 0.3.8-31) +Standards-Version: 3.2.1.0 + +Package: guile-1.6 +Section: interpreters +Architecture: any +Provides: guile +Conflicts: guile +Depends: ${shlibs:Depends} +Suggests: guile-1.6-doc +Description: The GNU extension language and Scheme interpreter + Guile is a Scheme implementation designed for real world programming, + providing a rich Unix interface, a module system, an interpreter, and + many extension languages. Guile can be used as a standard #! style + interpreter, via #!/usr/bin/guile, or as an extension language for + other applications via libguile. + +Package: guile-1.6-dev +Section: devel +Architecture: any +Provides: libguile-dev +Conflicts: libguile-dev +Depends: ${shlibs:Depends}, guile-1.6, libc6-dev, libncurses5-dev, libreadline4-dev +Description: Development files for Guile 1.6 + This package contains files needed for development using Guile 1.6. + . + Guile is a Scheme implementation designed for real world programming, + providing a rich Unix interface, a module system, an interpreter, and + many extension languages. Guile can be used as a standard #! style + interpreter, via #!/usr/bin/guile, or as an extension language for + other applications via libguile. + +Package: guile-1.6-doc +Architecture: all +Section: doc +Conflicts: guile-doc, guile1.4-doc, goops-doc +Replaces: guile-doc, goops-doc +Provides: guile-doc +Description: Reference and tutorial documentation for Guile 1.6 + This package contains the documentation for guile 1.6, including both + a reference manual (via "info guile") and a tutorial (via "info + guile-tut"). + . + Guile is a Scheme implementation designed for real world programming, + providing a rich Unix interface, a module system, an interpreter, and + many extension languages. Guile can be used as a standard #! style + interpreter, via #!/usr/bin/guile, or as an extension language for + other applications via libguile. + +Package: guile-1.6-libs +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: Main Guile libraries + Guile is a Scheme implementation designed for real world programming, + providing a rich Unix interface, a module system, an interpreter, and + many extension languages. Guile can be used as a standard #! style + interpreter, via #!/usr/bin/guile, or as an extension language for + other applications via libguile. + +Package: libqthreads-12 +Section: libs +Architecture: i386 alpha +Depends: ${shlibs:Depends} +Description: QuickThreads library for Guile + Guile is a Scheme implementation designed for real world programming, + providing a rich Unix interface, a module system, an interpreter, and + many extension languages. Guile can be used as a standard #! style + interpreter, via #!/usr/bin/guile, or as an extension language for + other applications via libguile. + +Package: libguile-ltdl-1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: Guile's patched version of libtool's libltdl + Guile is a Scheme implementation designed for real world programming, + providing a rich Unix interface, a module system, an interpreter, and + many extension languages. Guile can be used as a standard #! style + interpreter, via #!/usr/bin/guile, or as an extension language for + other applications via libguile. + +Package: guile-1.6-slib +Section: devel +Architecture: all +Depends: guile-1.6, slib +Description: Guile SLIB support + Arranges for Guile to be able to use slib via (use-modules (ice-9 slib)). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..7ecbba55e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +This is the Debian package of GNU Guile, downloaded from +ftp.gnu.org/pub/guile. + +Guile is protected by the terms of the GNU General Public License +which you can find in /usr/share/common-licenses/GPL. Guile is also +covered by the following exception clause: + + As a special exception, the Free Software Foundation gives + permission for additional uses of the text contained in its release + of GUILE. + + The exception is that, if you link the GUILE library with other + files to produce an executable, this does not by itself cause the + resulting executable to be covered by the GNU General Public + License. Your use of that executable is in no way restricted on + account of linking the GUILE library code into it. + + This exception does not however invalidate any other reasons why the + executable file might be covered by the GNU General Public License. + + This exception applies only to the code released by the Free + Software Foundation under the name GUILE. If you copy code from + other Free Software Foundation releases into a copy of GUILE, as the + General Public License permits, the exception does not apply to the + code that you add in this way. To avoid misleading anyone as to the + status of such modified files, you must delete this exception notice + from them. + + If you write modifications of your own for GUILE, it is your choice + whether to permit this exception to apply to your modifications. If + you do not wish that, delete this exception notice. diff --git a/debian/guile-1.6-dev.install b/debian/guile-1.6-dev.install new file mode 100644 index 000000000..cdd4be6e7 --- /dev/null +++ b/debian/guile-1.6-dev.install @@ -0,0 +1,6 @@ +debian/tmp/usr/include/* +debian/tmp/usr/lib/*.a +debian/tmp/usr/lib/*.so +debian/tmp/usr/lib/libguile-ltdl.la +debian/tmp/usr/lib/libguile.la +debian/tmp/usr/share/aclocal/guile.m4 diff --git a/debian/guile-1.6-doc.info b/debian/guile-1.6-doc.info new file mode 100644 index 000000000..62fa47866 --- /dev/null +++ b/debian/guile-1.6-doc.info @@ -0,0 +1,3 @@ +debian/tmp/usr/info/goops.* +debian/tmp/usr/info/guile-tut.* +debian/tmp/usr/info/guile.* diff --git a/debian/guile-1.6-libs.install b/debian/guile-1.6-libs.install new file mode 100644 index 000000000..f3866d99c --- /dev/null +++ b/debian/guile-1.6-libs.install @@ -0,0 +1,10 @@ +debian/tmp/usr/lib/libguile.so.* +debian/tmp/usr/lib/libguile-srfi*.so.* +debian/tmp/usr/lib/libguile-srfi-srfi-13-14-v-1.la +debian/tmp/usr/lib/libguile-srfi-srfi-4-v-1.la +debian/tmp/usr/lib/libguilereadline-v-12.la +debian/tmp/usr/lib/libguilereadline-v-12.so.* +debian/tmp/usr/share/guile/1.6/guile-procedures.txt +debian/tmp/usr/share/guile/1.6/ice-9/* +debian/tmp/usr/share/guile/1.6/oop/* +debian/tmp/usr/share/guile/1.6/srfi/* diff --git a/debian/guile-1.6-slib.postinst b/debian/guile-1.6-slib.postinst new file mode 100644 index 000000000..3288c942f --- /dev/null +++ b/debian/guile-1.6-slib.postinst @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e + +/usr/bin/guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)" + +#DEBHELPER# diff --git a/debian/guile-1.6-slib.prerm b/debian/guile-1.6-slib.prerm new file mode 100644 index 000000000..50133e23d --- /dev/null +++ b/debian/guile-1.6-slib.prerm @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +rm -f /usr/share/guile/1.6/slib +rm -f /usr/share/guile/1.6/slibcat + +#DEBHELPER# diff --git a/debian/guile-1.6.install b/debian/guile-1.6.install new file mode 100644 index 000000000..5f16c6869 --- /dev/null +++ b/debian/guile-1.6.install @@ -0,0 +1,5 @@ +debian/tmp/usr/bin/guile +debian/tmp/usr/bin/guile-config +debian/tmp/usr/bin/guile-snarf +debian/tmp/usr/bin/guile-tools +debian/tmp/usr/share/guile/*/scripts/* diff --git a/debian/guile-1.6.menu b/debian/guile-1.6.menu new file mode 100644 index 000000000..92c4a869a --- /dev/null +++ b/debian/guile-1.6.menu @@ -0,0 +1,5 @@ +?package(guile-1.6): \ + needs="text" \ + section="Apps/Programming" \ + title="Guile 1.6"\ + command="/usr/bin/guile" diff --git a/debian/guile-1.6.undocumented b/debian/guile-1.6.undocumented new file mode 100644 index 000000000..14f6c5039 --- /dev/null +++ b/debian/guile-1.6.undocumented @@ -0,0 +1,4 @@ +guile.1 +guile-config.1 +guile-snarf.1 +guile-tools.1 diff --git a/debian/libguile-ltdl-1.install b/debian/libguile-ltdl-1.install new file mode 100644 index 000000000..9662418f7 --- /dev/null +++ b/debian/libguile-ltdl-1.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/libguile-ltdl.so.* diff --git a/debian/libqthreads-12.install b/debian/libqthreads-12.install new file mode 100644 index 000000000..3a8339003 --- /dev/null +++ b/debian/libqthreads-12.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/libqthreads.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..c26f222b5 --- /dev/null +++ b/debian/rules @@ -0,0 +1,140 @@ +#!/usr/bin/make -f +# debian/rules file for Guile. +# +# This file was derived from a public domain file, originally written +# by Joey Hess (from file included in examples in debhelper package). +# +# You can build any of the binary packages independantly, via +# binary- targets. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +export DH_COMPAT := 4 + +# 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) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# If you change this please change the debian/control qthreads entry and the +# arch-specific .install targets below too. +WORKING_QTHREADS_ARCHS := i386 alpha + +ifeq ($(findstring ${DEB_HOST_ARCH},${WORKING_QTHREADS_ARCHS}),${DEB_HOST_ARCH}) +ENABLE_THREADS := --with-threads=yes +endif + +QTHREADS_DOT_INSTALLS := \ + $(foreach arch,${WORKING_QTHREADS_ARCHS},debian/guile-1.6-dev.install.${arch}) + +${QTHREADS_DOT_INSTALLS}: debian/guile-1.6-dev.install + echo ${DEBIAN_ARCHFILES} + cat $< > $@ && echo debian/tmp/usr/lib/libqthreads.la >> $@ + +configure_args = \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --with-gnu-ld \ + --enable-dynamic-linking \ + --enable-maintainer-mode \ + ${ENABLE_THREADS} + +config-stamp: configure ${QTHREADS_DOT_INSTALLS} + @if test -d CVS || test -d .svn; \ + then \ + echo ./configure --enable-maintainer-mode ${configure_args}; \ + ./configure --enable-maintainer-mode ${configure_args}; \ + else \ + echo ./configure ${configure_args}; \ + ./configure ${configure_args}; \ + fi + touch config-stamp + +build: build-stamp +build-stamp: config-stamp + dh_testdir + $(MAKE) + $(MAKE) check + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f config-stamp build-stamp ${QTHREADS_DOT_INSTALLS} + + -$(MAKE) clean + -$(MAKE) distclean + + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + dh_install --list-missing + + mkdir -p debian/guile-1.6-slib/usr/share/guile/1.6 + cd debian/guile-1.6-slib/usr/share/guile/1.6 && ln -s ../../slib . + +# This single target is used to build all the packages, all at once, or +# one at a time. So keep in mind: any options passed to commands here will +# affect _all_ packages. Anything you want to only affect one package +# should be put in another target, such as the install target. +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installman +# dh_installcron + dh_installinfo + dh_undocumented + dh_strip + dh_link + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture independant packages using the common target. +binary-indep: build install + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: build install + $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common + +# Any other binary targets build just one binary package at a time. +binary-%: build install + make -f debian/rules binary-common DH_OPTIONS=-p$* + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install