From: Matt Birkholz Date: Tue, 14 Jun 2016 02:36:56 +0000 (-0700) Subject: planetarium/debian/: Support dpkg-buildpackage. X-Git-Tag: mit-scheme-pucked-9.2.12~282 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=c3afbfe2c4fe8a89f42c6dd59c0918ad1872696e;p=mit-scheme.git planetarium/debian/: Support dpkg-buildpackage. --- diff --git a/src/planetarium/Makefile.am b/src/planetarium/Makefile.am index 252d2b251..e4247dade 100644 --- a/src/planetarium/Makefile.am +++ b/src/planetarium/Makefile.am @@ -24,91 +24,80 @@ EXTRA_DIST = autogen.sh MIT_SCHEME_EXE = @MIT_SCHEME_EXE@ scmlibdir = @MIT_SCHEME_LIBDIR@ -scmlib_planetariumdir = $(scmlibdir)planetarium +scmlib_subdir = $(scmlibdir)planetarium sources = earth.scm geometry.scm google-earth.scm graphics.scm sources += matrices.scm mit-cairo.scm mit-cil.scm mit-graphics.scm mit-gtk.scm sources += mit-r3rs.scm mit-syntax.scm mit-x.scm solar.scm tellurion.scm sources += terrain.scm time.scm -scmlib_planetarium_DATA = $(sources) -scmlib_planetarium_DATA += earth.bin earth.bci earth.com -scmlib_planetarium_DATA += geometry.bin geometry.bci geometry.com -scmlib_planetarium_DATA += google-earth.bin google-earth.bci google-earth.com -scmlib_planetarium_DATA += graphics.bin graphics.bci graphics.com -scmlib_planetarium_DATA += matrices.bin matrices.bci matrices.com -scmlib_planetarium_DATA += mit-cairo.bin mit-cairo.bci mit-cairo.com -scmlib_planetarium_DATA += mit-cil.bin mit-cil.bci mit-cil.com -scmlib_planetarium_DATA += mit-graphics.bin mit-graphics.bci mit-graphics.com -scmlib_planetarium_DATA += mit-gtk.bin mit-gtk.bci mit-gtk.com -scmlib_planetarium_DATA += mit-r3rs.bin mit-r3rs.bci mit-r3rs.com -scmlib_planetarium_DATA += mit-syntax.bin mit-syntax.bci mit-syntax.com -scmlib_planetarium_DATA += mit-x.bin mit-x.bci mit-x.com -scmlib_planetarium_DATA += solar.bin solar.bci solar.com -scmlib_planetarium_DATA += tellurion.bin tellurion.bci tellurion.com -scmlib_planetarium_DATA += terrain.bin terrain.bci terrain.com -scmlib_planetarium_DATA += time.bin time.bci time.com -scmlib_planetarium_DATA += make.scm mit-@MIT_SCHEME_OS_SUFFIX@.pkd -scmlib_planetarium_DATA += mit-link.scm mit-3d-@MIT_SCHEME_OS_SUFFIX@.pkd - -info_TEXINFOS = mit-scheme-planetarium.texi +binaries = earth.bci earth.com +binaries += geometry.bci geometry.com +binaries += google-earth.bci google-earth.com +binaries += graphics.bci graphics.com +binaries += matrices.bci matrices.com +binaries += mit-cairo.bci mit-cairo.com +binaries += mit-cil.bci mit-cil.com +binaries += mit-graphics.bci mit-graphics.com +binaries += mit-gtk.bci mit-gtk.com +binaries += mit-r3rs.bci mit-r3rs.com +binaries += mit-syntax.bci mit-syntax.com +binaries += mit-x.bci mit-x.com +binaries += solar.bci solar.com +binaries += tellurion.bci tellurion.com +binaries += terrain.bci terrain.com +binaries += time.bci time.com + +scmlib_sub_DATA = $(sources) +scmlib_sub_DATA += $(binaries) +scmlib_sub_DATA += make.scm mit-@MIT_SCHEME_OS_SUFFIX@.pkd +scmlib_sub_DATA += mit-link.scm mit-3d-@MIT_SCHEME_OS_SUFFIX@.pkd + +info_TEXINFOS = mit-scheme-pucked-planetarium.texi AM_MAKEINFOHTMLFLAGS = --no-split -# Set these to the defaults used by Scheme. -infodir = $(datarootdir)/info -htmldir = $(libdir)/mit-scheme-pucked/doc -dvidir = $(libdir)/mit-scheme-pucked/doc -pdfdir = $(libdir)/mit-scheme-pucked/doc +# The shared system documentation directory... +docdir = $(datarootdir)/doc/mit-scheme-pucked +# ...with separate html and pdf subdirectories. +htmldir = $(datarootdir)/doc/mit-scheme-pucked/html +pdfdir = $(datarootdir)/doc/mit-scheme-pucked/pdf +# ...and dvi and ps subdirectories? +dvidir = $(datarootdir)/doc/mit-scheme-pucked/dvi +psdir = $(datarootdir)/doc/mit-scheme-pucked/ps make.scm: mit-make.scm cp $< $@ -earth.bin: stamp-scheme earth.bci: stamp-scheme earth.com: stamp-scheme -geometry.bin: stamp-scheme geometry.bci: stamp-scheme geometry.com: stamp-scheme -google-earth.bin: stamp-scheme google-earth.bci: stamp-scheme google-earth.com: stamp-scheme -graphics.bin: stamp-scheme graphics.bci: stamp-scheme graphics.com: stamp-scheme -matrices.bin: stamp-scheme matrices.bci: stamp-scheme matrices.com: stamp-scheme -mit-cairo.bin: stamp-scheme mit-cairo.bci: stamp-scheme mit-cairo.com: stamp-scheme -mit-cil.bin: stamp-scheme mit-cil.bci: stamp-scheme mit-cil.com: stamp-scheme -mit-graphics.bin: stamp-scheme mit-graphics.bci: stamp-scheme mit-graphics.com: stamp-scheme -mit-gtk.bin: stamp-scheme mit-gtk.bci: stamp-scheme mit-gtk.com: stamp-scheme -mit-r3rs.bin: stamp-scheme mit-r3rs.bci: stamp-scheme mit-r3rs.com: stamp-scheme -mit-syntax.bin: stamp-scheme mit-syntax.bci: stamp-scheme mit-syntax.com: stamp-scheme -mit-x.bin: stamp-scheme mit-x.bci: stamp-scheme mit-x.com: stamp-scheme -solar.bin: stamp-scheme solar.bci: stamp-scheme solar.com: stamp-scheme -tellurion.bin: stamp-scheme tellurion.bci: stamp-scheme tellurion.com: stamp-scheme -terrain.bin: stamp-scheme terrain.bci: stamp-scheme terrain.com: stamp-scheme -time.bin: stamp-scheme time.bci: stamp-scheme time.com: stamp-scheme mit-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme @@ -130,20 +119,24 @@ EXTRA_DIST += $(sources) mit-compile.sh mit-link.scm mit.pkg mit-3d.pkg EXTRA_DIST += mit-check.sh EXTRA_DIST += mit-make.scm mit-optiondb.scm cil-*.txt EXTRA_DIST += mit-snapshot.scm +EXTRA_DIST += debian install-data-hook: - echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ - | $(MIT_SCHEME_EXE) --batch-mode + if [ -f "$(DESTDIR)$(scmlibdir)optiondb.scm" ]; then \ + echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ + | $(MIT_SCHEME_EXE) --batch-mode; fi install-html: install-html-am - echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ - | $(MIT_SCHEME_EXE) --batch-mode + if [ -f "$(DESTDIR)$(htmldir)/index.html" ]; then \ + echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ + | $(MIT_SCHEME_EXE) --batch-mode; fi uninstall-hook: - echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ - | $(MIT_SCHEME_EXE) --batch-mode - [ -d "$(DESTDIR)$(scmlib_planetariumdir)" ] \ - && rmdir "$(DESTDIR)$(scmlib_planetariumdir)" - [ -d "$(DESTDIR)$(htmldir)" ] \ - && ( echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ - | $(MIT_SCHEME_EXE) --batch-mode ) + if [ -f "$(DESTDIR)$(scmlibdir)optiondb.scm" ]; then \ + echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \ + | $(MIT_SCHEME_EXE) --batch-mode; fi + if [ -f "$(DESTDIR)$(htmldir)/index.html" ]; then \ + echo '(update-html-index "$(DESTDIR)$(htmldir)/")' \ + | $(MIT_SCHEME_EXE) --batch-mode; fi + if [ -d "$(DESTDIR)$(scmlib_subdir)" ]; then \ + rmdir "$(DESTDIR)$(scmlib_subdir)"; fi diff --git a/src/planetarium/debian/changelog b/src/planetarium/debian/changelog new file mode 100644 index 000000000..55427057f --- /dev/null +++ b/src/planetarium/debian/changelog @@ -0,0 +1,5 @@ +mit-scheme-pucked-planetarium (0.1-1) experimental; urgency=low + + * Initial Debianization. + + -- Friar Puck Sun, 12 Jun 2016 00:00:00 -0700 diff --git a/src/planetarium/debian/compat b/src/planetarium/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/src/planetarium/debian/compat @@ -0,0 +1 @@ +9 diff --git a/src/planetarium/debian/control b/src/planetarium/debian/control new file mode 100644 index 000000000..cf915f088 --- /dev/null +++ b/src/planetarium/debian/control @@ -0,0 +1,23 @@ +Source: mit-scheme-pucked-planetarium +Section: lisp +Priority: optional +Maintainer: Friar Puck +Build-Depends: debhelper (>= 9), + mit-scheme-pucked-gl (>= 0.1), + texinfo, texlive +Standards-Version: 3.9.4 +Homepage: http://birchwood-abbey.net/~matt/Scheme/ +Vcs-Git: git://birchwood-abbey.net/~matt/mit-scheme.git +Vcs-Browser: http://birchwood-abbey.net/gitweb/?p=mit-scheme.git;a=summary + +Package: mit-scheme-pucked-planetarium +Architecture: any +Depends: mit-scheme-pucked-gl (>= 0.1) +Description: A Planetarium for Friar Puck's MIT/GNU Scheme + This package currently contains: + . + * a tellurion, based on a little astronomy code and either the X11 or + Gtk graphics device type, and + . + * a terrain viewer, for visualizing meshes, esp. elevation data from + Google Earth. diff --git a/src/planetarium/debian/copyright b/src/planetarium/debian/copyright new file mode 100644 index 000000000..5ce74bc4a --- /dev/null +++ b/src/planetarium/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mit-scheme-pucked-planetarium +Source: http://birchwood-abbey.net/~matt/Scheme/ + +Files: * +Copyright: 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, + 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, + 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 + Massachusetts Institute of Technology +License: GPL-2+ + This is a planetarium for Friar Puck's MIT/GNU Scheme. + . + This planetarium 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 planetarium 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 planetarium; 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 General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/src/planetarium/debian/doc-base b/src/planetarium/debian/doc-base new file mode 100644 index 000000000..db3a02301 --- /dev/null +++ b/src/planetarium/debian/doc-base @@ -0,0 +1,15 @@ +Document: mit-scheme-pucked-planetarium +Title: Planetarium User's Manual +Author: Matt Birkholz +Abstract: The planetarium for Friar Puck's MIT/GNU Scheme contains + just enough astronomy code to plot the position of the sun. It also + contains a terrain viewer and procedures for gathering elevation data + from Google Earth. +Section: Programming + +Format: HTML +Index: /usr/share/doc/mit-scheme-pucked/html/mit-scheme-pucked-planetarium.html +Files: /usr/share/doc/mit-scheme-pucked/html/mit-scheme-pucked-planetarium.html + +Format: PDF +Files: /usr/share/doc/mit-scheme-pucked/pdf/mit-scheme-pucked-planetarium.pdf.gz diff --git a/src/planetarium/debian/docs b/src/planetarium/debian/docs new file mode 100644 index 000000000..50bd824bb --- /dev/null +++ b/src/planetarium/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/src/planetarium/debian/postinst.in b/src/planetarium/debian/postinst.in new file mode 100755 index 000000000..332b30f47 --- /dev/null +++ b/src/planetarium/debian/postinst.in @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +echo '(update-optiondb (system-library-directory-pathname))' \ +| mit-scheme-pucked --batch-mode +echo '(update-html-index "@HTMLDIR@/")' \ +| mit-scheme-pucked --batch-mode + +exit 0 diff --git a/src/planetarium/debian/postrm.in b/src/planetarium/debian/postrm.in new file mode 100755 index 000000000..332b30f47 --- /dev/null +++ b/src/planetarium/debian/postrm.in @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +echo '(update-optiondb (system-library-directory-pathname))' \ +| mit-scheme-pucked --batch-mode +echo '(update-html-index "@HTMLDIR@/")' \ +| mit-scheme-pucked --batch-mode + +exit 0 diff --git a/src/planetarium/debian/rules b/src/planetarium/debian/rules new file mode 100755 index 000000000..3c78a5268 --- /dev/null +++ b/src/planetarium/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export MIT_SCHEME_EXE=mit-scheme-pucked + +%: + dh $@ + +override_dh_auto_install: debian/postinst debian/postrm + dh_auto_install -- install-html install-pdf + +debian/%: debian/%.in + sed 's|@HTMLDIR@|/usr/share/doc/mit-scheme-pucked/html|g' < $< > $@ diff --git a/src/planetarium/debian/source/format b/src/planetarium/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/src/planetarium/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/src/planetarium/debian/watch b/src/planetarium/debian/watch new file mode 100644 index 000000000..c132c5739 --- /dev/null +++ b/src/planetarium/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://birchwood-abbey.net/~matt/Scheme/mit-scheme-pucked-planetarium-(.*)\.tar\.gz debian uupdate diff --git a/src/planetarium/mit-scheme-planetarium.texi b/src/planetarium/mit-scheme-pucked-planetarium.texi similarity index 98% rename from src/planetarium/mit-scheme-planetarium.texi rename to src/planetarium/mit-scheme-pucked-planetarium.texi index 3de84eb0f..09f3bc2f2 100644 --- a/src/planetarium/mit-scheme-planetarium.texi +++ b/src/planetarium/mit-scheme-pucked-planetarium.texi @@ -1,7 +1,7 @@ \input texinfo @c -*-Texinfo-*- @comment %**start of header -@setfilename mit-scheme-planetarium.info -@set VERSION 0.5 +@setfilename mit-scheme-pucked-planetarium.info +@include version.texi @settitle Planetarium @value{VERSION} @comment %**end of header @@ -24,14 +24,13 @@ Documentation License.'' @dircategory Programming Languages @direntry -* MIT/GNU Scheme Planetarium: (mit-scheme-planetarium). +* MIT/GNU Scheme Pucked Planetarium: (mit-scheme-pucked-planetarium). Planetarium. @end direntry @titlepage -@title A Planetarium -@subtitle for MIT/GNU Scheme version 9.3 -@author by Matt Birkholz (@email{birkholz@@alum.mit.edu}) +@title Planetarium User's Manual +@author by Matt Birkholz @page @vskip 0pt plus 1filll @insertcopying @@ -58,8 +57,8 @@ position of the sun by drawing a face of Earth and shading its dark side. If an old X11 graphics device is all that is available, just the terminator is drawn. -To use, startup mit-scheme and enter the following two s-expressions -at the REPL prompt. +To use, startup mit-scheme-pucked and enter the following two +s-expressions at the REPL prompt. @example (load-option 'PLANETARIUM) @@ -116,8 +115,8 @@ generate meshes from a few mathematical functions, and it can download elevation data from Google Earth. To generate a terrain from a simple mathematical function, startup -mit-scheme and enter the following three s-expressions at the REPL -prompt. +mit-scheme-pucked and enter the following three s-expressions at the +REPL prompt. @example (load-option 'planetarium) @@ -166,7 +165,7 @@ Bay, California. @example #!/bin/bash - mit-scheme --batch-mode <<\EOF + mit-scheme-pucked --batch-mode <<\EOF (begin (load-option 'planetarium) (request-google-elevations "monterey.txt"