[Python-modules-commits] r1782 - in /packages/pydb/trunk/debian: changelog control emacsen-install emacsen-remove emacsen-startup pydb.dirs pydb.install rules

malex at users.alioth.debian.org malex at users.alioth.debian.org
Wed Jan 31 21:09:38 CET 2007


Author: malex
Date: Wed Jan 31 21:09:38 2007
New Revision: 1782

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=1782
Log:
pydb 1.20-1 release

Added:
    packages/pydb/trunk/debian/emacsen-install
    packages/pydb/trunk/debian/emacsen-remove
    packages/pydb/trunk/debian/emacsen-startup
    packages/pydb/trunk/debian/pydb.install
Modified:
    packages/pydb/trunk/debian/changelog
    packages/pydb/trunk/debian/control
    packages/pydb/trunk/debian/pydb.dirs
    packages/pydb/trunk/debian/rules

Modified: packages/pydb/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/pydb/trunk/debian/changelog?rev=1782&op=diff
==============================================================================
--- packages/pydb/trunk/debian/changelog (original)
+++ packages/pydb/trunk/debian/changelog Wed Jan 31 21:09:38 2007
@@ -1,3 +1,16 @@
+pydb (1.20-1) unstable; urgency=low
+
+  * New bugfix upstream release on Dec 10th.
+  * debian/control: Added emacsen-common to the depends to be able to install
+    emacs mode.
+  * debian/pydb.dirs: Added a line for usr/share/emacs/site-lisp/pydb.
+  * Added debian/pydb.install file.
+  * debian/pydb.install: Added a line to install the pydb.el file.
+  * Added and modified debian/ emacsen-install, emacsen-remove,
+    emacsen-startup files (Closes: #399944).
+
+ -- Oleksandr Moskalenko <malex at debian.org>  Sun, 10 Dec 2006 19:44:03 -0700
+
 pydb (1.19-1) unstable; urgency=low
 
   * New upstream release on Oct 26th.

Modified: packages/pydb/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/pydb/trunk/debian/control?rev=1782&op=diff
==============================================================================
--- packages/pydb/trunk/debian/control (original)
+++ packages/pydb/trunk/debian/control Wed Jan 31 21:09:38 2007
@@ -7,7 +7,7 @@
 
 Package: pydb
 Architecture: all
-Depends: ${python:Depends}
+Depends: ${python:Depends}, emacsen-common
 Suggests: ddd
 Description: An enhanced Python command-line debugger Pydb is a command-line
  debugger for Python. It is based on the standard Python debugger pdb, but has

Added: packages/pydb/trunk/debian/emacsen-install
URL: http://svn.debian.org/wsvn/python-modules/packages/pydb/trunk/debian/emacsen-install?rev=1782&op=file
==============================================================================
--- packages/pydb/trunk/debian/emacsen-install (added)
+++ packages/pydb/trunk/debian/emacsen-install Wed Jan 31 21:09:38 2007
@@ -1,0 +1,57 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/pydb
+
+# Written by Jim Van Zandt <jrv at debian.org>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila at ctv.es> and octave by Dirk Eddelbuettel <edd at debian.org>.
+
+FLAVOR=$1
+PACKAGE=pydb
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+# pydb's gud.el doesn't support emacs20
+if [ ${FLAVOR} = emacs20 ]; then exit 0; fi
+
+FILES="pydb.el"
+
+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 -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/share/info/${PACKAGE}.info.gz
+fi
+
+if [ ${FLAVOR} != emacs ]; then
+
+    [ -d ${ELCDIR} ] || install -m 755 -d ${ELCDIR}
+
+    # Copy the .el file to flavor site-lisp directory
+    (cd ${ELDIR}; cp ${FILES} ${ELCDIR})
+
+    # Bite compile it
+    (cd ${ELCDIR}; ${FLAVOR} ${FLAGS} ${FILES} 2> /dev/null )
+    echo `pwd`
+    (cd ${ELCDIR}; for f in ${FILES}; do if [ ! -f ${f}c ]; then echo "Failed $f"; fi; done )
+
+    # Remove the redundant .el files - presumes that any .el files in the <flavor>
+    # dir are redundant.
+    (cd ${ELCDIR}; rm -f ${FILES} )
+
+fi
+
+exit 0

Added: packages/pydb/trunk/debian/emacsen-remove
URL: http://svn.debian.org/wsvn/python-modules/packages/pydb/trunk/debian/emacsen-remove?rev=1782&op=file
==============================================================================
--- packages/pydb/trunk/debian/emacsen-remove (added)
+++ packages/pydb/trunk/debian/emacsen-remove Wed Jan 31 21:09:38 2007
@@ -1,0 +1,16 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/pydb
+
+FLAVOR=$1
+PACKAGE=pydb
+
+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/share/info/${PACKAGE}.info.gz
+    fi
+
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi

Added: packages/pydb/trunk/debian/emacsen-startup
URL: http://svn.debian.org/wsvn/python-modules/packages/pydb/trunk/debian/emacsen-startup?rev=1782&op=file
==============================================================================
--- packages/pydb/trunk/debian/emacsen-startup (added)
+++ packages/pydb/trunk/debian/emacsen-startup Wed Jan 31 21:09:38 2007
@@ -1,0 +1,20 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file for the Debian pydb package
+;;
+;; Originally contributed by Nils Naumann <naumann at unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd at debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv at vanzandt.mv.com>
+
+;; The bashdb 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:
+(unless (eq flavor 'emacs20)
+  (let ((package-dir (concat "/usr/share/"
+			     (symbol-name flavor)
+			     "/site-lisp/pydb")))
+    (when (file-directory-p package-dir)
+      (setq load-path (cons package-dir load-path))))
+  (autoload 'pydb "pydb" "Run the python debugger." t))

Modified: packages/pydb/trunk/debian/pydb.dirs
URL: http://svn.debian.org/wsvn/python-modules/packages/pydb/trunk/debian/pydb.dirs?rev=1782&op=diff
==============================================================================
--- packages/pydb/trunk/debian/pydb.dirs (original)
+++ packages/pydb/trunk/debian/pydb.dirs Wed Jan 31 21:09:38 2007
@@ -1,2 +1,3 @@
 usr/bin/
 usr/share/man/man1
+usr/share/emacs/site-lisp/pydb

Added: packages/pydb/trunk/debian/pydb.install
URL: http://svn.debian.org/wsvn/python-modules/packages/pydb/trunk/debian/pydb.install?rev=1782&op=file
==============================================================================
--- packages/pydb/trunk/debian/pydb.install (added)
+++ packages/pydb/trunk/debian/pydb.install Wed Jan 31 21:09:38 2007
@@ -1,0 +1,1 @@
+emacs/pydb.el usr/share/emacs/site-lisp/pydb

Modified: packages/pydb/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/pydb/trunk/debian/rules?rev=1782&op=diff
==============================================================================
--- packages/pydb/trunk/debian/rules (original)
+++ packages/pydb/trunk/debian/rules Wed Jan 31 21:09:38 2007
@@ -47,6 +47,7 @@
 	dh_testdir
 	dh_testroot
 	dh_installdocs
+	dh_installemacsen
 	dh_installmenu
 	dh_installman Doc/pydb.1
 	dh_installchangelogs




More information about the Python-modules-commits mailing list