pango/debian/: Support dpkg-buildpackage.
authorMatt Birkholz <puck@birchwood-abbey.net>
Mon, 13 Jun 2016 00:27:13 +0000 (17:27 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Mon, 13 Jun 2016 00:27:13 +0000 (17:27 -0700)
14 files changed:
src/pango/Makefile.am
src/pango/check-doc.sh
src/pango/debian/changelog [new file with mode: 0644]
src/pango/debian/compat [new file with mode: 0644]
src/pango/debian/control [new file with mode: 0644]
src/pango/debian/copyright [new file with mode: 0644]
src/pango/debian/doc-base [new file with mode: 0644]
src/pango/debian/docs [new file with mode: 0644]
src/pango/debian/postinst.in [new file with mode: 0755]
src/pango/debian/postrm.in [new file with mode: 0755]
src/pango/debian/rules [new file with mode: 0755]
src/pango/debian/source/format [new file with mode: 0644]
src/pango/debian/watch [new file with mode: 0644]
src/pango/mit-scheme-pucked-pango.texi [moved from src/pango/mit-scheme-pango.texi with 98% similarity]

index a217777e5a0ffbe33701d892b207c49d3cea1d89..5ab8890073b0b3f5bd7463ea593b0ce735758639 100644 (file)
@@ -25,7 +25,7 @@ EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
-scmlib_pangodir = $(scmlibdir)pango
+scmlib_subdir = $(scmlibdir)pango
 
 scmlib_LTLIBRARIES = pango-shim.la
 scmlib_DATA = pango-types.bin pango-const.bin
@@ -33,18 +33,23 @@ scmlib_DATA = pango-types.bin pango-const.bin
 sources = pango.scm
 cdecls = pango.cdecl Includes/*.cdecl
 
-scmlib_pango_DATA = $(sources)
-scmlib_pango_DATA += pango.bin pango.bci pango.com
-scmlib_pango_DATA += make.scm pango-@MIT_SCHEME_OS_SUFFIX@.pkd
+binaries = pango.bci pango.com
 
-info_TEXINFOS = mit-scheme-pango.texi
+scmlib_sub_DATA = $(sources)
+scmlib_sub_DATA += $(binaries)
+scmlib_sub_DATA += make.scm pango-@MIT_SCHEME_OS_SUFFIX@.pkd
+
+info_TEXINFOS = mit-scheme-pucked-pango.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 pango`
@@ -70,7 +75,6 @@ pango-const.bin: pango-const.scm
 pango-const.scm: pango-const
        ./pango-const
 
-pango.bin: stamp-scheme
 pango.bci: stamp-scheme
 pango.com: stamp-scheme
 pango-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme
@@ -94,21 +98,24 @@ TAGS_DEPENDENCIES = $(sources) $(cdecls)
 
 EXTRA_DIST += $(sources) $(cdecls) compile.sh pango.pkg
 EXTRA_DIST += pango-check.sh
-EXTRA_DIST += make.scm optiondb.scm check-doc.sh tags-fix.sh
+EXTRA_DIST += make.scm optiondb.scm check-doc.sh 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
+       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_pangodir)" ] \
-       && rmdir "$(DESTDIR)$(scmlib_pangodir)"
-       [ -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
index ef55ff5e9bfe9f62fdb5df08a35c1d5cee003a01..76641b2158df12feaf66922e86b74837345f509e 100755 (executable)
@@ -28,7 +28,7 @@ set -e
 ${MIT_SCHEME_EXE} --batch-mode <<\EOF
 
 (let ((pkgset "pango")
-      (texi "mit-scheme-pango.texi")
+      (texi "mit-scheme-pucked-pango.texi")
       (pkg '()))
   ;; Check that every binding exported to () or PKG has a
   ;; corresponding @deffn in TEXI.
diff --git a/src/pango/debian/changelog b/src/pango/debian/changelog
new file mode 100644 (file)
index 0000000..e94ce0e
--- /dev/null
@@ -0,0 +1,5 @@
+mit-scheme-pucked-pango (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/pango/debian/compat b/src/pango/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/src/pango/debian/control b/src/pango/debian/control
new file mode 100644 (file)
index 0000000..b216b86
--- /dev/null
@@ -0,0 +1,19 @@
+Source: mit-scheme-pucked-pango
+Section: lisp
+Priority: optional
+Maintainer: Friar Puck <puck@birchwood-abbey.net>
+Build-Depends: debhelper (>= 9), autotools-dev, libltdl-dev,
+               mit-scheme-pucked-glib (>= 9.2.1.1),
+               libpango1.0-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-pango
+Architecture: any
+Depends: mit-scheme-pucked (>= 9.2.1.1), ${shlibs:Depends}, ${misc:Depends}
+Description: Pango 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 Pango C API.
\ No newline at end of file
diff --git a/src/pango/debian/copyright b/src/pango/debian/copyright
new file mode 100644 (file)
index 0000000..323633d
--- /dev/null
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mit-scheme-pucked-pango
+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 pango 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/pango/debian/doc-base b/src/pango/debian/doc-base
new file mode 100644 (file)
index 0000000..f72c6dc
--- /dev/null
@@ -0,0 +1,14 @@
+Document: mit-scheme-pucked-pango
+Title: Pango User's Manual
+Author: Matt Birkholz
+Abstract: The Pango plugin for Friar Puck's MIT/GNU Scheme wraps the
+ Pango text layout and rendering library.  This manual describes how
+ much of the C API is available.
+Section: Network/Communication
+
+Format: HTML
+Index: /usr/share/doc/mit-scheme-pucked/html/mit-scheme-pucked-pango.html
+Files: /usr/share/doc/mit-scheme-pucked/html/mit-scheme-pucked-pango.html
+
+Format: PDF
+Files: /usr/share/doc/mit-scheme-pucked/pdf/mit-scheme-pucked-pango.pdf.gz
diff --git a/src/pango/debian/docs b/src/pango/debian/docs
new file mode 100644 (file)
index 0000000..50bd824
--- /dev/null
@@ -0,0 +1,2 @@
+NEWS
+README
diff --git a/src/pango/debian/postinst.in b/src/pango/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/pango/debian/postrm.in b/src/pango/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/pango/debian/rules b/src/pango/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/pango/debian/source/format b/src/pango/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/src/pango/debian/watch b/src/pango/debian/watch
new file mode 100644 (file)
index 0000000..103a306
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://birchwood-abbey.net/~matt/Scheme/mit-scheme-pucked-gdbm-(.*)\.tar\.gz debian uupdate
similarity index 98%
rename from src/pango/mit-scheme-pango.texi
rename to src/pango/mit-scheme-pucked-pango.texi
index d76c4275df6de2d5a30ff29d69517bf90266de8e..4d75e82a8d4be170174d903620d76aa66cb2a762 100644 (file)
@@ -1,7 +1,7 @@
 \input texinfo @c -*-Texinfo-*-
 @comment %**start of header
-@setfilename mit-scheme-pango.info
-@set VERSION 0.5
+@setfilename mit-scheme-pucked-pango.info
+@include version.texi
 @settitle Pango Plugin @value{VERSION}
 @comment %**end of header
 
@@ -42,15 +42,13 @@ Documentation License.''
 
 @dircategory Programming Languages
 @direntry
-* MIT/GNU Scheme Pango: (mit-scheme-pango).
-                                Pango text layout plugin.
+* MIT/GNU Scheme Pucked Pango: (mit-scheme-pucked-pango).
+                                Pango text layout and rendering plugin.
 @end direntry
 
 @titlepage
-@title The MIT/GNU Scheme Pango 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 Pango User's Manual
+@author by Matt Birkholz
 @page
 @vskip 0pt plus 1filll
 @insertcopying