[Python-apps-commits] r1980 - in packages/pylint/trunk (22 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Wed Nov 19 18:43:27 UTC 2008


    Date: Wednesday, November 19, 2008 @ 18:43:27
  Author: morph
Revision: 1980

[svn-inject] Applying Debian modifications to trunk

Added:
  packages/pylint/trunk/debian/
  packages/pylint/trunk/debian/NEWS.Debian
  packages/pylint/trunk/debian/changelog
  packages/pylint/trunk/debian/compat
  packages/pylint/trunk/debian/control
  packages/pylint/trunk/debian/copyright
  packages/pylint/trunk/debian/patches/
  packages/pylint/trunk/debian/patches/00list
  packages/pylint/trunk/debian/patches/10_bts427244_enable_user-visible_variables.dpatch
  packages/pylint/trunk/debian/pycompat
  packages/pylint/trunk/debian/pylint.dirs
  packages/pylint/trunk/debian/pylint.docs
  packages/pylint/trunk/debian/pylint.emacsen-install
  packages/pylint/trunk/debian/pylint.emacsen-remove
  packages/pylint/trunk/debian/pylint.emacsen-startup
  packages/pylint/trunk/debian/pylint.examples
  packages/pylint/trunk/debian/pylint.manpages
  packages/pylint/trunk/debian/pylint.postinst
  packages/pylint/trunk/debian/pylint.postrm
  packages/pylint/trunk/debian/pylint.prerm
  packages/pylint/trunk/debian/rules
  packages/pylint/trunk/debian/watch


Property changes on: packages/pylint/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages/pylint/trunk/debian/NEWS.Debian
===================================================================
--- packages/pylint/trunk/debian/NEWS.Debian	                        (rev 0)
+++ packages/pylint/trunk/debian/NEWS.Debian	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,10 @@
+pylint (0.13.2-2) unstable; urgency=low
+
+  * pylint.el is no longer installed for emacs, because it is not
+    compatible with emacs22 and has a large number of related bugs. It
+    will be reenabled in a future version, when all the bugs have been
+    dealt with by upstream (patches are welcome by the way).  Emacs21
+    users may get it from /usr/share/doc/pylint/examples/pylint.el
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Wed, 04 Jul 2007 12:18:23 +0200
+

Added: packages/pylint/trunk/debian/changelog
===================================================================
--- packages/pylint/trunk/debian/changelog	                        (rev 0)
+++ packages/pylint/trunk/debian/changelog	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,328 @@
+pylint (0.14.0-3) UNRELEASED; urgency=low
+
+  * debian/control
+    - added dpatch to build-dep
+  * debian/rules
+    - added dpatch stuff
+  * debian/patches/10_bts427244_enable_user-visible_variables.dpatch
+    - added to avoid direct upstream source code modification
+
+ -- Sandro Tosi <morph at debian.org>  Wed, 19 Nov 2008 18:52:12 +0100
+
+pylint (0.14.0-2.2) unstable; urgency=low
+
+  * NMU. Rebuild to move files to /usr/share/pyshared. Closes: #490488.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 18 Jul 2008 15:53:30 +0000
+
+pylint (0.14.0-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * BF: flavor -> debian-emacs-flavor in startup
+  * NF: added pylint-options variable visible to users to tune up (closes:
+    #427244)
+  * BF: reenabled installation of pylint.el (closes: #448102)
+  * Recent upstream of pylint.el fixed few bugs which weren't closed
+    in the upload to Debian. Since this is first upload which enables
+    pylint.el, imho it is ok to close them here (closes: #415485, #431653)
+
+ -- Yaroslav Halchenko <debian at onerussian.com>  Mon, 03 Mar 2008 22:22:07 -0500
+
+pylint (0.14.0-2) unstable; urgency=low
+
+  * Acknowledge NMU by Kumar Appaiah <akumar at ee.iitm.ac.in>  (Closes: #454401)
+  * Debian upload of the new upstream release
+  * Install modules for all available python versions (Closes: #438438)
+  * new standards version, no changes required
+  
+ -- Alexandre Fayolle <afayolle at debian.org>  Wed, 13 Feb 2008 17:36:30 +0100
+
+pylint (0.14.0-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <Sylvain.Thenault at logilab.fr>  Mon, 14 Jan 2008 13:34:24 +0100
+
+pylint (0.13.2-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/pylint.postrm:
+    + Added to remove old Emacs mode upon purge.
+      (Closes: #454401)
+
+ -- Kumar Appaiah <akumar at ee.iitm.ac.in>  Thu, 31 Jan 2008 22:27:18 +0530
+
+pylint (0.13.2-2) unstable; urgency=low
+
+  * Upload package to debian (closes: #426418)
+  * tests are no longer installed in /usr/share/doc/pylint, use the source
+    package to get them
+  * pylint.el is no longer installed for emacs, because it is not
+    compatible with emacs22. It will be reenabled in a future version,
+    when all the bugs have been dealt with by upstream.  Emacs21 users may
+    get it from /usr/share/doc/pylint/examples/pylint.el. Added a note
+    about this in NEWS.Debian.
+  * Only Recommend python-tk and give a nicer warning in the pylint-gui
+    script if tkinter is not available.
+  * Updated versions of dependencies on logilab-common and astng
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Wed, 04 Jul 2007 12:21:24 +0200
+
+pylint (0.13.2-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Thu, 07 Jun 2007 16:44:53 +0200
+   
+pylint (0.13.1-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Fri,  2 Mar 2007 08:24:08 +0100
+
+pylint (0.13.0-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Thu, 22 Feb 2007 11:28:23 +0100
+
+pylint (0.12.2-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Thu, 23 Nov 2006 16:08:28 +0100
+
+pylint (0.12.1-1) unstable; urgency=low
+
+  * new uptream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Mon, 25 Sep 2006 16:46:40 +0200
+
+pylint (0.12.0-2) unstable; urgency=low
+
+  * Upload to Debian
+  * Fixed the XS-Python-Version value (closes: #388158)
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Tue, 19 Sep 2006 09:51:03 +0200
+
+pylint (0.12.0-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Adrien.DiMascio <Adrien.DiMascio at logilab.fr>  Thu, 10 Aug 2006 11:18:50 +0200
+
+pylint (0.11.0-2) unstable; urgency=low
+
+  * Updated standards to 3.7.2
+  * use debhelper 5
+  * new python policy
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Thu, 15 Jun 2006 10:38:32 +0200
+
+pylint (0.11.0-1) unstable; urgency=low
+
+  * new upstream release, depending on python-astng 0.16
+  * Applied Sebastian Rittau's patch to avoid NameError on InferenceError
+    exception (closes: #358194)
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Wed, 19 Apr 2006 18:10:47 +0200
+
+pylint (0.10.0-1) unstable; urgency=low
+
+  * new upstream release, depending on python-astng 0.15
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Mon,  6 Mar 2006 09:43:19 +0100
+
+pylint (0.9.0-3) unstable; urgency=low
+
+  * Added missing provides/replaces/conflicts on pylint-test (closes: #352316)
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Mon, 13 Feb 2006 10:07:26 +0100
+
+pylint (0.9.0-2) unstable; urgency=low
+
+  * Build a single package which installs modules in /usr/lib/site-python
+    (closes: #351130)
+  * Remove duplication from man page (closes: #349689)
+  * Fixed typo in control file
+  * upload new release to Debian
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Fri, 10 Feb 2006 16:03:37 +0100
+
+pylint (0.9.0-1) unstable; urgency=low
+
+  * fix false positive with staticmethod used on a metaclass (closes: #341121)
+  * reorganization to install into site-python, removing the need for 
+    pythonX.X- packages and for the pylint-common and pylint-test packages
+	
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Tue, 10 Jan 2006 14:19:57 +0100
+
+pylint (0.8.1-1) unstable; urgency=low
+
+  * added missing dependancy to logilab-astng
+  * added missing .docs and .examples files
+  * update control'standards-version to 3.6.2
+  * fixed FSF address in the copyright file
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Mon,  7 Nov 2005 15:40:52 +0100
+
+pylint (0.8.0-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Fri, 21 Oct 2005 18:44:24 +0200
+
+pylint (0.7.0-1) unstable; urgency=low
+
+  * new upstream release (closes: #310957)
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Fri, 27 May 2005 11:17:44 +0200
+
+pylint (0.6.4-1) unstable; urgency=low
+
+  * new upstream release
+  * added man page for pylint 
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Thu, 14 Apr 2005 12:02:15 +0200
+
+pylint (0.6.3-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Thu, 24 Feb 2005 17:44:35 +0100
+
+pylint (0.6.2-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Wed, 16 Feb 2005 12:00:47 +0100
+
+pylint (0.6.1-1) unstable; urgency=low
+
+  * new upstream release
+  * added option to specify rc file location (closes: #265159)
+  
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Fri,  4 Feb 2005 16:48:09 +0100
+
+pylint (0.6.0-1) unstable; urgency=low
+
+  * new upstream release
+  * build package for python 2.4
+  * remove unused directory from logilab-common.dirs
+  * updated copyright
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Thu, 20 Jan 2005 18:06:29 +0100
+
+pylint (0.5.0-2) unstable; urgency=low
+
+  * Patched pylint.el using latest upsrteam CVS (closes: #280870)
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Mon, 15 Nov 2004 10:59:51 +0100
+
+pylint (0.5.0-1) unstable; urgency=low
+  
+  * use Build-depends instead of Build-depends-indep in control
+  * new upstream release
+  * updated debian/watch file to version 2
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Tue,  9 Nov 2004 16:22:47 +0100
+
+pylint (0.4.2-2) unstable; urgency=low
+
+  * fixed typos in debian/control (closes: #265156)
+  * updated description of pylint-test
+  * changed dependency on pylint-common to a recommendation (closes: #265157)
+  * updated maintainer address 
+
+ -- Alexandre Fayolle <afayolle at debian.org>  Sun, 15 Aug 2004 10:39:06 +0200
+
+pylint (0.4.2-1) unstable; urgency=low
+
+  * new upstream release
+  * initial upload to Debian (closes: #258235)
+
+ -- Alexandre Fayolle <alexandre.fayolle at logilab.fr>  Thu,  8 Jul 2004 12:54:18 +0200
+
+pylint (0.4.0-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Mon, 10 May 2004 17:03:04 +0200
+
+pylint (0.3.3-1) unstable; urgency=low
+
+  * new upstream release
+  * emacs lisp for pylint in a new pylint-common package
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Mon, 16 Feb 2004 18:09:23 +0100
+
+pylint (0.3.2-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Tue, 23 Dec 2003 14:56:04 +0100
+
+pylint (0.3.1-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Fri,  5 Dec 2003 16:20:44 +0100
+
+pylint (0.3.0-1) unstable; urgency=low
+
+  * new upstream release
+  * depends on logilab.common >= 0.4
+  * build depends on debhelper >= 4.0
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Wed, 19 Nov 2003 11:07:45 +0100
+
+pylint (0.2.1-2) unstable; urgency=low
+
+  * fixed dependency on logilab-common (>=0.3.4) since earlier versions
+    caused bugs with some python2.3 code
+  * included sample pylintrc files with the documentation
+  * added documentation that had disappeared in the previous 0.2.1-1
+  * only puts html documentation in doc/html/, all others in doc/
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Fri, 10 Oct 2003 12:11:53 +0200
+
+pylint (0.2.1-1) unstable; urgency=low
+
+  * new upstream release
+  * package renamed to pylint instead of logilab-pylint
+  * move tests in a separated package
+  
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Fri, 10 Oct 2003 09:39:22 +0200
+
+logilab-pylint (0.2.0-1) unstable; urgency=low
+
+  * new upstream release
+  * dropped python2.1 support
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Fri, 12 Sep 2003 18:26:15 +0200
+
+logilab-pylint (0.1.2-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Wed, 11 Jun 2003 15:21:44 +0200
+
+logilab-pylint (0.1.1-2) unstable; urgency=low
+
+  * fix dependencie to logilab.common
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Wed,  4 Jun 2003 18:07:45 +0200
+
+logilab-pylint (0.1.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Mon, 19 May 2003 15:10:25 +0200
+
+logilab-pylint (0.1.0-1) unstable; urgency=low
+
+  * Initial Release. 
+
+ -- Sylvain Thénault <sylvain.thenault at logilab.fr>  Wed, 23 Apr 2003 14:42:05 +0200
+

Added: packages/pylint/trunk/debian/compat
===================================================================
--- packages/pylint/trunk/debian/compat	                        (rev 0)
+++ packages/pylint/trunk/debian/compat	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1 @@
+5

Added: packages/pylint/trunk/debian/control
===================================================================
--- packages/pylint/trunk/debian/control	                        (rev 0)
+++ packages/pylint/trunk/debian/control	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,36 @@
+Source: pylint
+Section: python
+Priority: optional
+Maintainer: Sylvain Thénault <sylvain.thenault at logilab.fr>
+Uploaders: Alexandre Fayolle <afayolle at debian.org> 
+Build-Depends: debhelper (>= 5.0.38), dpatch
+Build-Depends-Indep: python (>=2.3.5-7), python-central (>=0.5.6)
+Standards-Version: 3.7.3
+XS-Python-Version: all
+
+Package: pylint
+Architecture: all
+Depends: python, python-logilab-common (>= 0.22.2), python-logilab-astng (>= 0.17.1)
+Recommends: python-tk
+XB-Python-Version: ${python:Versions}
+Conflicts: python2.2-pylint, python2.3-pylint, python2.4-pylint, pylint-common, pylint-test
+Replaces: python2.2-pylint, python2.3-pylint, python2.4-pylint, pylint-common, pylint-test
+Description: python code static checker
+ Pylint is a Python source code analyzer which looks for programming
+ errors, helps enforcing a coding standard and sniffs for some code
+ smells (as defined in Martin Fowler's Refactoring book)
+ .
+ Pylint can be seen as another PyChecker since nearly all tests you
+ can do with PyChecker can also be done with Pylint. However, Pylint
+ offers some more features, like checking length of lines of code,
+ checking if variable names are well-formed according to your coding
+ standard, or checking if declared interfaces are truly implemented,
+ and much more.
+ .
+ Additionally, it is possible to write plugins to add your own checks.
+ . 
+ The recommended python-tk package is only for using the pylint-gui
+ script.
+ .
+ Homepage: http://www.logilab.org/Project/name/pylint
+

Added: packages/pylint/trunk/debian/copyright
===================================================================
--- packages/pylint/trunk/debian/copyright	                        (rev 0)
+++ packages/pylint/trunk/debian/copyright	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,29 @@
+This package was debianized by Sylvain Thenault <sylvain.thenault at logilab.fr>  Sat, 13 Apr 2002 19:05:23 +0200.
+
+It was downloaded from ftp://ftp.logilab.org/pub/pylint
+
+Upstream Author: 
+
+  Sylvain Thenault <sylvain.thenault at logilab.fr>
+
+Copyright:
+
+Copyright (c) 2003-2006 Sylvain Thenault (thenault at gmail.com).
+Copyright (c) 2003-2006 LOGILAB S.A. (Paris, FRANCE).
+http://www.logilab.fr/ -- mailto:contact at logilab.fr
+
+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'.

Added: packages/pylint/trunk/debian/patches/00list
===================================================================
--- packages/pylint/trunk/debian/patches/00list	                        (rev 0)
+++ packages/pylint/trunk/debian/patches/00list	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1 @@
+10_bts427244_enable_user-visible_variables

Added: packages/pylint/trunk/debian/patches/10_bts427244_enable_user-visible_variables.dpatch
===================================================================
--- packages/pylint/trunk/debian/patches/10_bts427244_enable_user-visible_variables.dpatch	                        (rev 0)
+++ packages/pylint/trunk/debian/patches/10_bts427244_enable_user-visible_variables.dpatch	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,59 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_restore_pristine_code.dpatch by Yarosav O. Halchenko
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: enable user-visible variables
+
+ at DPATCH@
+
+--- pylint-0.14.0.orig/elisp/pylint.el
++++ pylint-0.14.0/elisp/pylint.el
+@@ -1,14 +1,36 @@
++;;
++;; Modifications done by Yarosav O. Halchenko (2008):
++;;  - enable user-visible variables
++;; distributed under the same copyright/license terms as
++;; pylint itself
++;;
+ (require 'compile)
+ 
++
++;; user definable variables
++;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
++
++(defgroup pylint nil
++  "Emacs support for the Pylint Python checker"
++  :group 'languages
++  :prefix "pylint-")
++
++(defcustom pylint-options "--output-format=parseable"
++  "*Command line options to be used with pylint call"
++  :type 'string
++  :group 'pylint)
++
++
++
+ ;; adapted from pychecker for pylint
+ (defun pylint-python-hook ()
+   (defun pylint ()
+     "Run pylint against the file behind the current buffer after
+     checking if unsaved buffers should be saved."
+-    
++
+     (interactive)
+     (let* ((file (buffer-file-name (current-buffer)))
+-	   (command (concat "pylint --output-format=parseable \"" file "\"")))
++	   (command (concat "pylint " pylint-options " \"" file "\"")))
+       (save-some-buffers (not compilation-ask-about-save) nil) ; save  files.
+       (compile-internal command "No more errors or warnings" "pylint")))
+ ;;  (local-set-key [f1] 'pylint)
+--- pylint-0.14.0.orig/elisp/startup
++++ pylint-0.14.0/elisp/startup
+@@ -12,6 +12,6 @@
+ ;; 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)
++                              (symbol-name debian-emacs-flavor)
+                               "/site-lisp/%PACKAGE%") load-path))
+ (load-library "pylint")


Property changes on: packages/pylint/trunk/debian/patches/10_bts427244_enable_user-visible_variables.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pylint/trunk/debian/pycompat
===================================================================
--- packages/pylint/trunk/debian/pycompat	                        (rev 0)
+++ packages/pylint/trunk/debian/pycompat	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1 @@
+2

Added: packages/pylint/trunk/debian/pylint.dirs
===================================================================
--- packages/pylint/trunk/debian/pylint.dirs	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.dirs	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,2 @@
+usr/share/doc/pylint/test
+usr/share/emacs/site-lisp/pylint

Added: packages/pylint/trunk/debian/pylint.docs
===================================================================
--- packages/pylint/trunk/debian/pylint.docs	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.docs	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,6 @@
+doc/features.html
+doc/quickstart.html
+doc/FAQ.html
+doc/FAQ.txt
+doc/quickstart.txt
+doc/features.txt

Added: packages/pylint/trunk/debian/pylint.emacsen-install
===================================================================
--- packages/pylint/trunk/debian/pylint.emacsen-install	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.emacsen-install	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/#PACKAGE#
+
+# Written by Jim Van Zandt <jrv at vanzandt.mv.com>, 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=pylint
+
+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

Added: packages/pylint/trunk/debian/pylint.emacsen-remove
===================================================================
--- packages/pylint/trunk/debian/pylint.emacsen-remove	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.emacsen-remove	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+FLAVOR=$1
+PACKAGE=pylint
+
+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

Added: packages/pylint/trunk/debian/pylint.emacsen-startup
===================================================================
--- packages/pylint/trunk/debian/pylint.emacsen-startup	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.emacsen-startup	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,17 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file for the Debian GNU/Linux pylint 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 pylint 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/pylint") load-path))
+(load-library "pylint")

Added: packages/pylint/trunk/debian/pylint.examples
===================================================================
--- packages/pylint/trunk/debian/pylint.examples	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.examples	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,2 @@
+examples/*
+elisp/pylint.el

Added: packages/pylint/trunk/debian/pylint.manpages
===================================================================
--- packages/pylint/trunk/debian/pylint.manpages	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.manpages	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1 @@
+man/pylint.1

Added: packages/pylint/trunk/debian/pylint.postinst
===================================================================
--- packages/pylint/trunk/debian/pylint.postinst	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.postinst	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,6 @@
+#! /bin/sh -e
+#
+
+#DEBHELPER#
+
+exit 0

Added: packages/pylint/trunk/debian/pylint.postrm
===================================================================
--- packages/pylint/trunk/debian/pylint.postrm	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.postrm	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,8 @@
+#! /bin/sh -e
+
+if [ "$1" = "purge" ]; then
+    # remove old emacs file
+    rm -f /etc/emacs/site-start.d/50pylint.el
+fi
+
+#DEBHELPER#

Added: packages/pylint/trunk/debian/pylint.prerm
===================================================================
--- packages/pylint/trunk/debian/pylint.prerm	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint.prerm	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,6 @@
+#! /bin/sh -e
+#
+
+#DEBHELPER#
+
+exit 0

Added: packages/pylint/trunk/debian/rules
===================================================================
--- packages/pylint/trunk/debian/rules	                        (rev 0)
+++ packages/pylint/trunk/debian/rules	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,81 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+#
+# adapted by Logilab for automatic generation by debianize
+# (part of the devtools project, http://www.logilab.org/projects/devtools)
+#
+# Copyright (c) 2003-2005 LOGILAB S.A. (Paris, FRANCE).
+# http://www.logilab.fr/ -- mailto:contact at logilab.fr
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+build: build-stamp
+build-stamp: patch-stamp
+	dh_testdir
+	python setup.py -q build
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	rm -rf build
+	find . -name "*.pyc" | xargs rm -f
+	rm -f changelog.gz
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	python setup.py -q install --no-compile --prefix=debian/pylint/usr/
+
+	rm -rf debian/pylint/usr/lib/python*/site-packages/pylint/test
+	if head -1 debian/pylint/usr/bin/pylint | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
+		sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/pylint; \
+	fi
+	chmod a+x debian/pylint/usr/bin/pylint
+	if head -1 debian/pylint/usr/bin/pylint-gui | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
+		sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/pylint-gui; \
+	fi
+	chmod a+x debian/pylint/usr/bin/pylint-gui
+	if head -1 debian/pylint/usr/bin/symilar | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
+		sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/symilar; \
+	fi
+	chmod a+x debian/pylint/usr/bin/symilar
+	install -m 644 elisp/pylint.el debian/pylint/usr/share/emacs/site-lisp/pylint/
+
+	# install tests
+	#(cd test && find . -type f -not \( -path '*/CVS/*' -or -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/pylint/usr/share/doc/pylint/test/{} \;)
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir 
+	dh_testroot 
+	dh_install -i
+	dh_pycentral -i
+	gzip -9 -c ChangeLog > changelog.gz
+	dh_installchangelogs -i
+	dh_installexamples -i
+	dh_installdocs -i README TODO changelog.gz debian/NEWS.Debian
+	dh_installman -i
+	dh_installemacsen
+	dh_link -i
+	dh_compress -i -X.py -X.ini -X.xml -Xtest
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i 
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch:
+
+binary: binary-indep
+.PHONY: build clean binary binary-indep binary-arch
+


Property changes on: packages/pylint/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pylint/trunk/debian/watch
===================================================================
--- packages/pylint/trunk/debian/watch	                        (rev 0)
+++ packages/pylint/trunk/debian/watch	2008-11-19 18:43:27 UTC (rev 1980)
@@ -0,0 +1,3 @@
+version=2
+ftp://ftp.logilab.org/pub/pylint/pylint-(.*)\.tar\.gz debian uupdate
+




More information about the Python-apps-commits mailing list