--- mmm-mode-0.4.7.orig/debian/control +++ mmm-mode-0.4.7/debian/control @@ -0,0 +1,17 @@ +Source: mmm-mode +Maintainer: Debian QA Group +Section: editors +Priority: optional +Build-Depends: debhelper +Standards-Version: 3.1.0 + +Package: mmm-mode +Section: editors +Priority: optional +Architecture: all +Depends: emacs20 | emacsen +Description: Multiple Major Mode for Emacs + MMM Mode is a minor mode for Emacs that allows Multiple Major Modes + (hence the name) to coexist in one buffer. It is particularly + well-suited to editing embedded code, such as Mason server-side Perl, + or HTML output in CGI scripts. --- mmm-mode-0.4.7.orig/debian/mmm-mode.emacsen-install +++ mmm-mode-0.4.7/debian/mmm-mode.emacsen-install @@ -0,0 +1,19 @@ +#!/bin/sh -e + +FILES="mmm-compat.el mmm-vars.el mmm-utils.el mmm-auto.el mmm-region.el mmm-class.el mmm-cmds.el mmm-mode.el mmm-sample.el mmm-mason.el mmm-univ.el mmm-rpm.el" + +FLAVOR="$1" + +echo "install/mmm-mode: Handling install of emacsen flavor ${FLAVOR}" + +if [ "${FLAVOR}" != "emacs" ]; then + echo "install/mmm-mode: byte-compiling for ${FLAVOR}" + cd /usr/share/emacs/site-lisp/mmm-mode + cp $FILES /usr/share/${FLAVOR}/site-lisp + cd /usr/share/${FLAVOR}/site-lisp + echo "(setq load-path (cons nil load-path))" > script + ${FLAVOR} -q -batch -l script -f batch-byte-compile $FILES + rm script $FILES +fi + +exit 0; --- mmm-mode-0.4.7.orig/debian/rules +++ mmm-mode-0.4.7/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f + +export DH_COMPAT := 3 + +PERL ?= /usr/bin/perl + +b := $(shell pwd)/debian/mmm-mode + +arrange: arrange-stamp +arrange-stamp: install + dh_testdir + touch arrange-stamp + +binary: binary-stamp +binary-stamp: binary-indep binary-arch + dh_testdir + touch binary-stamp + +binary-arch: binary-arch-stamp +binary-arch-stamp: arrange + dh_testdir + touch binary-arch-stamp + +binary-indep: binary-indep-stamp +binary-indep-stamp: arrange + dh_testdir + dh_testroot + dh_installdocs AUTHORS FAQ NEWS README README.Mason TODO + dh_installemacsen + dh_installinfo + dh_installchangelogs ChangeLog + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + touch binary-indep-stamp + +build: build-stamp +build-stamp: config + dh_testdir + touch build-stamp + +clean: + dh_testdir + dh_testroot + dh_clean checkbot arrange-stamp binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp + +config: config-stamp +config-stamp: + dh_testdir + touch config-stamp + +install: install-stamp +install-stamp: build + dh_testdir + dh_installdirs + cp *.el $(b)/usr/share/emacs/site-lisp/mmm-mode + touch install-stamp + +.PHONY: arrange binary binary-arch binary-indep build clean config install --- mmm-mode-0.4.7.orig/debian/changelog +++ mmm-mode-0.4.7/debian/changelog @@ -0,0 +1,19 @@ +mmm-mode (0.4.7-3) unstable; urgency=low + + * QA Group upload orphaning this package + * debian/copyright: mention location of license + + -- Andrew Pollock Tue, 9 Nov 2004 23:24:05 +1100 + +mmm-mode (0.4.7-2) unstable; urgency=low + + * Automatically require mmm-auto, but don't do anything else. (closes: bug#101475) + + -- Michael Alan Dorman Tue, 7 Aug 2001 16:46:02 -0400 + +mmm-mode (0.4.7-1) unstable; urgency=low + + * Initial debianization. + + -- Michael Alan Dorman Sun, 22 Apr 2001 09:56:23 -0400 + --- mmm-mode-0.4.7.orig/debian/mmm-mode.emacsen-remove +++ mmm-mode-0.4.7/debian/mmm-mode.emacsen-remove @@ -0,0 +1,15 @@ +#!/bin/sh -e + +FILES="mmm-compat.elc mmm-vars.elc mmm-utils.elc mmm-auto.elc mmm-region.elc mmm-class.elc mmm-cmds.elc mmm-mode.elc mmm-sample.elc mmm-mason.elc mmm-univ.elc mmm-rpm.elc" + +FLAVOR="$1" + +echo "install/mmm-mode: Handling removal of emacsen flavor ${FLAVOR}" + +if [ "${FLAVOR}" != "emacs" ]; then + echo "install/mmm-mode: purging byte-compiled files for ${FLAVOR}" + cd /usr/share/${FLAVOR}/site-lisp + rm -f $FILES +fi + +exit 0; --- mmm-mode-0.4.7.orig/debian/mmm-mode.emacsen-startup +++ mmm-mode-0.4.7/debian/mmm-mode.emacsen-startup @@ -0,0 +1,4 @@ +;; This is as far as you can go without perhaps incurring performance +;; issues. You probably want to add (setq mmm-global-mode 'maybe) in +;; your .emacs. 'info mmm-mode' for details +(require 'mmm-auto) --- mmm-mode-0.4.7.orig/debian/copyright +++ mmm-mode-0.4.7/debian/copyright @@ -0,0 +1,49 @@ +This is a version of MMM Mode for Emacs by Michael Abraham Shulman + prepackaged for Debian GNU/Linux. + +MMM Mode is a minor mode for Emacs that allows Multiple Major Modes +(hence the name) to coexist in one buffer. It is particularly +well-suited to editing embedded code, such as Mason server-side Perl, +or HTML output in CGI scripts. + +The package was assembled by Michael Alan Dorman . +The latest version of MMM Mode should always be available from +http://mmm-mode.sourceforge.net/. + +The only change for the Debian package was the addition of the files +in debian/ + +The mmm-mode copyright is: + +;;; mmm-mode.el --- Allow Multiple Major Modes in a buffer + +;; Copyright (C) 1999 by Michael Abraham Shulman + +;; Emacs Lisp Archive Entry +;; Package: mmm-mode +;; Author: Michael Abraham Shulman +;; Keywords: convenience, faces, languages, tools +;; Version: 0.4.7 + +;; Revision: $Id: copyright,v 1.1 2001/04/22 16:21:49 mdorman Exp $ + +;;{{{ GPL + +;; This file 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. + +;; This file 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 GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, +;; Boston, MA 02111-1307, USA. + +;;}}} + +On Debian systems, the full text of the GPL can be found in /usr/share/common-licenses/GPL --- mmm-mode-0.4.7.orig/debian/mmm-mode.dirs +++ mmm-mode-0.4.7/debian/mmm-mode.dirs @@ -0,0 +1 @@ +/usr/share/emacs/site-lisp/mmm-mode --- mmm-mode-0.4.7.orig/debian/mmm-mode.info +++ mmm-mode-0.4.7/debian/mmm-mode.info @@ -0,0 +1 @@ +mmm.info* --- mmm-mode-0.4.7.orig/debian/mmm-mode.README.Debian +++ mmm-mode-0.4.7/debian/mmm-mode.README.Debian @@ -0,0 +1,12 @@ +We now autoload mmm-mode, but we don't actually turn it on because +that represents a performance hit that we don't want to unilaterally +impose on all emacs users. + +So, if you want to use mmm-mode, you'll need to: + +(setq mmm-global-mode 'maybe) + +Obviously there's a lot of customization possible. Read the info +files. + +Mike.