components/python/cssutils/patches/cssutils-01-py27.patch
changeset 1100 c8ee1218dc57
equal deleted inserted replaced
1099:f594f9b952d0 1100:c8ee1218dc57
       
     1 pkgdepend doesn't like the first line of a Python script to be:
       
     2 '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.7'
       
     3 
       
     4 Note that there is a COMPONENT_POST_BUILD_ACTION in the component
       
     5 Makefile to then turn them into #!/usr/bin/python2.6 for when we
       
     6 do the Python 2.6 build.
       
     7 
       
     8 Yes we do need the Control-M's in here. Initially the Python source
       
     9 files have them, and there is a COMPONENT_PRE_BUILD_ACTION in the
       
    10 component Makefile to strip them out, otherwise pkgdepend gets confused.
       
    11 
       
    12 --- cssutils-0.9.6/src/cssutils/tokenize2.py.orig	2009-12-04 19:57:40.769947686 +0800
       
    13 +++ cssutils-0.9.6/src/cssutils/tokenize2.py	2009-12-04 19:58:06.792081272 +0800
       
    14 @@ -1,4 +1,4 @@
       
    15 -#!/usr/bin/env python
       
    16 +#!/usr/bin/python2.7
       
    17  # -*- coding: utf-8 -*-
       
    18  """New CSS Tokenizer (a generator)
       
    19  """
       
    20 --- cssutils-0.9.6/src/cssutils/serialize.py.orig	2009-12-07 10:17:54.826455529 +0800
       
    21 +++ cssutils-0.9.6/src/cssutils/serialize.py	2009-12-07 10:19:33.138080643 +0800
       
    22 @@ -1,4 +1,4 @@
       
    23 -#!/usr/bin/env python
       
    24 +#!/usr/bin/python2.7
       
    25  # -*- coding: utf-8 -*-
       
    26  """cssutils serializer"""
       
    27  __all__ = ['CSSSerializer', 'Preferences']
       
    28 @@ -948,4 +948,4 @@
       
    29                  out.append(val, None, space=False)
       
    30                  
       
    31              return out.value() 
       
    32 -            
       
    33 \ No newline at end of file
       
    34 +            
       
    35 --- cssutils-0.9.6/src/cssutils/__init__.py.orig	2009-12-07 10:21:25.702234442 +0800
       
    36 +++ cssutils-0.9.6/src/cssutils/__init__.py	2009-12-07 10:21:44.667894629 +0800
       
    37 @@ -1,4 +1,4 @@
       
    38 -#!/usr/bin/env python
       
    39 +#!/usr/bin/python2.7
       
    40  """cssutils - CSS Cascading Style Sheets library for Python
       
    41  
       
    42      Copyright (C) 2004-2009 Christof Hoeke
       
    43 --- cssutils-0.9.6/src/cssutils/scripts/csscombine.py.orig	2009-12-07 10:22:27.582839434 +0800
       
    44 +++ cssutils-0.9.6/src/cssutils/scripts/csscombine.py	2009-12-07 10:22:39.860764499 +0800
       
    45 @@ -1,4 +1,4 @@
       
    46 -#!/usr/bin/env python
       
    47 +#!/usr/bin/python2.7
       
    48  """Combine sheets referred to by @import rules in a given CSS proxy sheet
       
    49  into a single new sheet.
       
    50  
       
    51 @@ -96,4 +96,4 @@
       
    52  
       
    53  
       
    54  if __name__ == '__main__':
       
    55 -    sys.exit(main())
       
    56 \ No newline at end of file
       
    57 +    sys.exit(main())
       
    58 --- cssutils-0.9.6/src/cssutils/scripts/cssparse.py.orig	2009-12-07 10:23:30.623787121 +0800
       
    59 +++ cssutils-0.9.6/src/cssutils/scripts/cssparse.py	2009-12-07 10:23:40.469638156 +0800
       
    60 @@ -1,4 +1,4 @@
       
    61 -#!/usr/bin/env python
       
    62 +#!/usr/bin/python2.7
       
    63  """utility script to parse given filenames or string
       
    64  """
       
    65  __docformat__ = 'restructuredtext'
       
    66 --- cssutils-0.9.6/src/cssutils/scripts/csscapture.py.orig	2009-12-07 10:24:13.568541655 +0800
       
    67 +++ cssutils-0.9.6/src/cssutils/scripts/csscapture.py	2009-12-07 10:24:27.094792825 +0800
       
    68 @@ -1,4 +1,4 @@
       
    69 -#!/usr/bin/env python
       
    70 +#!/usr/bin/python2.7
       
    71  """Retrieve all CSS stylesheets including embedded for a given URL.
       
    72  Retrieve as StyleSheetList or save to disk - raw, parsed or minified version.
       
    73  
       
    74 --- cssutils-0.9.6/src/cssutils/errorhandler.py.orig	2009-12-07 10:25:31.225803334 +0800
       
    75 +++ cssutils-0.9.6/src/cssutils/errorhandler.py	2009-12-07 10:25:41.199601897 +0800
       
    76 @@ -1,4 +1,4 @@
       
    77 -#!/usr/bin/env python
       
    78 +#!/usr/bin/python2.7
       
    79  """cssutils ErrorHandler
       
    80  
       
    81  ErrorHandler
       
    82 --- cssutils-0.9.6/src/cssutils/parse.py.orig	2009-12-07 10:26:23.218622184 +0800
       
    83 +++ cssutils-0.9.6/src/cssutils/parse.py	2009-12-07 10:26:32.968490941 +0800
       
    84 @@ -1,4 +1,4 @@
       
    85 -#!/usr/bin/env python
       
    86 +#!/usr/bin/python2.7
       
    87  """A validating CSSParser"""
       
    88  __all__ = ['CSSParser']
       
    89  __docformat__ = 'restructuredtext'
       
    90 --- cssutils-0.9.6/src/encutils/__init__.py.orig	2009-12-07 10:27:04.131362666 +0800
       
    91 +++ cssutils-0.9.6/src/encutils/__init__.py	2009-12-07 10:27:17.697342850 +0800
       
    92 @@ -1,5 +1,5 @@
       
    93  # -*- coding: utf-8 -*-
       
    94 -#!/usr/bin/env python
       
    95 +#!/usr/bin/python2.7
       
    96  """encutils - encoding detection collection for Python
       
    97  
       
    98  :Version: 0.9
       
    99 @@ -682,4 +682,4 @@
       
   100  
       
   101  if __name__ == '__main__':
       
   102      import pydoc
       
   103 -    pydoc.help(__name__)
       
   104 \ No newline at end of file
       
   105 +    pydoc.help(__name__)
       
   106 --- cssutils-0.9.6/src/cssutils/codec.py.orig	2012-08-07 06:45:29.982973309 -0700
       
   107 +++ cssutils-0.9.6/src/cssutils/codec.py	2012-08-07 06:45:41.155738434 -0700
       
   108 @@ -1,4 +1,4 @@
       
   109 -#!/usr/bin/env python
       
   110 +#!/usr/bin/python2.7
       
   111  """Python codec for CSS."""
       
   112  __docformat__ = 'restructuredtext'
       
   113  __author__ = 'Walter Doerwald'