[Python-modules-commits] r12173 - in packages/mako/trunk/debian (7 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Fri Mar 5 23:23:10 UTC 2010


    Date: Friday, March 5, 2010 @ 23:23:10
  Author: piotr
Revision: 12173

* New upstream release
* Install Vim syntax file in /usr/share/vim/addons/syntax/
  Use `vim-addons install mako` to enable it
* Standards-Version bumped to 3.8.4 (no changes needed)

Added:
  packages/mako/trunk/debian/install
  packages/mako/trunk/debian/mako.vim
  packages/mako/trunk/debian/mako.yaml
Modified:
  packages/mako/trunk/debian/changelog
  packages/mako/trunk/debian/control
  packages/mako/trunk/debian/copyright
  packages/mako/trunk/debian/rules

Modified: packages/mako/trunk/debian/changelog
===================================================================
--- packages/mako/trunk/debian/changelog	2010-03-05 23:11:05 UTC (rev 12172)
+++ packages/mako/trunk/debian/changelog	2010-03-05 23:23:10 UTC (rev 12173)
@@ -1,6 +1,10 @@
-mako (0.2.5-3) UNRELEASED; urgency=low
+mako (0.3.0-1) UNRELEASED; urgency=low
 
+  * New upstream release
   * Move python-beaker from Recommends to Suggests (closes: #569986)
+  * Install Vim syntax file in /usr/share/vim/addons/syntax/
+    Use `vim-addons install mako` to enable it
+  * Standards-Version bumped to 3.8.4 (no changes needed)
 
  -- Piotr Ożarowski <piotr at debian.org>  Mon, 15 Feb 2010 19:53:42 +0100
 

Modified: packages/mako/trunk/debian/control
===================================================================
--- packages/mako/trunk/debian/control	2010-03-05 23:11:05 UTC (rev 12172)
+++ packages/mako/trunk/debian/control	2010-03-05 23:23:10 UTC (rev 12173)
@@ -5,7 +5,7 @@
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Build-Depends: debhelper (>= 5.0.38)
 Build-Depends-Indep: python (>= 2.3.5-11), python-all, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1~)
-Standards-Version: 3.8.3
+Standards-Version: 3.8.4
 Homepage: http://www.makotemplates.org/
 XS-Python-Version: >= 2.4
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/mako/trunk
@@ -13,7 +13,7 @@
 
 Package: python-mako
 Architecture: all
-Depends: ${python:Depends}
+Depends: ${python:Depends}, ${misc:Depends}
 Suggests: python-beaker (>= 1.1)
 Enhances: python-pylons, python-turbogears, python-pygments
 XB-Python-Version: ${python:Versions}

Modified: packages/mako/trunk/debian/copyright
===================================================================
--- packages/mako/trunk/debian/copyright	2010-03-05 23:11:05 UTC (rev 12172)
+++ packages/mako/trunk/debian/copyright	2010-03-05 23:23:10 UTC (rev 12173)
@@ -5,13 +5,13 @@
 
 Upstream Author: Mike Bayer <mike at zzzcomputing.com>
 
-Copyright (C) 2006-2009 Michael Bayer <mike at zzzcomputing.com>
+Copyright © 2006-2010 Michael Bayer <mike at zzzcomputing.com>
 
 Copyright:
 
  This is the MIT license: http://www.opensource.org/licenses/mit-license.php
 
- Copyright (C) 2006, 2007, 2008, 2009 Michael Bayer and contributors.
+ Copyright (C) 2006, 2007, 2008, 2009, 2010 Michael Bayer and contributors.
  Mako is a trademark of Michael Bayer.
 
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -83,5 +83,14 @@
 
 ----------------------------------------------------------------
 
-The Debian packaging is © 2007-2009, Piotr Ożarowski <piotr at debian.org> and
+debian/mako.vim file:
+
+ License: three clause BSD
+ Maintainer: Armin Ronacher <armin.ronacher at active-4.com>
+
+ Source: http://www.vim.org/scripts/script.php?script_id=1858
+
+----------------------------------------------------------------
+
+The Debian packaging is © 2007-2010, Piotr Ożarowski <piotr at debian.org> and
 is licensed under the MIT License as well.

Added: packages/mako/trunk/debian/install
===================================================================
--- packages/mako/trunk/debian/install	                        (rev 0)
+++ packages/mako/trunk/debian/install	2010-03-05 23:23:10 UTC (rev 12173)
@@ -0,0 +1,2 @@
+debian/mako.vim		/usr/share/vim/addons/syntax/
+debian/mako.yaml	/usr/share/vim/registry

Added: packages/mako/trunk/debian/mako.vim
===================================================================
--- packages/mako/trunk/debian/mako.vim	                        (rev 0)
+++ packages/mako/trunk/debian/mako.vim	2010-03-05 23:23:10 UTC (rev 12173)
@@ -0,0 +1,86 @@
+" Vim syntax file
+" Language:     Mako
+" Maintainer:   Armin Ronacher <armin.ronacher at active-4.com>
+" URL:          http://lucumr.pocoo.org/
+" Last Change:  2008 September 12
+" Version:	0.6.1
+"
+" Thanks to Brine Rue <brian at lolapps.com> who noticed a bug in the
+" delimiter handling.
+"
+" Known Limitations
+"   the <%text> block does not have correct attributes
+
+" For version 5.x: Clear all syntax items
+" For version 6.x: Quit when a syntax file was already loaded
+if version < 600
+  syntax clear
+elseif exists("b:current_syntax")
+  finish
+endif
+
+if !exists("main_syntax")
+  let main_syntax = "html"
+endif
+
+"Source the html syntax file
+ru! syntax/html.vim
+unlet b:current_syntax
+
+"Put the python syntax file in @pythonTop
+syn include @pythonTop syntax/python.vim
+
+" End keywords
+syn keyword makoEnd contained endfor endwhile endif endtry enddef
+
+" Block rules
+syn region makoLine matchgroup=makoDelim start=#^\s*%# end=#$# keepend contains=@pythonTop,makoEnd
+syn region makoBlock matchgroup=makoDelim start=#<%!\?# end=#%># keepend contains=@pythonTop,makoEnd
+
+" Variables
+syn region makoNested start="{" end="}" transparent display contained contains=makoNested, at pythonTop
+syn region makoVariable matchgroup=makoDelim start=#\${# end=#}# contains=makoNested, at pythonTop
+
+" Comments
+syn region makoComment start="^\s*##" end="$"
+syn region makoDocComment matchgroup=makoDelim start="<%doc>" end="</%doc>" keepend
+
+" Literal Blocks
+syn region makoText matchgroup=makoDelim start="<%text[^>]*>" end="</%text>"
+
+" Attribute Sublexing
+syn match makoAttributeKey containedin=makoTag contained "[a-zA-Z_][a-zA-Z0-9_]*="
+syn region makoAttributeValue containedin=makoTag contained start=/"/ skip=/\\"/ end=/"/
+syn region makoAttributeValue containedin=MakoTag contained start=/'/ skip=/\\'/ end=/'/
+
+" Tags
+syn region makoTag matchgroup=makoDelim start="<%\(def\|call\|page\|include\|namespace\|inherit\)\>" end="/\?>"
+syn match makoDelim "</%\(def\|call\|namespace\)>"
+
+" Newline Escapes
+syn match makoEscape /\\$/
+
+" Default highlighting links
+if version >= 508 || !exists("did_mako_syn_inits")
+  if version < 508
+    let did_mako_syn_inits = 1
+    com -nargs=+ HiLink hi link <args>
+  else
+    com -nargs=+ HiLink hi def link <args>
+  endif
+
+  HiLink makoDocComment makoComment
+  HiLink makoDefEnd makoDelim
+
+  HiLink makoAttributeKey Type
+  HiLink makoAttributeValue String
+  HiLink makoText Normal
+  HiLink makoDelim Preproc
+  HiLink makoEnd Keyword
+  HiLink makoComment Comment
+  HiLink makoEscape Special
+
+  delc HiLink
+endif
+
+let b:current_syntax = "eruby"

Added: packages/mako/trunk/debian/mako.yaml
===================================================================
--- packages/mako/trunk/debian/mako.yaml	                        (rev 0)
+++ packages/mako/trunk/debian/mako.yaml	2010-03-05 23:23:10 UTC (rev 12173)
@@ -0,0 +1,4 @@
+addon: mako
+description: "allow syntax highlighting for Mako templates"
+files: 
+  - syntax/mako.vim

Modified: packages/mako/trunk/debian/rules
===================================================================
--- packages/mako/trunk/debian/rules	2010-03-05 23:11:05 UTC (rev 12172)
+++ packages/mako/trunk/debian/rules	2010-03-05 23:23:10 UTC (rev 12173)
@@ -18,6 +18,8 @@
 build:
 
 install: $(PYVERS:%=install-python%)
+	dh_install
+
 install-python%:
 	python$* setup.py install --prefix=/usr \
 		--single-version-externally-managed \




More information about the Python-modules-commits mailing list