From: Matt Birkholz Date: Mon, 13 Jun 2016 19:11:46 +0000 (-0700) Subject: gtk/debian/: Support dpkg-buildpackage. X-Git-Tag: mit-scheme-pucked-9.2.12~285 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=4f59e2be6f45909241dd0af45c171a0ebb452451;p=mit-scheme.git gtk/debian/: Support dpkg-buildpackage. --- diff --git a/src/gtk/Makefile.am b/src/gtk/Makefile.am index d15867e78..f8c25f0c0 100644 --- a/src/gtk/Makefile.am +++ b/src/gtk/Makefile.am @@ -25,7 +25,7 @@ EXTRA_DIST = autogen.sh MIT_SCHEME_EXE = @MIT_SCHEME_EXE@ scmlibdir = @MIT_SCHEME_LIBDIR@ -scmlib_gtkdir = $(scmlibdir)gtk +scmlib_subdir = $(scmlibdir)gtk scmlib_LTLIBRARIES = gtk-shim.la scmlib_DATA = gtk-types.bin gtk-const.bin conses.png @@ -36,29 +36,34 @@ sources += gtk-ev.scm gtk-graphics.scm fix-demo.scm swat.scm sources += swat-pole-zero.scm cdecls = gtk.cdecl Includes/*.cdecl -scmlib_gtk_DATA = $(sources) -scmlib_gtk_DATA += gtk.bin gtk.bci gtk.com -scmlib_gtk_DATA += gdk.bin gdk.bci gdk.com -scmlib_gtk_DATA += gtk-widget.bin gtk-widget.bci gtk-widget.com -scmlib_gtk_DATA += scm-widget.bin scm-widget.bci scm-widget.com -scmlib_gtk_DATA += fix-layout.bin fix-layout.bci fix-layout.com -scmlib_gtk_DATA += keys.bin keys.bci keys.com -scmlib_gtk_DATA += main.bin main.bci main.com -scmlib_gtk_DATA += gtk-ev.bin gtk-ev.bci gtk-ev.com -scmlib_gtk_DATA += gtk-graphics.bin gtk-graphics.bci gtk-graphics.com -scmlib_gtk_DATA += fix-demo.bin fix-demo.bci fix-demo.com -scmlib_gtk_DATA += swat.bin swat.bci swat.com -scmlib_gtk_DATA += swat-pole-zero.bin swat-pole-zero.bci swat-pole-zero.com -scmlib_gtk_DATA += make.scm gtk-@MIT_SCHEME_OS_SUFFIX@.pkd - -info_TEXINFOS = mit-scheme-gtk.texi +binaries = gtk.bci gtk.com +binaries += gdk.bci gdk.com +binaries += gtk-widget.bci gtk-widget.com +binaries += scm-widget.bci scm-widget.com +binaries += fix-layout.bci fix-layout.com +binaries += keys.bci keys.com +binaries += main.bci main.com +binaries += gtk-ev.bci gtk-ev.com +binaries += gtk-graphics.bci gtk-graphics.com +binaries += fix-demo.bci fix-demo.com +binaries += swat.bci swat.com +binaries += swat-pole-zero.bci swat-pole-zero.com + +scmlib_sub_DATA = $(sources) +scmlib_sub_DATA += $(binaries) +scmlib_sub_DATA += make.scm gtk-@MIT_SCHEME_OS_SUFFIX@.pkd + +info_TEXINFOS = mit-scheme-pucked-gtk.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 AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@ AM_CFLAGS = `pkg-config --cflags gtk+-3.0` @@ -89,40 +94,28 @@ gtk-const.bin: gtk-const.scm gtk-const.scm: gtk-const ./gtk-const -gtk.bin: stamp-scheme gtk.bci: stamp-scheme gtk.com: stamp-scheme -gdk.bin: stamp-scheme gdk.bci: stamp-scheme gdk.com: stamp-scheme -gtk-widget.bin: stamp-scheme gtk-widget.bci: stamp-scheme gtk-widget.com: stamp-scheme -scm-widget.bin: stamp-scheme scm-widget.bci: stamp-scheme scm-widget.com: stamp-scheme -fix-layout.bin: stamp-scheme fix-layout.bci: stamp-scheme fix-layout.com: stamp-scheme -keys.bin: stamp-scheme keys.bci: stamp-scheme keys.com: stamp-scheme -main.bin: stamp-scheme main.bci: stamp-scheme main.com: stamp-scheme -gtk-ev.bin: stamp-scheme gtk-ev.bci: stamp-scheme gtk-ev.com: stamp-scheme -gtk-graphics.bin: stamp-scheme gtk-graphics.bci: stamp-scheme gtk-graphics.com: stamp-scheme -fix-demo.bin: stamp-scheme fix-demo.bci: stamp-scheme fix-demo.com: stamp-scheme -swat.bin: stamp-scheme swat.bci: stamp-scheme swat.com: stamp-scheme -swat-pole-zero.bin: stamp-scheme swat-pole-zero.bci: stamp-scheme swat-pole-zero.com: stamp-scheme gtk-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme @@ -146,27 +139,31 @@ ETAGS_ARGS = $(all_sources) -r '/^([^iI].*/' $(cdecls) TAGS_DEPENDENCIES = $(all_sources) $(cdecls) EXTRA_DIST += $(all_sources) $(cdecls) compile.sh gtk.pkg -EXTRA_DIST += gtk-check.sh gtk-tests.scm +EXTRA_DIST += gtk-tests.scm gtk-check.sh EXTRA_DIST += make.scm optiondb.scm check-doc.sh tags-fix.sh EXTRA_DIST += gtkpanedview-3.10.8.c gtkscrolledview-3.10.8.c EXTRA_DIST += gtkpanedview-3.14.13.c gtkscrolledview-3.14.13.c EXTRA_DIST += gtkpanedview-3.16.7.c gtkscrolledview-3.16.7.c EXTRA_DIST += gtkpanedview-3.6.0.c gtkscrolledview-3.6.0.c EXTRA_DIST += conses.png hello.scm test-gport-performance.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_gtkdir)" ] \ - && rmdir "$(DESTDIR)$(scmlib_gtkdir)" - [ -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/gtk/check-doc.sh b/src/gtk/check-doc.sh index 55383ad51..08bfd6674 100755 --- a/src/gtk/check-doc.sh +++ b/src/gtk/check-doc.sh @@ -28,7 +28,7 @@ set -e ${MIT_SCHEME_EXE} --batch-mode <<\EOF (let ((pkgset "gtk") - (texi "mit-scheme-gtk.texi") + (texi "mit-scheme-pucked-gtk.texi") (pkg '(gtk))) ;; Check that every binding exported to () or PKG has a ;; corresponding @deffn in TEXI. diff --git a/src/gtk/debian/changelog b/src/gtk/debian/changelog new file mode 100644 index 000000000..56a141f54 --- /dev/null +++ b/src/gtk/debian/changelog @@ -0,0 +1,5 @@ +mit-scheme-pucked-gtk (0.5-1) experimental; urgency=low + + * Initial Debianization. + + -- Friar Puck Sun, 12 Jun 2016 00:00:00 -0700 diff --git a/src/gtk/debian/compat b/src/gtk/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/src/gtk/debian/compat @@ -0,0 +1 @@ +9 diff --git a/src/gtk/debian/control b/src/gtk/debian/control new file mode 100644 index 000000000..c404501ff --- /dev/null +++ b/src/gtk/debian/control @@ -0,0 +1,20 @@ +Source: mit-scheme-pucked-gtk +Section: lisp +Priority: optional +Maintainer: Friar Puck +Build-Depends: debhelper (>= 9), autotools-dev, libltdl-dev, + mit-scheme-pucked-cairo (>= 0.5), + texinfo, texlive, + libgtk-3-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-gtk +Architecture: any +Depends: mit-scheme-pucked-cairo (>= 0.5), ${shlibs:Depends}, ${misc:Depends} +Description: Gtk3 plugin for Friar Puck's MIT/GNU Scheme + This package provides mit-scheme-pucked with a dynamically loadable + wrapper of a small portion of the Gtk3 C API, just sufficient to + implement a Gtk-based screen for Edwin. diff --git a/src/gtk/debian/copyright b/src/gtk/debian/copyright new file mode 100644 index 000000000..4346e2aac --- /dev/null +++ b/src/gtk/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mit-scheme-pucked-gtk +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 a gtk 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/gtk/debian/doc-base b/src/gtk/debian/doc-base new file mode 100644 index 000000000..4fe604b52 --- /dev/null +++ b/src/gtk/debian/doc-base @@ -0,0 +1,14 @@ +Document: mit-scheme-pucked-gtk +Title: Gtk User's Manual +Author: Matt Birkholz +Abstract: The Gtk plugin for Friar Puck's MIT/GNU Scheme wraps the + GNOME toolkit widget library. This manual describes how much of + the C API is currently available. +Section: Programming + +Format: HTML +Index: /usr/share/doc/mit-scheme-pucked/html/mit-scheme-pucked-gtk.html +Files: /usr/share/doc/mit-scheme-pucked/html/mit-scheme-pucked-gtk.html + +Format: PDF +Files: /usr/share/doc/mit-scheme-pucked/pdf/mit-scheme-pucked-gtk.pdf.gz diff --git a/src/gtk/debian/docs b/src/gtk/debian/docs new file mode 100644 index 000000000..50bd824bb --- /dev/null +++ b/src/gtk/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/src/gtk/debian/postinst.in b/src/gtk/debian/postinst.in new file mode 100755 index 000000000..332b30f47 --- /dev/null +++ b/src/gtk/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/gtk/debian/postrm.in b/src/gtk/debian/postrm.in new file mode 100755 index 000000000..332b30f47 --- /dev/null +++ b/src/gtk/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/gtk/debian/rules b/src/gtk/debian/rules new file mode 100755 index 000000000..3c78a5268 --- /dev/null +++ b/src/gtk/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/gtk/debian/source/format b/src/gtk/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/src/gtk/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/src/gtk/debian/watch b/src/gtk/debian/watch new file mode 100644 index 000000000..103a3065b --- /dev/null +++ b/src/gtk/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://birchwood-abbey.net/~matt/Scheme/mit-scheme-pucked-gdbm-(.*)\.tar\.gz debian uupdate diff --git a/src/gtk/mit-scheme-gtk.texi b/src/gtk/mit-scheme-pucked-gtk.texi similarity index 99% rename from src/gtk/mit-scheme-gtk.texi rename to src/gtk/mit-scheme-pucked-gtk.texi index 9a97a6d3e..53f173dfc 100644 --- a/src/gtk/mit-scheme-gtk.texi +++ b/src/gtk/mit-scheme-pucked-gtk.texi @@ -1,7 +1,7 @@ \input texinfo @c -*-Texinfo-*- @comment %**start of header -@setfilename mit-scheme-gtk.info -@set VERSION 0.5 +@setfilename mit-scheme-pucked-gtk.info +@include version.texi @settitle Gtk Plugin @value{VERSION} @comment %**end of header @@ -42,15 +42,13 @@ Documentation License.'' @dircategory Programming Languages @direntry -* MIT/GNU Scheme Gtk: (mit-scheme-gtk). +* MIT/GNU Scheme Pucked Gtk: (mit-scheme-pucked-gtk). GNOME toolkits plugin. @end direntry @titlepage -@title The MIT/GNU Scheme Gtk Plugin Manual -@subtitle Schemely access (@value{VERSION}) to the GNOME toolkits -@subtitle for MIT/GNU Scheme version 9.3 -@author by Matt Birkholz (@email{birkholz@@alum.mit.edu}) +@title Gtk User's Manual +@author by Matt Birkholz @page @vskip 0pt plus 1filll @insertcopying