public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/nbconvert/files/, dev-python/nbconvert/
Date: Fri,  4 Sep 2015 05:46:17 +0000 (UTC)	[thread overview]
Message-ID: <1441286280.c287c4d651277884ca128ff4b68eddbe67625668.jlec@gentoo> (raw)

commit:     c287c4d651277884ca128ff4b68eddbe67625668
Author:     Sean Vig <sean.v.775 <AT> gmail <DOT> com>
AuthorDate: Wed Sep  2 20:25:38 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Sep  3 13:18:00 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=c287c4d6

dev-python/nbconvert: Use upstream patch for new pandoc versions

 dev-python/nbconvert/ChangeLog                     |  4 +++
 .../nbconvert-4.0.0-pandoc-highlighting.patch      | 37 ++++++++++++++++++++++
 dev-python/nbconvert/nbconvert-9999.ebuild         |  1 +
 3 files changed, 42 insertions(+)

diff --git a/dev-python/nbconvert/ChangeLog b/dev-python/nbconvert/ChangeLog
index a3ec671..796004b 100644
--- a/dev-python/nbconvert/ChangeLog
+++ b/dev-python/nbconvert/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Id$
 
+  02 Sep 2015; Sean Vig <sean.v.775@gmail.com>
+  +files/nbconvert-4.0.0-pandoc-highlighting.patch nbconvert-9999.ebuild:
+  dev-python/nbconvert: Use upstream patch for new pandoc versions
+
   02 Sep 2015; Sean Vig <sean.v.775@gmail.com> nbconvert-9999.ebuild:
   dev-python/nbconvert: Add note about pandoc
 

diff --git a/dev-python/nbconvert/files/nbconvert-4.0.0-pandoc-highlighting.patch b/dev-python/nbconvert/files/nbconvert-4.0.0-pandoc-highlighting.patch
new file mode 100644
index 0000000..793856a
--- /dev/null
+++ b/dev-python/nbconvert/files/nbconvert-4.0.0-pandoc-highlighting.patch
@@ -0,0 +1,37 @@
+commit 983473d2e5f71ebef07dab51ae497596af5bc9ac
+Author: James Hetherington <jamespjh@googlemail.com>
+Date:   Mon Aug 31 18:06:46 2015 +0100
+
+    Add highlighting commands from more recent pandoc
+
+diff --git a/nbconvert/templates/latex/base.tplx b/nbconvert/templates/latex/base.tplx
+index 7d45c5d..a1568c5 100644
+--- a/nbconvert/templates/latex/base.tplx
++++ b/nbconvert/templates/latex/base.tplx
+@@ -84,6 +84,26 @@ This template does not define a docclass, the inheriting class must define this.
+     \newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
+     \newcommand{\NormalTok}[1]{{#1}}
+     
++    % Additional commands for more recent versions of Pandoc
++    \newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{{#1}}}
++    \newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
++    \newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
++    \newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{{#1}}}
++    \newcommand{\ImportTok}[1]{{#1}}
++    \newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{{#1}}}}
++    \newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
++    \newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
++    \newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{{#1}}}
++    \newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
++    \newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{{#1}}}
++    \newcommand{\BuiltInTok}[1]{{#1}}
++    \newcommand{\ExtensionTok}[1]{{#1}}
++    \newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{{#1}}}
++    \newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{{#1}}}
++    \newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
++    \newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
++    
++    
+     % Define a nice break command that doesn't care if a line doesn't already
+     % exist.
+     \def\br{\hspace*{\fill} \\* }

diff --git a/dev-python/nbconvert/nbconvert-9999.ebuild b/dev-python/nbconvert/nbconvert-9999.ebuild
index 79299b1..d775d3e 100644
--- a/dev-python/nbconvert/nbconvert-9999.ebuild
+++ b/dev-python/nbconvert/nbconvert-9999.ebuild
@@ -18,6 +18,7 @@ if [ ${PV} == "9999" ] ; then
 else
 	SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 	KEYWORDS="~amd64"
+	PATCHES=( "${FILESDIR}"/${P}-pandoc-highlighting.patch )
 fi
 
 LICENSE="BSD"


             reply	other threads:[~2015-09-04  5:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-04  5:46 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-09-07  6:49 [gentoo-commits] proj/sci:master commit in: dev-python/nbconvert/files/, dev-python/nbconvert/ Justin Lecher
2015-11-28 18:02 Marius Brehler
2016-05-17 11:59 Marius Brehler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441286280.c287c4d651277884ca128ff4b68eddbe67625668.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox