summaryrefslogtreecommitdiff
path: root/dev-tex/minted
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-tex/minted
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-tex/minted')
-rw-r--r--dev-tex/minted/Manifest10
-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, 122 insertions, 0 deletions
diff --git a/dev-tex/minted/Manifest b/dev-tex/minted/Manifest
new file mode 100644
index 000000000000..cf38f78d09ec
--- /dev/null
+++ b/dev-tex/minted/Manifest
@@ -0,0 +1,10 @@
+AUX minted-2.1-remove-extra-curly-brace.patch 2452 SHA256 bd01364fb519b5c4a5c10646cbbc35c7d34e8648661ba0d4ed9bf5e5521a4a1d SHA512 c717dde0a33a2f793dba97ca96d8f836400bee89bc94ab874640b4f4812c72549828b9a1bf4c6a89513bcedc2d83f6eb4b3abdfc7473d0127716aa1ff7fd3050 WHIRLPOOL 1ae4b89c37b6a16f5cf1da8855e1a3d903a7bb8581807ce6e1e0192805b6b0df7155ef17a12645fe6d9337a7a8f42b414b3fe3591f7d6ee027ac29b49e061f8f
+DIST minted-2.0.tar.gz 1039735 SHA256 a54daeb9d5e5d1150bb75f252d5f81ff5b3d13b1d6528261ac80dd9245813fe7 SHA512 1e874a865da24d9d890d68f9a7d7fed710746993534903cd04a518e3d65003f65efca47c4cd563bda70b3eb1356e609f5e662a0d762248c7b722b8c5aebda6de WHIRLPOOL dd01416ea13e7f862de3ee8ee84b28b5f5d1f9020b5c01afb40c382016053bd79beed86b1500328bc29e95161dfed0e179df9e311e3d338f12d8f62b18549e80
+DIST minted-2.1.tar.gz 1104993 SHA256 64693b93a6a66f0c52f896c62d62a3631b49addb1526f6e0ef7f72e7de885158 SHA512 692098ccfe2337b97658f7eb517782f0dddb33ec5031648fe2ce9a53524690257cc1a5ce5697280711aee8007f16678ca4a945d62b45910fb4f5e8ca9fdc5ec7 WHIRLPOOL 06812cbeff6fa75f49da057179f8b5d0006f9fcef451639a46c4d4e58237f34f486b45688d98787ad39f49cb56056f1f2c44a48f08fe756c74a0bc1cbb10a5e8
+DIST minted-2.4.1.tar.gz 858803 SHA256 51da30b2aaa705c132c3e1e7e515ee0762152a493c4b4634a8cadb8e9636dcb7 SHA512 a8edf099eae7eef3d7d4322b1473809b69bee204509adc15e328222b769293ba19e9913b5b5df86d1a2eabbb93c69b585d020569a2850bd059061a1ef220d52f WHIRLPOOL 6e24a617ab94721d19397af1d8b00b9d6e61ff4e33dd79289e6ff8259d09073bf9e41f2a0f16581c7b58dc39b9b333983ea911b490c002d14f7284c298aa714b
+EBUILD minted-2.0.ebuild 630 SHA256 abb97166bcc2156da6f0e5888a40c93afc6d98106780f776ceb8fb9bd2692e8a SHA512 a2821172b97a40f6e7d01f641227c3938217baf6e7dc97445c0afa81a279272365f2c2667e605d6bda007232d403d73aad9ed5a0b7e280dcd2c0ada7f1300547 WHIRLPOOL 215cf1768694e630b91135e205c74eff1aec8524014bbb766f90c3583df94e219f527309ddfa82493121979c94e255507d9d0e2259bae1e52b12a6fc0542cc04
+EBUILD minted-2.1.ebuild 720 SHA256 0fdc3ee59a47a0731734abea8d0ebe0921221339b001e22829fd9691888e3e41 SHA512 4e7dd1ad3f65070910eaf0e73cbfcee903a9138d54bec378bef2360a0e16cde7ca942fe20c4657b7ea79ddee2c55f38bd1fe1a98d7f46ff938d4b8deab1c466e WHIRLPOOL 624f0232107508e8066166a6b14959841b50a25f76ee0914182198a71588b51355f0c100f11d93730463bf3aa56ad77e22e3f26a9dbf364e70e455a802705010
+EBUILD minted-2.4.1.ebuild 648 SHA256 4f86462b98503a590d671c0ad380f32f68a4c43cb292fc82f5545b3c7930806b SHA512 8eba1b3bc5fe22c1a53365b3a4406a723ec752c4099f19af21d2e73218398626de0de6c72e93eceed7b981d4983b708591aeeff2615c5b3157a7c55c7cdd582c WHIRLPOOL e8afe489c629e821a34134839475441c1be16a3b41b8a0ca2415ff4281b526bd6e58fc8def78f83b240cc5fabbbc24c6ec0c916eae2c01ce325bfbae5ca4446e
+MISC ChangeLog 4501 SHA256 e1e74b0524434f3603b3b22c9f87227ed95b33cdda3d27ac074929e4455762e2 SHA512 042996be2359cbd3dfb09bdb4afa9bfee1e4b26bb4d3205ff05f03f2bf7c57117b1deaec0989d83899e010a1a28555a9f2d26967302f53d38cb132a67c9ea305 WHIRLPOOL 96f90b01365750cd7913afd4dba8317b892bade99548c3418bb5f9e55f12cff3dcbd3969c4f4d9a61ab81e517bb1b9d906c3ea5a2d0c7e89f0a70320e9fe8e27
+MISC ChangeLog-2015 494 SHA256 ce84ed3e42d87554c82f9ff0b0dbd7dbeba479ee43e40f2968fd0af79b5c5b38 SHA512 47bbce4cbd487f04323d832dd910ef4bc5471b93bda617cd9167867610f4a1339aa65cbd96280659370b969c7dff68c09f7bddd4f1f6cd5494da79e0c4a7e9cf WHIRLPOOL c66a38eb9b1dfb5267bcf032b94a9cb2b003c06e620cf0fbc8b61bda37d41bd9d1f80f78fde35353b928b535ff4566da46411509cb686fbe2503442d7d350c20
+MISC metadata.xml 301 SHA256 42167a8b7b4e62ee9005004f9dbbef87787958193459efce73bea68845181604 SHA512 6499d03b19ab4838ad73b1ee62c4e77c0ad7665ce41da7541e6a4ca723ec5bef69c41a93756fff959aad5d747a3bc6bd66f0bff410d463a6e524f38d0b3f3799 WHIRLPOOL d7166e939c5951286c83629dc07d65038130a4bc072631535e8644f45c3396f8fa5c7453d4e6574993c35d4a28dc103aed2535597d0b44d71b57055a294fead6
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
+}