From: Matt Birkholz Date: Mon, 13 Jun 2016 23:11:40 +0000 (-0700) Subject: gl/debian/: Support dpkg-buildpackage. X-Git-Tag: mit-scheme-pucked-9.2.12~284 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=17fb30a6bc379ce5a15541833f6cc8589102f0ea;p=mit-scheme.git gl/debian/: Support dpkg-buildpackage. --- diff --git a/src/gl/Makefile.am b/src/gl/Makefile.am index 6ff876f4a..2f413d87b 100644 --- a/src/gl/Makefile.am +++ b/src/gl/Makefile.am @@ -25,7 +25,7 @@ EXTRA_DIST = autogen.sh MIT_SCHEME_EXE = @MIT_SCHEME_EXE@ scmlibdir = @MIT_SCHEME_LIBDIR@ -scmlib_gldir = $(scmlibdir)gl +scmlib_subdir = $(scmlibdir)gl scmlib_LTLIBRARIES = gl-shim.la scmlib_DATA = gl-types.bin gl-const.bin @@ -33,20 +33,25 @@ scmlib_DATA = gl-types.bin gl-const.bin sources = gl.scm gl-glx.scm gl-glxgears.scm cdecls = gl.cdecl -scmlib_gl_DATA = $(sources) -scmlib_gl_DATA += gl.bin gl.bci gl.com -scmlib_gl_DATA += gl-glx.bin gl-glx.bci gl-glx.com -scmlib_gl_DATA += gl-glxgears.bin gl-glxgears.bci gl-glxgears.com -scmlib_gl_DATA += make.scm gl-@MIT_SCHEME_OS_SUFFIX@.pkd +binaries = gl.bci gl.com +binaries += gl-glx.bci gl-glx.com +binaries += gl-glxgears.bci gl-glxgears.com -#info_TEXINFOS = mit-scheme-gl.texi +scmlib_sub_DATA = $(sources) +scmlib_sub_DATA += $(binaries) +scmlib_sub_DATA += make.scm gl-@MIT_SCHEME_OS_SUFFIX@.pkd + +#info_TEXINFOS = mit-scheme-pucked-gl.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 gl glu gtk+-3.0` @@ -73,9 +78,12 @@ gl-const.bin: gl-const.scm gl-const.scm: gl-const ./gl-const -gl.bin: stamp-scheme gl.bci: stamp-scheme gl.com: stamp-scheme +gl-glx.bci: stamp-scheme +gl-glx.com: stamp-scheme +gl-glxgears.bci: stamp-scheme +gl-glxgears.com: stamp-scheme gl-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme stamp-scheme: stamp-shim $(sources) gl.pkg touch stamp-scheme @@ -94,22 +102,25 @@ ETAGS_ARGS = $(all_sources) -r '/^([^iI].*/' $(cdecls) TAGS_DEPENDENCIES = $(all_sources) $(cdecls) EXTRA_DIST += $(all_sources) $(cdecls) compile.sh gl.pkg -EXTRA_DIST += gl-check.sh gl-tests.scm -EXTRA_DIST += make.scm optiondb.scm tags-fix.sh +EXTRA_DIST += gl-tests.scm gl-check.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 +# 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_gldir)" ] \ - && rmdir "$(DESTDIR)$(scmlib_gldir)" -# [ -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/gl/debian/changelog b/src/gl/debian/changelog new file mode 100644 index 000000000..29ba61523 --- /dev/null +++ b/src/gl/debian/changelog @@ -0,0 +1,5 @@ +mit-scheme-pucked-gl (0.1-1) experimental; urgency=low + + * Initial Debianization. + + -- Friar Puck Sun, 12 Jun 2016 00:00:00 -0700 diff --git a/src/gl/debian/compat b/src/gl/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/src/gl/debian/compat @@ -0,0 +1 @@ +9 diff --git a/src/gl/debian/control b/src/gl/debian/control new file mode 100644 index 000000000..314f697b8 --- /dev/null +++ b/src/gl/debian/control @@ -0,0 +1,20 @@ +Source: mit-scheme-pucked-gl +Section: lisp +Priority: optional +Maintainer: Friar Puck +Build-Depends: debhelper (>= 9), autotools-dev, libltdl-dev, + mit-scheme-pucked-gtk (>= 0.5), + texinfo, texlive, + libglu1-mesa-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-gl +Architecture: any +Depends: mit-scheme-pucked-gtk (>= 0.5), ${shlibs:Depends}, ${misc:Depends} +Description: OpenGL 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 OpenGL C API as implemented by the + Mesa 3D graphics library. diff --git a/src/gl/debian/copyright b/src/gl/debian/copyright new file mode 100644 index 000000000..bfaa9503d --- /dev/null +++ b/src/gl/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mit-scheme-pucked-gl +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 OpenGL 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/gl/debian/docs b/src/gl/debian/docs new file mode 100644 index 000000000..50bd824bb --- /dev/null +++ b/src/gl/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/src/gl/debian/postinst b/src/gl/debian/postinst new file mode 100755 index 000000000..3a1b31670 --- /dev/null +++ b/src/gl/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/gl/debian/postrm b/src/gl/debian/postrm new file mode 100755 index 000000000..3a1b31670 --- /dev/null +++ b/src/gl/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/gl/debian/rules b/src/gl/debian/rules new file mode 100755 index 000000000..90576a632 --- /dev/null +++ b/src/gl/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export MIT_SCHEME_EXE=mit-scheme-pucked + +%: + dh $@ diff --git a/src/gl/debian/source/format b/src/gl/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/src/gl/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/src/gl/debian/watch b/src/gl/debian/watch new file mode 100644 index 000000000..b694ba88e --- /dev/null +++ b/src/gl/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://birchwood-abbey.net/~matt/Scheme/mit-scheme-pucked-gl-(.*)\.tar\.gz debian uupdate