diff options
author | Rob Cakebread <pythonhead@gentoo.org> | 2007-05-30 17:17:38 +0000 |
---|---|---|
committer | Rob Cakebread <pythonhead@gentoo.org> | 2007-05-30 17:17:38 +0000 |
commit | ea8d9835aa52a14b2d74106ae95a39c1e1389136 (patch) | |
tree | aba67210e0ade69c77acb6a5d8cd9df8615d2023 /dev-python/pygments/files | |
parent | alpha stable wrt #169097 (diff) | |
download | historical-ea8d9835aa52a14b2d74106ae95a39c1e1389136.tar.gz historical-ea8d9835aa52a14b2d74106ae95a39c1e1389136.tar.bz2 historical-ea8d9835aa52a14b2d74106ae95a39c1e1389136.zip |
Version bump, removed old version.
Package-Manager: portage-2.1.2.8
Diffstat (limited to 'dev-python/pygments/files')
-rw-r--r-- | dev-python/pygments/files/digest-pygments-0.7.1 | 3 | ||||
-rw-r--r-- | dev-python/pygments/files/digest-pygments-0.8 | 3 | ||||
-rw-r--r-- | dev-python/pygments/files/pygments-0.7.1-html_formatter.patch | 86 | ||||
-rw-r--r-- | dev-python/pygments/files/pygments-0.8-_mapping.py-ebuild.patch (renamed from dev-python/pygments/files/pygments-0.7.1-_mapping.py-ebuild.patch) | 0 | ||||
-rw-r--r-- | dev-python/pygments/files/pygments-0.8-other.py-ebuild.patch (renamed from dev-python/pygments/files/pygments-0.7.1-other.py-ebuild.patch) | 0 |
5 files changed, 3 insertions, 89 deletions
diff --git a/dev-python/pygments/files/digest-pygments-0.7.1 b/dev-python/pygments/files/digest-pygments-0.7.1 deleted file mode 100644 index 43b4d28f17fb..000000000000 --- a/dev-python/pygments/files/digest-pygments-0.7.1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 8b5b50fb53ce39f94dbcf7040c0a441a Pygments-0.7.1.tar.gz 664696 -RMD160 5bf587c4496ff5330d16e1c73265d653b6ddf9b5 Pygments-0.7.1.tar.gz 664696 -SHA256 932866bde0019c370c36232d877c223a5f1d275c3161806552cb123d6f5d3638 Pygments-0.7.1.tar.gz 664696 diff --git a/dev-python/pygments/files/digest-pygments-0.8 b/dev-python/pygments/files/digest-pygments-0.8 new file mode 100644 index 000000000000..b7cce0704235 --- /dev/null +++ b/dev-python/pygments/files/digest-pygments-0.8 @@ -0,0 +1,3 @@ +MD5 037b8f65d36b8f283d135dac17ec1bf8 Pygments-0.8.tar.gz 708369 +RMD160 3373f31e4eb84bd2bc49ca4258123f3055aa9fcf Pygments-0.8.tar.gz 708369 +SHA256 a7765be5d7130dfe3965f145274e1cf7264e68ef5316273c155bf0d8637dc770 Pygments-0.8.tar.gz 708369 diff --git a/dev-python/pygments/files/pygments-0.7.1-html_formatter.patch b/dev-python/pygments/files/pygments-0.7.1-html_formatter.patch deleted file mode 100644 index 8ddb6e8610c6..000000000000 --- a/dev-python/pygments/files/pygments-0.7.1-html_formatter.patch +++ /dev/null @@ -1,86 +0,0 @@ -Index: /pygments/trunk/tests/test_html_formatter.py
-===================================================================
---- tests/test_html_formatter.py (revision 2849)
-+++ tests/test_html_formatter.py (revision 2850)
-@@ -94,2 +94,16 @@
-
- os.unlink(pathname)
-+
-+ def test_get_style_defs(self):
-+ fmt = HtmlFormatter()
-+ sd = fmt.get_style_defs()
-+ self.assert_(sd.startswith('.'))
-+
-+ fmt = HtmlFormatter(cssclass='foo')
-+ sd = fmt.get_style_defs()
-+ self.assert_(sd.startswith('.foo'))
-+ sd = fmt.get_style_defs('.bar')
-+ self.assert_(sd.startswith('.bar'))
-+ sd = fmt.get_style_defs(['.bar', '.baz'])
-+ fl = sd.splitlines()[0]
-+ self.assert_('.bar' in fl and '.baz' in fl)
-Index: /pygments/trunk/pygments/formatters/html.py
-===================================================================
---- pygments/formatters/html.py (revision 2839)
-+++ pygments/formatters/html.py (revision 2850)
-@@ -182,4 +182,6 @@
- `cssclass`
- CSS class for the wrapping ``<div>`` tag (default: ``'highlight'``).
-+ If you set this option, the default selector for `get_style_defs()`
-+ will be this class.
-
- `cssstyles`
-@@ -314,10 +316,12 @@
- c2s[name] = (style[:-2], ttype, len(ttype))
-
-- def get_style_defs(self, arg=''):
-- """
-- Return CSS style definitions for the classes produced by the
-- current highlighting style. ``arg`` can be a string of selectors
-- to insert before the token type classes.
-- """
-+ def get_style_defs(self, arg=None):
-+ """
-+ Return CSS style definitions for the classes produced by the current
-+ highlighting style. ``arg`` can be a string or list of selectors to
-+ insert before the token type classes.
-+ """
-+ if arg is None:
-+ arg = ('cssclass' in self.options and '.'+self.cssclass or '')
- if isinstance(arg, basestring):
- args = [arg]
-@@ -326,7 +330,9 @@
-
- def prefix(cls):
-+ if cls:
-+ cls = '.' + cls
- tmp = []
- for arg in args:
-- tmp.append((arg and arg + ' ' or '') + '.' + cls)
-+ tmp.append((arg and arg + ' ' or '') + cls)
- return ', '.join(tmp)
-
-@@ -343,5 +349,5 @@
- text_style = ' ' + self.class2style[self.ttype2class[Text]][0]
- lines.insert(0, '%s { background: %s;%s }' %
-- (arg, self.style.background_color, text_style))
-+ (prefix(''), self.style.background_color, text_style))
- return '\n'.join(lines)
-
-Index: /pygments/trunk/CHANGES
-===================================================================
---- CHANGES (revision 2844)
-+++ CHANGES (revision 2850)
-@@ -1,4 +1,12 @@
- Pygments changelog
- ==================
-+
-+Version 0.8
-+-----------
-+(codename to be selected, released Apr XX, 2007)
-+
-+- The `get_style_defs` method of HTML formatters now uses the `cssclass`
-+ option as the default selector if it was given.
-+
-
- Version 0.7.1
diff --git a/dev-python/pygments/files/pygments-0.7.1-_mapping.py-ebuild.patch b/dev-python/pygments/files/pygments-0.8-_mapping.py-ebuild.patch index 0b4a7d5e0fc6..0b4a7d5e0fc6 100644 --- a/dev-python/pygments/files/pygments-0.7.1-_mapping.py-ebuild.patch +++ b/dev-python/pygments/files/pygments-0.8-_mapping.py-ebuild.patch diff --git a/dev-python/pygments/files/pygments-0.7.1-other.py-ebuild.patch b/dev-python/pygments/files/pygments-0.8-other.py-ebuild.patch index e988a11577c6..e988a11577c6 100644 --- a/dev-python/pygments/files/pygments-0.7.1-other.py-ebuild.patch +++ b/dev-python/pygments/files/pygments-0.8-other.py-ebuild.patch |