--- paredit-el-20.orig/debian/emacsen-remove +++ paredit-el-20/debian/emacsen-remove @@ -0,0 +1,12 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/paredit-el + +FLAVOR=$1 +PACKAGE=paredit-el + +if test "${FLAVOR}" = 'emacs' -o "$(echo ${FLAVOR} | cut -c-6)" = 'xemacs'; then + exit 0 +fi + +echo "remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}" +rm -rf "/usr/share/${FLAVOR}/site-lisp/${PACKAGE}" --- paredit-el-20.orig/debian/control +++ paredit-el-20/debian/control @@ -0,0 +1,15 @@ +Source: paredit-el +Section: editors +Priority: optional +Maintainer: Trent W. Buck +Build-Depends: debhelper (>= 5), cdbs +Standards-Version: 3.7.2 + +Package: paredit-el +Architecture: all +Depends: emacs22 | emacsen +Description: Emacs minor mode for structurally editing Lisp code + Paredit mode instruments several common keybindings to automatically + balance all parentheses and respect the structure of S-expressions; + it also provides numerous high-level operations to change the + structure of lists. --- paredit-el-20.orig/debian/compat +++ paredit-el-20/debian/compat @@ -0,0 +1 @@ +5 --- paredit-el-20.orig/debian/emacsen-install +++ paredit-el-20/debian/emacsen-install @@ -0,0 +1,32 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/paredit-el + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=paredit-el +if test "${FLAVOR}" = 'emacs' -o "$(echo ${FLAVOR} | cut -c-6)" = 'xemacs'; then + exit 0 +fi + +echo "install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}" +FLAGS="--no-site-file -q -batch -l path.el -f batch-byte-compile" +ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}" +ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}" +install -m 755 -d "${ELCDIR}" +cd "${ELDIR}" +FILES=`echo *.el` +cd ${ELCDIR} +for i in ${FILES}; do + ln -fs "/usr/share/emacs/site-lisp/${PACKAGE}/${i}" +done + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +"${FLAVOR}" ${FLAGS} ${FILES} +rm -f path.el + +exit 0 --- paredit-el-20.orig/debian/emacsen-startup +++ paredit-el-20/debian/emacsen-startup @@ -0,0 +1,22 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian paredit-el package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The paredit-el 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/paredit-el"))) + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)))) + +(autoload 'paredit-mode "paredit" + "Minor mode for pseudo-structurally editing Lisp code." + t) --- paredit-el-20.orig/debian/README.Debian +++ paredit-el-20/debian/README.Debian @@ -0,0 +1,26 @@ +Paredit for Debian +================== + +By default, paredit is not enabled in any major modes. Deciding which +modes should use paredit is rather subjective, so I've taken the +safest approach and left it off for all of them. This means that +simply apt-get installing paredit-el should give neither a pleasant +nor nasty surprise to users. + +The most typical major modes in which to use paredit are lisp and +scheme. To enable those, add the following to your .emacs: + + (add-hook 'lisp-mode-hook (lambda () (paredit-mode +1))) + (add-hook 'scheme-mode-hook (lambda () (paredit-mode +1))) + +A slightly more paranoid version might be: + + (when (fboundp 'paredit-mode) + (mapc (lambda (hook) + (add-hook hook (lambda () (paredit-mode +1)))) + '(lisp-mode-hook scheme-mode-hook))) + +The latter will not cause an error when paredit isn't installed, and +doesn't involve copy-and-pasting. + + -- Trent Buck , Wed, 4 Apr 2007 18:12:58 +1000 --- paredit-el-20.orig/debian/rules +++ paredit-el-20/debian/rules @@ -0,0 +1,2 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk --- paredit-el-20.orig/debian/copyright +++ paredit-el-20/debian/copyright @@ -0,0 +1,10 @@ +Debian Copyright Section +======================== + +Upstream Source URL: http://mumble.net/~campbell/emacs/paredit.el +Upstream Author: Taylor Campbell +Debian Maintainer: Trent Buck + +;;; This code is written by Taylor Campbell (except where explicitly +;;; noted) and placed in the Public Domain. All warranties are +;;; disclaimed. --- paredit-el-20.orig/debian/docs +++ paredit-el-20/debian/docs @@ -0,0 +1 @@ +paredit.html --- paredit-el-20.orig/debian/install +++ paredit-el-20/debian/install @@ -0,0 +1 @@ +paredit.el usr/share/emacs/site-lisp/paredit-el/ --- paredit-el-20.orig/debian/changelog +++ paredit-el-20/debian/changelog @@ -0,0 +1,33 @@ +paredit-el (20-2) unstable; urgency=low + + * debian/control (Depends): Prefer Emacs 22 to Emacs 21 per #434978. + (Maintainer): Add my middle initial. + (Standards-Version): Use latest version (3.7.2). + + -- Trent W. Buck Sun, 29 Jul 2007 04:42:19 +1000 + +paredit-el (20-1) unstable; urgency=low + + * New upstream release. + * Convert to CDBS. + + -- Trent Buck Wed, 4 Apr 2007 17:49:22 +1000 + +paredit-el (19-1) unstable; urgency=low + + * New upstream release + + -- Trent Buck Tue, 30 May 2006 14:23:48 +1000 + +paredit-el (17-1) unstable; urgency=low + + * New upstream release. + + -- Trent Buck Sun, 1 Jan 2006 17:24:07 +1100 + +paredit-el (16-1) unstable; urgency=low + + * Initial release (Closes: #336007) + + -- Trent Buck Mon, 24 Oct 2005 18:28:41 +1000 +