--- nethack-el-0.9.5.orig/debian/preinst +++ nethack-el-0.9.5/debian/preinst @@ -0,0 +1,19 @@ +#!/bin/sh -e + +# Handle transition from lenny to sid smoothly as the previous package +# versions were not relying on dh_installemacsen (see #454707). +if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then + if [ -f "/etc/emacs/site-start.d/50nethack.el" ]; then + if [ ! -f "/etc/emacs/site-start.d/50nethack-el.el" ]; then + mv /etc/emacs/site-start.d/50nethack.el \ + /etc/emacs/site-start.d/50nethack-el.el + else + mv /etc/emacs/site-start.d/50nethack.el \ + /etc/emacs/site-start.d/50nethack-el.el.old + fi + fi +fi + +#DEBHELPER# + +exit 0 --- nethack-el-0.9.5.orig/debian/changelog +++ nethack-el-0.9.5/debian/changelog @@ -0,0 +1,52 @@ +nethack-el (1:0.9.5-3) unstable; urgency=low + + * New email address. + * debian/control: + + Add Homepage field (dpkg supports it now). + + Bump Standards-Version to 3.8.0. + + Add emacs22 as first Depends. + * Handle startup file renaming due to transition to debhelper and + document it in NEWS.Debian. Closes: #454707. + + -- Arnaud Fontaine Wed, 17 Sep 2008 04:24:24 +0100 + +nethack-el (1:0.9.5-2) unstable; urgency=low + + * Upload to unstable. + + -- Arnaud Fontaine Mon, 16 Apr 2007 18:50:13 +0200 + +nethack-el (1:0.9.5-1) experimental; urgency=low + + * Adopted package with maintainers permission. + * New upstream release. Closes: #378006. + * New patch debian/patches/00_fix_example_typo.patch fixes a typo in + nethack-example.el. + * Use cdbs for building the package. + + Remove debian/maint because dh_installemacsen generates the files + properly. + + Move debian/scripts/* to debian/emacsen-* in order to use + dh_installemacsen. + * Bump policy version to 3.7.2. + + Convert debian/changelog to utf-8. + * Add emacsen and xemacs21 to Depends in debian/control as + nethack-el works with every flavors of emacs. Closes: #378010. + - Byte-compiled nethack for every flavors of emacs and not only + emacs21 (debian/emacsen-install). + * Add Homepage field to debian/control. + + -- Arnaud Fontaine Sun, 17 Dec 2006 18:32:32 +0100 + +nethack-el (1:0.9.2-1) unstable; urgency=low + + * New upstream release. + - Upstream has version numbers now, so we have to use the epoch ... + * Depend on nethack-lisp >= 3.4.2-2. + + -- Mario Lang Fri, 17 Oct 2003 09:06:42 +0200 + +nethack-el (20030310.341-1) unstable; urgency=low + + * Initial Release (Closes: Bug#186577) + + -- Mario Lang Fri, 28 Mar 2003 12:10:00 +0100 --- nethack-el-0.9.5.orig/debian/NEWS +++ nethack-el-0.9.5/debian/NEWS @@ -0,0 +1,10 @@ +nethack-el (1:0.9.5-3) unstable; urgency=low + + Before nethack-el 1:0.9.5-1, the startup nethack-el file was located + in /etc/emacs/site-start.d/50nethack.el, this package now relies on + dh_installemacsen and unfortunately introduced #454707 (the file is + now /etc/emacs/site-start.d/50nethack-el.el). Upgrading from etch + will rename automatically the file properly. Otherwise, if both + files exist, 50nethack.el will be renamed to 50nethack-el.el.old. + + -- Arnaud Fontaine Fri, 10 Oct 2008 13:51:25 +0100 --- nethack-el-0.9.5.orig/debian/compat +++ nethack-el-0.9.5/debian/compat @@ -0,0 +1 @@ +5 --- nethack-el-0.9.5.orig/debian/emacsen-install +++ nethack-el-0.9.5/debian/emacsen-install @@ -0,0 +1,35 @@ +#! /bin/sh -e +# Written by Mario Lang +# Updated by Arnaud Fontaine + +FLAVOR=$1 +PACKAGE=nethack-el + +if [ ${FLAVOR} = "emacs" ]; then + exit 0; +fi + +echo install/${PACKAGE}: Handling install for emacsen flavor $FLAVOR + +ELDIR=/usr/share/emacs/site-lisp/nethack +ELCDIR=/usr/share/${FLAVOR}/site-lisp/nethack +FLAGS="${SITEFLAGS} -q -batch -l path.el -f batch-byte-compile" + +install -m 755 -d ${ELCDIR} + +# Copy the *.el files in the byte-compiled directory of the flavour +cd ${ELDIR} +FILES=`echo *.el` +cp *.el ${ELCDIR} + +# Byte-compile the *.el files +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF + +${FLAVOR} ${FLAGS} ${FILES} + +# Remove *.el from the byte-compiled directory +rm -f *.el path.el --- nethack-el-0.9.5.orig/debian/rules +++ nethack-el-0.9.5/debian/rules @@ -0,0 +1,5 @@ +#! /usr/bin/make -f +# -*- coding: utf-8 -*- + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk --- nethack-el-0.9.5.orig/debian/watch +++ nethack-el-0.9.5/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://download.savannah.gnu.org/releases/nethack-el/ nethack_el-([\d.]*).tar.gz --- nethack-el-0.9.5.orig/debian/emacsen-remove +++ nethack-el-0.9.5/debian/emacsen-remove @@ -0,0 +1,10 @@ +#! /bin/sh -e +# Written by Mario Lang + +FLAVOR=$1 +ELCDIR=/usr/share/${FLAVOR}/site-lisp/nethack + +if [ ${FLAVOR} != emacs ] && [ -d ${ELCDIR} ]; then + echo remove/nethack-el: purging byte-compiled files for ${FLAVOR} + rm -rf ${ELCDIR} +fi --- nethack-el-0.9.5.orig/debian/control +++ nethack-el-0.9.5/debian/control @@ -0,0 +1,25 @@ +Source: nethack-el +Section: games +Priority: extra +Maintainer: Arnaud Fontaine +Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), patchutils (>= 0.2.25) +Standards-Version: 3.8.0 +Homepage: http://www.nongnu.org/nethack-el/ + +Package: nethack-el +Architecture: all +Depends: emacs22 | emacs21 | xemacs21 | emacsen, nethack-lisp (>= 3.4.2-2) +Description: Emacs major-mode for playing NetHack + Nethack is a wonderfully silly, yet quite addicting, Dungeons and + Dragons-style adventure game. You play the part of a fierce fighter, + wizard, or any of many other classes, fighting your way down to + retrieve the Amulet of Yendor (try saying THAT one backwards!) for + your god. On the way, you might encounter a quantum mechanic or two, + or perhaps a microscopic space fleet, or -- if you're REALLY lucky -- + the Ravenous Bugblatter Beast of Traal. + . + Features of NetHack for Emacs include: + * Customizable Keys + * Event Hooks + * Customizable colors + * And all the power of Emacs --- nethack-el-0.9.5.orig/debian/emacsen-startup +++ nethack-el-0.9.5/debian/emacsen-startup @@ -0,0 +1,11 @@ +;; -*-emacs-lisp-*- +;; Emacs startup file for the Debian nethack-el package + +(setq load-path (cons "/usr/share/emacs/site-lisp/nethack/" load-path)) +(setq load-path (cons (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/nethack") load-path)) + +(autoload 'nethack "nethack" "Play Nethack." t) +(setq nethack-program "/usr/games/nethack-lisp") + --- nethack-el-0.9.5.orig/debian/copyright +++ nethack-el-0.9.5/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Mario Lang and is +now maintained by Arnaud Fontaine . + +It was downloaded from + http://www.nongnu.org/nethack-el + +Upstream Authors: + + Ryan Yeske and + Shawn Betts + +Copyright: + + Copyright (C) 2000-2008 Ryan Yeske and Shawn Betts. + +This program is licensed under the terms of the GNU GPL. + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL'. --- nethack-el-0.9.5.orig/debian/install +++ nethack-el-0.9.5/debian/install @@ -0,0 +1 @@ +nethack-api.el nethack-cmd.el nethack-compat.el nethack.el nethack-keys-dvorak.el nethack-keys.el nethack-tiles.el slashem-tiles.el usr/share/emacs/site-lisp/nethack --- nethack-el-0.9.5.orig/debian/examples +++ nethack-el-0.9.5/debian/examples @@ -0,0 +1 @@ +nethack-example.el --- nethack-el-0.9.5.orig/debian/postrm +++ nethack-el-0.9.5/debian/postrm @@ -0,0 +1,8 @@ +#!/bin/sh -e + +#DEBHELPER# + +# Remove old configuration file (see #454707). +[ "$1" = "purge" ] && rm -f /etc/emacs/site-start.d/50nethack-el.el.old + +exit 0 --- nethack-el-0.9.5.orig/debian/patches/00_fix_example_typo.patch +++ nethack-el-0.9.5/debian/patches/00_fix_example_typo.patch @@ -0,0 +1,11 @@ +--- nethack-example.el.orig 2006-12-17 20:08:30.000000000 +0100 ++++ nethack-example.el 2006-12-17 20:09:37.000000000 +0100 +@@ -62,7 +62,7 @@ + (" holy " . nethack-green-face) + (" cursed " . nethack-red-face) + (" unholy " . nethack-green-face) +- (" cursed .* (being worn)" . nethack-orange-face))) ++ (" cursed .* (being worn)" . nethack-orange-face)) + "An assoc of regexps and font colors") + + (defun nethack-x-highlight-option ()