summaryrefslogtreecommitdiff
path: root/dev-tex/minted
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-tex/minted
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-tex/minted')
-rw-r--r--dev-tex/minted/Manifest8
-rw-r--r--dev-tex/minted/files/minted-2.1-remove-extra-curly-brace.patch15
-rw-r--r--dev-tex/minted/metadata.xml10
-rw-r--r--dev-tex/minted/minted-2.0.ebuild28
-rw-r--r--dev-tex/minted/minted-2.1.ebuild32
-rw-r--r--dev-tex/minted/minted-2.4.1.ebuild27
6 files changed, 120 insertions, 0 deletions
diff --git a/dev-tex/minted/Manifest b/dev-tex/minted/Manifest
new file mode 100644
index 000000000000..3f99f32a084c
--- /dev/null
+++ b/dev-tex/minted/Manifest
@@ -0,0 +1,8 @@
+AUX minted-2.1-remove-extra-curly-brace.patch 2452 BLAKE2B 5ac0570847318d8d6555d7b5edb85c16ac6671c661038059256cdda6d25d16113d1c129d7688b15def306e288e5b338ff91faf2bf1af6fd3adf38de6183e13c1 SHA512 c717dde0a33a2f793dba97ca96d8f836400bee89bc94ab874640b4f4812c72549828b9a1bf4c6a89513bcedc2d83f6eb4b3abdfc7473d0127716aa1ff7fd3050
+DIST minted-2.0.tar.gz 1039735 BLAKE2B d9d11762b9a1dc198f01ddf1e8b1f6f9bd955d80de8f224b298b541d4016749b9c6348ebe4626e292ad3b3ed00e25daa63d120f0356a20e044cd1f0db6110d82 SHA512 1e874a865da24d9d890d68f9a7d7fed710746993534903cd04a518e3d65003f65efca47c4cd563bda70b3eb1356e609f5e662a0d762248c7b722b8c5aebda6de
+DIST minted-2.1.tar.gz 1104993 BLAKE2B 697ec2a8e324c88f4da13b55cb8650e06ca0cbf87ebf7bcb393c8763968bac1f15ae52b1b18febf1d19043a0829af850378d4a1f4c81a67af736f9563e313f9c SHA512 692098ccfe2337b97658f7eb517782f0dddb33ec5031648fe2ce9a53524690257cc1a5ce5697280711aee8007f16678ca4a945d62b45910fb4f5e8ca9fdc5ec7
+DIST minted-2.4.1.tar.gz 858803 BLAKE2B f1945376a18148b40645fcc695721e2c15a6f05ef522c644ed1ace9f3e251c35c98b458162d1a8c8bf0cd26ccd0ef4678e6e7fbf63296d9e1ae7c39079c219fe SHA512 a8edf099eae7eef3d7d4322b1473809b69bee204509adc15e328222b769293ba19e9913b5b5df86d1a2eabbb93c69b585d020569a2850bd059061a1ef220d52f
+EBUILD minted-2.0.ebuild 630 BLAKE2B 92e72e9302abb8d1fcdd845e55f71416bd65b447f5b2b2a315fec79604f529b34ad1158980bcb8629c4bf5a760653b87e75269cc428a92f1791237911f81fd4d SHA512 a2821172b97a40f6e7d01f641227c3938217baf6e7dc97445c0afa81a279272365f2c2667e605d6bda007232d403d73aad9ed5a0b7e280dcd2c0ada7f1300547
+EBUILD minted-2.1.ebuild 720 BLAKE2B bc8ff098e41ede2d9ac33d2962a8f932be195c85124264eb18ab0bbaccd9b1e11231112ea87d1cce408278509a530f02070106fb9c9fe209d1fd97e0a0bb342c SHA512 4e7dd1ad3f65070910eaf0e73cbfcee903a9138d54bec378bef2360a0e16cde7ca942fe20c4657b7ea79ddee2c55f38bd1fe1a98d7f46ff938d4b8deab1c466e
+EBUILD minted-2.4.1.ebuild 648 BLAKE2B 723e38ddd7ad0af284957d791db39effe58df0dc3bdef0cf6b2a51f7f10ed3dd5c342831b39105f28417643a497df0d1e84e74843685a2010906637b06a7453c SHA512 8eba1b3bc5fe22c1a53365b3a4406a723ec752c4099f19af21d2e73218398626de0de6c72e93eceed7b981d4983b708591aeeff2615c5b3157a7c55c7cdd582c
+MISC metadata.xml 301 BLAKE2B a4ff6315480aad0a2e6fd43fb9bef26cdd04ecfedb49ccafa558df2aeb624f85912844fc5771e7d31196c69e03d94843d7a7a1a14e8ae65d3d99baa463629882 SHA512 6499d03b19ab4838ad73b1ee62c4e77c0ad7665ce41da7541e6a4ca723ec5bef69c41a93756fff959aad5d747a3bc6bd66f0bff410d463a6e524f38d0b3f3799
diff --git a/dev-tex/minted/files/minted-2.1-remove-extra-curly-brace.patch b/dev-tex/minted/files/minted-2.1-remove-extra-curly-brace.patch
new file mode 100644
index 000000000000..d27c309916c5
--- /dev/null
+++ b/dev-tex/minted/files/minted-2.1-remove-extra-curly-brace.patch
@@ -0,0 +1,15 @@
+# compilation of minted.dtx fails as there is an extra curly brace at line
+# 1390. While passing -interaction=batchmode (what latex-package.eclass does)
+# it compiles without warning but a return value of -1 and therefore is assumed
+# as failed by latex-package.eclass.
+--- minted.dtx 2015-09-09 22:40:04.000000000 +0200
++++ minted.dtx 2016-03-06 14:20:46.544180149 +0100
+@@ -1387,7 +1387,7 @@
+ %
+ %
+ % \begin{macro}{\minted@jobname}
+-% At various points, temporary files and directories will need to be named after the main |.tex| file. The typical way to do this is to use |\jobname|. However, if the file name contains spaces, then |\jobname| will contain the name wrapped in quotes (older versions of MiKTeX replace spaces with asterisks instead, and \texttt{XeTeX} apparently \href{http://tex.stackexchange.com/a/93829/10742}{allows double quotes within file names}, in which case names are wrapped in single quotes}). While that is perfectly fine for working with \LaTeX\ internally, it causes problems with |\write18|, since quotes will end up in unwanted locations in shell commands. It would be possible to strip the wrapping quotation marks when they are present, and maintain any spaces in the file name. But it is simplest to create a ``sanitized'' version of |\jobname| in which spaces and asterisks are replaced by underscores, and double quotes are stripped.
++% At various points, temporary files and directories will need to be named after the main |.tex| file. The typical way to do this is to use |\jobname|. However, if the file name contains spaces, then |\jobname| will contain the name wrapped in quotes (older versions of MiKTeX replace spaces with asterisks instead, and \texttt{XeTeX} apparently \href{http://tex.stackexchange.com/a/93829/10742}{allows double quotes within file names}, in which case names are wrapped in single quotes). While that is perfectly fine for working with \LaTeX\ internally, it causes problems with |\write18|, since quotes will end up in unwanted locations in shell commands. It would be possible to strip the wrapping quotation marks when they are present, and maintain any spaces in the file name. But it is simplest to create a ``sanitized'' version of |\jobname| in which spaces and asterisks are replaced by underscores, and double quotes are stripped.
+ % \begin{macrocode}
+ \StrSubstitute{\jobname}{ }{_}[\minted@jobname]
+ \StrSubstitute{\minted@jobname}{*}{_}[\minted@jobname]
diff --git a/dev-tex/minted/metadata.xml b/dev-tex/minted/metadata.xml
new file mode 100644
index 000000000000..1835430265fd
--- /dev/null
+++ b/dev-tex/minted/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">gpoore/minted</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/minted/minted-2.0.ebuild b/dev-tex/minted/minted-2.0.ebuild
new file mode 100644
index 000000000000..8cea88340692
--- /dev/null
+++ b/dev-tex/minted/minted-2.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="LaTeX package for source code syntax highlighting"
+HOMEPAGE="https://github.com/gpoore/minted"
+SRC_URI="https://github.com/gpoore/minted/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ dev-texlive/texlive-latexextra
+ dev-python/pygments"
+
+S="${WORKDIR}"/${P}/source
+
+src_install() {
+ LATEX_DOC_ARGUMENTS='-shell-escape'
+ latex-package_src_install
+ dodoc "${S}"/../*md
+}
diff --git a/dev-tex/minted/minted-2.1.ebuild b/dev-tex/minted/minted-2.1.ebuild
new file mode 100644
index 000000000000..aede91e60a2b
--- /dev/null
+++ b/dev-tex/minted/minted-2.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit latex-package eutils
+
+DESCRIPTION="LaTeX package for source code syntax highlighting"
+HOMEPAGE="https://github.com/gpoore/minted"
+SRC_URI="https://github.com/gpoore/minted/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ dev-texlive/texlive-latexextra
+ dev-python/pygments"
+
+S="${WORKDIR}"/${P}/source
+
+src_prepare() {
+ epatch "${FILESDIR}/minted-2.1-remove-extra-curly-brace.patch"
+}
+
+src_install() {
+ LATEX_DOC_ARGUMENTS='-shell-escape'
+ latex-package_src_install
+ dodoc "${S}"/../*md
+}
diff --git a/dev-tex/minted/minted-2.4.1.ebuild b/dev-tex/minted/minted-2.4.1.ebuild
new file mode 100644
index 000000000000..0264c50c4ae3
--- /dev/null
+++ b/dev-tex/minted/minted-2.4.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit latex-package eutils
+
+DESCRIPTION="LaTeX package for source code syntax highlighting"
+HOMEPAGE="https://github.com/gpoore/minted"
+SRC_URI="https://github.com/gpoore/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="|| ( BSD LPPL-1.3 LPPL-1.3b LPPL-1.3c )"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND="
+ dev-texlive/texlive-latexextra
+ dev-python/pygments"
+
+S="${WORKDIR}"/${P}/source
+
+src_install() {
+ LATEX_DOC_ARGUMENTS='-shell-escape'
+ latex-package_src_install
+ dodoc "${S}"/../*md
+}