imail/debian/: Support dpkg-buildpackage.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sun, 12 Jun 2016 20:41:08 +0000 (13:41 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sun, 12 Jun 2016 20:41:08 +0000 (13:41 -0700)
14 files changed:
src/imail/Makefile.am
src/imail/debian/changelog [new file with mode: 0644]
src/imail/debian/compat [new file with mode: 0644]
src/imail/debian/control [new file with mode: 0644]
src/imail/debian/copyright [new file with mode: 0644]
src/imail/debian/doc-base [new file with mode: 0644]
src/imail/debian/docs [new file with mode: 0644]
src/imail/debian/postinst.in [new file with mode: 0755]
src/imail/debian/postrm.in [new file with mode: 0755]
src/imail/debian/rules [new file with mode: 0755]
src/imail/debian/source/format [new file with mode: 0644]
src/imail/debian/watch [new file with mode: 0644]
src/imail/make.scm [moved from src/imail/load.scm with 100% similarity]
src/imail/mit-scheme-pucked-imail.texi [moved from src/imail/mit-scheme-imail.texi with 99% similarity]

index d4fe6f629f715636a04e90a2a3a7f13a13cee883..9cd2309633e735c97b2540893fd6bcb41178bcbc 100644 (file)
@@ -46,13 +46,19 @@ binaries += imap-syntax.bci imap-syntax.com
 
 scmlib_sub_DATA = $(sources)
 scmlib_sub_DATA += $(binaries)
-scmlib_sub_DATA += load.scm imail-@MIT_SCHEME_OS_SUFFIX@.pkd
+scmlib_sub_DATA += make.scm imail-@MIT_SCHEME_OS_SUFFIX@.pkd
 
-# 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
+info_TEXINFOS = mit-scheme-pucked-imail.texi
+AM_MAKEINFOHTMLFLAGS = --no-split
+
+# 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
 
 imail-browser.bci: stamp-scheme
 imail-browser.com: stamp-scheme
@@ -86,18 +92,21 @@ stamp-scheme: $(sources) imail.pkg
 CLEANFILES = *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
 
 #TESTS = imail-check.sh
+#CLEANFILES += test-output
 
 ETAGS_ARGS = $(sources)
 TAGS_DEPENDENCIES = $(sources)
 
-EXTRA_DIST += $(sources) compile.sh load.scm compile.scm imail.pkg
+EXTRA_DIST += $(sources) compile.sh make.scm compile.scm imail.pkg 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
 
 uninstall-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
        [ -d "$(DESTDIR)$(scmlib_subdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_subdir)"
diff --git a/src/imail/debian/changelog b/src/imail/debian/changelog
new file mode 100644 (file)
index 0000000..c216255
--- /dev/null
@@ -0,0 +1,5 @@
+mit-scheme-pucked-imail (1.21.1-1) experimental; urgency=low
+
+  * Initial Debianization.
+
+ -- Friar Puck <puck@birchwood-abbey.net>  Sun, 12 Jun 2016 00:00:00 -0700
diff --git a/src/imail/debian/compat b/src/imail/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/src/imail/debian/control b/src/imail/debian/control
new file mode 100644 (file)
index 0000000..f864ad2
--- /dev/null
@@ -0,0 +1,16 @@
+Source: mit-scheme-pucked-imail
+Section: lisp
+Priority: optional
+Maintainer: Friar Puck <puck@birchwood-abbey.net>
+Build-Depends: debhelper (>= 9), mit-scheme-pucked-edwin (>= 3.116.1)
+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-imail
+Architecture: any
+Depends: mit-scheme-pucked-edwin (>= 3.116.1)
+Description: IMail plugin for Friar Puck's MIT/GNU Scheme 
+ This package provides mit-scheme-pucked-edwin with an imail command
+ for reading email on IMAP servers.
diff --git a/src/imail/debian/copyright b/src/imail/debian/copyright
new file mode 100644 (file)
index 0000000..d691667
--- /dev/null
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mit-scheme-pucked-imail
+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 package is an IMail plugin for Friar Puck's MIT/GNU Scheme.
+ .
+ This package 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 package 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 package; 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/imail/debian/doc-base b/src/imail/debian/doc-base
new file mode 100644 (file)
index 0000000..561fdf2
--- /dev/null
@@ -0,0 +1,15 @@
+Document: mit-scheme-pucked-imail
+Title: IMAIL User's Manual
+Author: Chris Hanson
+Abstract: IMAIL is a program for reading electronic mail.
+ IMAIL runs inside of Edwin, MIT/GNU Scheme's Emacs-like editor, and
+ is intended to be similar to Rmail while providing support for IMAP
+ and MIME.  This manual describes how to use IMAIL.
+Section: Network/Communication
+
+Format: HTML
+Index: /usr/share/doc/mit-scheme-pucked/html/mit-scheme-pucked-imail.html
+Files: /usr/share/doc/mit-scheme-pucked/html/mit-scheme-pucked-imail.html
+
+Format: PDF
+Files: /usr/share/doc/mit-scheme-pucked/pdf/mit-scheme-pucked-imail.pdf.gz
diff --git a/src/imail/debian/docs b/src/imail/debian/docs
new file mode 100644 (file)
index 0000000..50bd824
--- /dev/null
@@ -0,0 +1,2 @@
+NEWS
+README
diff --git a/src/imail/debian/postinst.in b/src/imail/debian/postinst.in
new file mode 100755 (executable)
index 0000000..332b30f
--- /dev/null
@@ -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/imail/debian/postrm.in b/src/imail/debian/postrm.in
new file mode 100755 (executable)
index 0000000..332b30f
--- /dev/null
@@ -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/imail/debian/rules b/src/imail/debian/rules
new file mode 100755 (executable)
index 0000000..3c78a52
--- /dev/null
@@ -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/imail/debian/source/format b/src/imail/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/src/imail/debian/watch b/src/imail/debian/watch
new file mode 100644 (file)
index 0000000..fc3ac63
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://birchwood-abbey.net/~matt/Scheme/mit-scheme-pucked-imail-(.*)\.tar\.gz debian uupdate
similarity index 100%
rename from src/imail/load.scm
rename to src/imail/make.scm
similarity index 99%
rename from src/imail/mit-scheme-imail.texi
rename to src/imail/mit-scheme-pucked-imail.texi
index 82069dd9110d3fb14f43ba2206f8536e975ede80..7b65ca6e2f0f2846a71dd8570f17a3e4e1d94907 100644 (file)
@@ -1,9 +1,7 @@
 \input texinfo @c -*-texinfo-*-
 @comment %**start of header
-@setfilename mit-scheme-imail
-@set EDITION 1.9
-@set VERSION 1.19
-@set UPDATED 2011-10-14
+@setfilename mit-scheme-pucked-imail.info
+@include version.texi
 @settitle IMAIL @value{VERSION}
 @comment %**end of header
 @setchapternewpage on