--- pymacs-0.23.orig/debian/compat +++ pymacs-0.23/debian/compat @@ -0,0 +1 @@ +6 --- pymacs-0.23.orig/debian/emacs_startup +++ pymacs-0.23/debian/emacs_startup @@ -0,0 +1,22 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian GNU/Linux %PACKAGE% package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The %PACKAGE% 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: +(setq load-path (cons (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/%PACKAGE%") load-path)) + +;; Pymacs + +(autoload 'pymacs-load "pymacs" nil t) +(autoload 'pymacs-eval "pymacs" nil t) +(autoload 'pymacs-apply "pymacs") --- pymacs-0.23.orig/debian/rules +++ pymacs-0.23/debian/rules @@ -0,0 +1,60 @@ +#!/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 + +build: DH_OPTIONS= +build: build-stamp +build-stamp: + dh_testdir + python setup.py -q build + rst2html pymacs.rst pymacs.html + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + rm -rf build + rm -rf debian/pymacs/ + find . -name "*.pyc" | xargs rm -f + rm -f Pymacs/__init__.py pymacs.el pymacs.rst pymacs.html + rm -f contrib/Giorgi/setup.py contrib/Giorgi/Pymacs/__init__.py + rm -f contrib/rebox/setup.py contrib/rebox/Pymacs/__init__.py + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + python setup.py -q install --no-compile --prefix=debian/pymacs/usr + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_install -i + for f in `find debian/pymacs -name "*.py"` ; do if head -1 $$f | grep -q '^\#\!' ; then echo $$f ; tail -n +2 $$f > dummy ; mv dummy $$f ; fi ; done + dh_installemacsen -i +# gzip -9 -c ChangeLog > changelog.gz + dh_installdocs -i + dh_installchangelogs -i ChangeLog + dh_python2 -i + dh_link -i + dh_compress -i -X.py + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: + +binary: binary-indep +.PHONY: build clean binary-indep binary binary-arch + --- pymacs-0.23.orig/debian/pymacs.emacsen-install +++ pymacs-0.23/debian/pymacs.emacsen-install @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/#PACKAGE# + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=pymacs + +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 --- pymacs-0.23.orig/debian/pymacs.install +++ pymacs-0.23/debian/pymacs.install @@ -0,0 +1,4 @@ +pymacs.el usr/share/emacs/site-lisp/pymacs +contrib usr/share/doc/pymacs +pymacs.html usr/share/doc/pymacs/html + --- pymacs-0.23.orig/debian/control +++ pymacs-0.23/debian/control @@ -0,0 +1,22 @@ +Source: pymacs +Section: python +Priority: optional +Homepage: http://pymacs.progiciels-bpi.ca/ +Maintainer: Alexandre Fayolle +Build-Depends: debhelper (>= 5.0.37.1), python (>=2.6.6-3~), python-dev (>=2.6.6-3~), python-docutils +Standards-Version: 3.7.3 + +Package: pymacs +Architecture: all +Depends: ${python:Depends}, emacsen-common +Description: interface between Emacs Lisp and Python + Pymacs is a powerful tool which, once started from Emacs, allows + both-way communication between Emacs Lisp and Python. Pymacs aims + Python as an extension language for Emacs rather than the other way + around, and this asymmetry is reflected in some design + choices. Within Emacs Lisp code, one may load and use Python + modules. Python functions may themselves use Emacs services, and + handle Emacs Lisp objects kept in Emacs Lisp space. + + + --- pymacs-0.23.orig/debian/pymacs.docs +++ pymacs-0.23/debian/pymacs.docs @@ -0,0 +1,3 @@ +THANKS +TODO +README --- pymacs-0.23.orig/debian/pymacs.postinst +++ pymacs-0.23/debian/pymacs.postinst @@ -0,0 +1,5 @@ +#! /bin/sh -e + +#DEBHELPER# + +exit 0 --- pymacs-0.23.orig/debian/changelog +++ pymacs-0.23/debian/changelog @@ -0,0 +1,100 @@ +pymacs (0.23-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Convert to dh_python2. (Closes: #616970) + + -- Andrea Colangelo Fri, 28 Jun 2008 17:48:12 +0200 + +pymacs (0.23-1.1) unstable; urgency=low + + * NMU. Rebuild to move files to /usr/share/pyshared. Closes: #490489. + + -- Matthias Klose Fri, 18 Jul 2008 15:47:17 +0000 + +pymacs (0.23-1) unstable; urgency=low + + * New upstream release + - fixes the debian/watch issue (closes: #449704) + - updates the documentation (closes: #306459) + - fix an issue with callback functions (closes: 374709) + * Updated to new policy (no changes required) + * dropped versioned packages (pythonX.X-pymacs) stanzas in + debian/control (they are only in old-stable) (closes: #399936) + * moved Homepage to source package header + + -- Alexandre Fayolle Mon, 18 Feb 2008 12:46:15 +0100 + +pymacs (0.22-6) unstable; urgency=low + + * Updated to new Python policy + + -- Alexandre Fayolle Thu, 15 Jun 2006 15:21:07 +0200 + +pymacs (0.22-5) unstable; urgency=low + + * updated standards to 3.7.2 + * use debhelper 5.0 + * add missing dependency on emacsen-common + * fixed a few lintian warnings and errors + * fixed package short description + + -- Alexandre Fayolle Tue, 30 May 2006 14:54:29 +0200 + +pymacs (0.22-4) unstable; urgency=low + + * Removed python2.X-pymacs packages in favor of a single package + installing in /usr/lib/site-python, and thus available through any + version of the python interpreter (closes: #351132, #334253) + * Changed executable shebangs in diff.gz rather than in debian/rules + * Added encoding declaration in Pymacs/__init__.py and Pymacs/pymacs.py + * updated FSF address in debian/copyright + + -- Alexandre Fayolle Tue, 7 Feb 2006 18:14:47 +0100 + +pymacs (0.22-3) unstable; urgency=low + + * added debian/watch file + + -- Alexandre Fayolle Wed, 6 Oct 2004 19:45:10 +0200 + +pymacs (0.22-2) unstable; urgency=low + + * fixed typo in package description (closes: #265417) + * updated maintainer email address + + -- Alexandre Fayolle Sun, 15 Aug 2004 08:52:06 +0200 + +pymacs (0.22-1) unstable; urgency=low + + * new upstream release + * new maintainer + * reverted to manually installing pymacs.el + * added documentation to pymacs package + * first actual upload to Debian (closes: #254960) + + -- Alexandre Fayolle Thu, 29 Jul 2004 14:39:29 +0200 + +pymacs (0.21-4) unstable; urgency=low + + * remove old emacsen files + * minor style changes in postinst and prerm + + -- Sylvain Thénault Mon, 6 Oct 2003 10:28:32 +0200 + +pymacs (0.21-3) unstable; urgency=low + + * install pymacs.el using the provided setup script + + -- Sylvain Thénault Tue, 18 Sep 2003 14:16:07 +0200 + +pymacs (0.21.0-2) unstable; urgency=low + + * Update packaging information + + -- Sylvain Thénault Tue, 10 Jun 2003 15:39:04 +0200 + +pymacs (0.21.0-1) unstable; urgency=low + + * Debian packaging + + -- Sylvain Thénault Tue, 25 Feb 2003 15:32:16 +0100 --- pymacs-0.23.orig/debian/pymacs.dirs +++ pymacs-0.23/debian/pymacs.dirs @@ -0,0 +1 @@ +usr/share/emacs/site-lisp/pymacs --- pymacs-0.23.orig/debian/pymacs.emacsen-remove +++ pymacs-0.23/debian/pymacs.emacsen-remove @@ -0,0 +1,14 @@ +#!/bin/sh -e + +FLAVOR=$1 +PACKAGE=pymacs + +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/${PACKAGE}.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- pymacs-0.23.orig/debian/pymacs.prerm +++ pymacs-0.23/debian/pymacs.prerm @@ -0,0 +1,9 @@ +#! /bin/sh -e +# +# sample prerm script for Debian python packages. +# Written 1998 by Gregor Hoffleit . +# + +#DEBHELPER# + +exit 0 --- pymacs-0.23.orig/debian/copyright +++ pymacs-0.23/debian/copyright @@ -0,0 +1,35 @@ +-*- coding: utf-8 -*- +This package was debianized by Sylvain Thénault + Sat, 13 Apr 2002 19:05:23 +0200. + +It was taken over by Alexandre Fayolle +on Tue, 20 Jul 2004 10:06:51 +0200 + +It was downloaded from http://pymacs.progiciels-bpi.ca/archives/ + +Upstream Author: + + François Pinard + +Copyright: + +Copyright © 2001-2003 Progiciels Bourbeau-Pinard inc. +-François Pinard , 2001. + + +This program 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 of the License, or (at your option) any later +version. + +This program 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 +this program; if not, write to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public License +may be found in '/usr/share/common-licenses/GPL'. + --- pymacs-0.23.orig/debian/pymacs.emacsen-startup +++ pymacs-0.23/debian/pymacs.emacsen-startup @@ -0,0 +1,22 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian GNU/Linux pymacs package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The pymacs 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: +(setq load-path (cons (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/pymacs") load-path)) + +;; Pymacs + +(autoload 'pymacs-load "pymacs" nil t) +(autoload 'pymacs-eval "pymacs" nil t) +(autoload 'pymacs-apply "pymacs") --- pymacs-0.23.orig/debian/watch +++ pymacs-0.23/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://pymacs.progiciels-bpi.ca/archives/Pymacs-(.*)\.tar\.gz debian uupdate