--- tads2-mode-1.2.orig/debian/control +++ tads2-mode-1.2/debian/control @@ -0,0 +1,17 @@ +Source: tads2-mode +Section: editors +Priority: optional +Maintainer: Daniel Schepler +Build-Depends-Indep: debhelper (>> 4.0.0) +Standards-Version: 3.5.10 + +Package: tads2-mode +Architecture: all +Depends: emacsen-common +Suggests: tads-dev +Description: Emacs mode for editing TADS code + This package provides an (X)Emacs mode which makes it easier to edit + source code for TADS games. TADS implements a programming language + especially designed for writing text adventures; interpreters for the + resulting byte-code are available for most operating systems + (including Debian GNU/Linux, in the tadsr package). --- tads2-mode-1.2.orig/debian/rules +++ tads2-mode-1.2/debian/rules @@ -0,0 +1,95 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=4 + + + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #$(MAKE) + #/usr/bin/docbook-to-man debian/tads2-mode.sgml > tads2-mode.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install + + # Add here commands to install the package into debian/tads2-mode. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/tads2-mode + + +# Build architecture-independent files here. +binary-arch: build install +# We have nothing to do here. + +# Build architecture-dependent files here. +binary-indep: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate + dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- tads2-mode-1.2.orig/debian/emacsen-install +++ tads2-mode-1.2/debian/emacsen-install @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/tads2-mode + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=tads2-mode + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 --- tads2-mode-1.2.orig/debian/changelog +++ tads2-mode-1.2/debian/changelog @@ -0,0 +1,15 @@ +tads2-mode (1.2-2) unstable; urgency=low + + * Fix startup elisp file so that it doesn't add bogus entries to + the load-path, autoloads, and auto-mode-alist when the package + is removed but the configuration files are not purged. + * Bump Standards-Version to 3.5.10. (No changed needed.) + + -- Daniel Schepler Fri, 16 May 2003 14:25:15 -0700 + +tads2-mode (1.2-1) unstable; urgency=low + + * Initial Release. + + -- Daniel Schepler Sun, 11 Aug 2002 16:03:32 -0700 + --- tads2-mode-1.2.orig/debian/emacsen-remove +++ tads2-mode-1.2/debian/emacsen-remove @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/tads2-mode + +FLAVOR=$1 +PACKAGE=tads2-mode + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/tads2-mode.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- tads2-mode-1.2.orig/debian/emacsen-startup +++ tads2-mode-1.2/debian/emacsen-startup @@ -0,0 +1,22 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian GNU/Linux tads2-mode package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The tads2-mode package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/tads2-mode"))) + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)) + (autoload 'tads-mode "tads2-mode" "TADS 2 editing mode." t) + (setq auto-mode-alist + (cons (cons "\\.t$" 'tads-mode) + auto-mode-alist)))) --- tads2-mode-1.2.orig/debian/copyright +++ tads2-mode-1.2/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Daniel Schepler on +Sun, 11 Aug 2002 16:03:32 -0700. + +It was downloaded from http://www.ifarchive.org/if-archive/programming/editors/tads2-mode.el + +Upstream Author: Stephen Granade +Previous Author: Darin Johnson + +Copyright: + +;; Copyright (c) by Stephen Granade 1999 +;; Portions of this code were adapted from GNU Emacs C-mode, and are +;; copyright (c) 1985, 1986, 1987, 1992 by Free Software Foundation, Inc. +;; Other portions of this code were adapted from an earlier TADS mode +;; by Darin Johnson, and are copyright (c) 1994 by Darin Johnson. +;; +;; tads-mode 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, or (at your option) +;; any later version. +;; +;; tads-mode 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. + +On Debian GNU/Linux systems, the text of the GPL is available at +/usr/share/common-licenses/GPL. --- tads2-mode-1.2.orig/debian/install +++ tads2-mode-1.2/debian/install @@ -0,0 +1 @@ +tads2-mode.el usr/share/emacs/site-lisp/tads2-mode/