From c8ebdc1595d77c9f3d84c5cb76d2cd92bc7d63f7 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 12 Jun 2016 00:42:30 -0700 Subject: [PATCH] mhash/debian/: Support dpkg-buildpackage. --- src/mhash/Makefile.am | 12 +++++++----- src/mhash/debian/changelog | 5 +++++ src/mhash/debian/compat | 1 + src/mhash/debian/control | 18 ++++++++++++++++++ src/mhash/debian/copyright | 29 +++++++++++++++++++++++++++++ src/mhash/debian/docs | 2 ++ src/mhash/debian/postinst | 8 ++++++++ src/mhash/debian/postrm | 8 ++++++++ src/mhash/debian/rules | 6 ++++++ src/mhash/debian/source/format | 1 + src/mhash/debian/watch | 2 ++ 11 files changed, 87 insertions(+), 5 deletions(-) create mode 100644 src/mhash/debian/changelog create mode 100644 src/mhash/debian/compat create mode 100644 src/mhash/debian/control create mode 100644 src/mhash/debian/copyright create mode 100644 src/mhash/debian/docs create mode 100755 src/mhash/debian/postinst create mode 100755 src/mhash/debian/postrm create mode 100755 src/mhash/debian/rules create mode 100644 src/mhash/debian/source/format create mode 100644 src/mhash/debian/watch diff --git a/src/mhash/Makefile.am b/src/mhash/Makefile.am index cd5bee268..ee7b8f5df 100644 --- a/src/mhash/Makefile.am +++ b/src/mhash/Makefile.am @@ -94,19 +94,21 @@ TAGS_DEPENDENCIES = $(all_sources) $(cdecls) EXTRA_DIST += $(all_sources) $(cdecls) compile.scm mhash.pkg EXTRA_DIST += mhash-check.scm mhash-check.sh -EXTRA_DIST += make.scm optiondb.scm tags-fix.sh +EXTRA_DIST += make.scm optiondb.scm tags-fix.sh 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 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_mhashdir)" ] \ && rmdir "$(DESTDIR)$(scmlib_mhashdir)" # [ -d "$(DESTDIR)$(htmldir)" ] \ diff --git a/src/mhash/debian/changelog b/src/mhash/debian/changelog new file mode 100644 index 000000000..8b0a6291c --- /dev/null +++ b/src/mhash/debian/changelog @@ -0,0 +1,5 @@ +mit-scheme-pucked-mhash (0.1-1) experimental; urgency=low + + * Initial Debianization. + + -- Friar Puck Sun, 12 Jun 2016 00:00:00 -0700 diff --git a/src/mhash/debian/compat b/src/mhash/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/src/mhash/debian/compat @@ -0,0 +1 @@ +9 diff --git a/src/mhash/debian/control b/src/mhash/debian/control new file mode 100644 index 000000000..977b16d68 --- /dev/null +++ b/src/mhash/debian/control @@ -0,0 +1,18 @@ +Source: mit-scheme-pucked-mhash +Section: lisp +Priority: optional +Maintainer: Friar Puck +Build-Depends: debhelper (>= 9), autotools-dev, libltdl-dev, + mit-scheme-pucked (>= 9.2.1.1), + libmhash-dev +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-mhash +Architecture: any +Depends: mit-scheme-pucked (>= 9.2.1.1), ${shlibs:Depends}, ${misc:Depends} +Description: Mhash plugin for Friar Puck's MIT/GNU Scheme + This package provides mit-scheme-pucked with a dynamically loadable + wrapper of the C API implemented by libmhash. diff --git a/src/mhash/debian/copyright b/src/mhash/debian/copyright new file mode 100644 index 000000000..24ede6737 --- /dev/null +++ b/src/mhash/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mit-scheme-pucked-mhash +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 mhash 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/mhash/debian/docs b/src/mhash/debian/docs new file mode 100644 index 000000000..50bd824bb --- /dev/null +++ b/src/mhash/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/src/mhash/debian/postinst b/src/mhash/debian/postinst new file mode 100755 index 000000000..3a1b31670 --- /dev/null +++ b/src/mhash/debian/postinst @@ -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/mhash/debian/postrm b/src/mhash/debian/postrm new file mode 100755 index 000000000..3a1b31670 --- /dev/null +++ b/src/mhash/debian/postrm @@ -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/mhash/debian/rules b/src/mhash/debian/rules new file mode 100755 index 000000000..90576a632 --- /dev/null +++ b/src/mhash/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export MIT_SCHEME_EXE=mit-scheme-pucked + +%: + dh $@ diff --git a/src/mhash/debian/source/format b/src/mhash/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/src/mhash/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/src/mhash/debian/watch b/src/mhash/debian/watch new file mode 100644 index 000000000..abb699826 --- /dev/null +++ b/src/mhash/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://birchwood-abbey.net/~matt/Scheme/mit-scheme-pucked-mhash-(.*)\.tar\.gz debian uupdate -- 2.25.1