x11-screen/debian/: Support dpkg-buildpackage.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sun, 12 Jun 2016 07:02:18 +0000 (00:02 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sun, 12 Jun 2016 07:02:18 +0000 (00:02 -0700)
src/x11-screen/Makefile.am
src/x11-screen/debian/changelog [new file with mode: 0644]
src/x11-screen/debian/compat [new file with mode: 0644]
src/x11-screen/debian/control [new file with mode: 0644]
src/x11-screen/debian/copyright [new file with mode: 0644]
src/x11-screen/debian/docs [new file with mode: 0644]
src/x11-screen/debian/postinst [new file with mode: 0755]
src/x11-screen/debian/postrm [new file with mode: 0755]
src/x11-screen/debian/rules [new file with mode: 0755]
src/x11-screen/debian/source/format [new file with mode: 0644]
src/x11-screen/debian/watch [new file with mode: 0644]

index cf853f0325f9df13ff088de46756b3777acc7500..06a48f41d2144f569000e18d40b9a8f2999ac436 100644 (file)
@@ -63,14 +63,16 @@ TAGS_DEPENDENCIES = $(sources)
 
 EXTRA_DIST += $(sources) compile.sh x11-screen.pkg
 EXTRA_DIST += x11-screen-check.sh x11-screen-test.scm
-EXTRA_DIST += make.scm optiondb.scm
+EXTRA_DIST += make.scm optiondb.scm 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/x11-screen/debian/changelog b/src/x11-screen/debian/changelog
new file mode 100644 (file)
index 0000000..f874bbf
--- /dev/null
@@ -0,0 +1,5 @@
+mit-scheme-pucked-x11-screen (0.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/x11-screen/debian/compat b/src/x11-screen/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/src/x11-screen/debian/control b/src/x11-screen/debian/control
new file mode 100644 (file)
index 0000000..28cf6e5
--- /dev/null
@@ -0,0 +1,22 @@
+Source: mit-scheme-pucked-x11-screen
+Section: lisp
+Priority: optional
+Maintainer: Friar Puck <puck@birchwood-abbey.net>
+Build-Depends: debhelper (>= 9),
+               mit-scheme-pucked (>= 9.2.1.1),
+               mit-scheme-pucked-edwin (>= 3.116.1),
+               mit-scheme-pucked-x11 (>= 0.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-x11-screen
+Architecture: any
+Depends: mit-scheme-pucked (>= 9.2.1.1),
+        mit-scheme-pucked-edwin (>= 3.116.1),
+        mit-scheme-pucked-x11 (>= 0.1)
+Description: Edwin X11 screen plugin for Friar Puck's MIT/GNU Scheme 
+ This package provides mit-scheme-pucked with an X11 screen type for
+ Edwin.  Install this package to get all of the functionality provided
+ by the ancient x11 microcode module and Edwin X screen type.
diff --git a/src/x11-screen/debian/copyright b/src/x11-screen/debian/copyright
new file mode 100644 (file)
index 0000000..8c4c4a9
--- /dev/null
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mit-scheme-pucked-x11-screen
+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 Edwin X11 screen type 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/x11-screen/debian/docs b/src/x11-screen/debian/docs
new file mode 100644 (file)
index 0000000..50bd824
--- /dev/null
@@ -0,0 +1,2 @@
+NEWS
+README
diff --git a/src/x11-screen/debian/postinst b/src/x11-screen/debian/postinst
new file mode 100755 (executable)
index 0000000..3a1b316
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+echo '(update-optiondb (system-library-directory-pathname))' \
+| mit-scheme-pucked --batch-mode
+
+exit 0
diff --git a/src/x11-screen/debian/postrm b/src/x11-screen/debian/postrm
new file mode 100755 (executable)
index 0000000..3a1b316
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+echo '(update-optiondb (system-library-directory-pathname))' \
+| mit-scheme-pucked --batch-mode
+
+exit 0
diff --git a/src/x11-screen/debian/rules b/src/x11-screen/debian/rules
new file mode 100755 (executable)
index 0000000..90576a6
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export MIT_SCHEME_EXE=mit-scheme-pucked
+
+%:
+       dh $@
diff --git a/src/x11-screen/debian/source/format b/src/x11-screen/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/src/x11-screen/debian/watch b/src/x11-screen/debian/watch
new file mode 100644 (file)
index 0000000..7085252
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://birchwood-abbey.net/~matt/Scheme/mit-scheme-pucked-x11-screen-(.*)\.tar\.gz debian uupdate