blob: 450a5f0746538c8b0041f87f4aa66d066cd8f8be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit latex-package
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"
S="${WORKDIR}"/${P}/source
SLOT="0"
LICENSE="|| ( BSD LPPL-1.3 )"
KEYWORDS="amd64 ~arm64 ~ppc ~riscv ~x86"
IUSE="doc"
RDEPEND="
dev-python/pygments
dev-texlive/texlive-latexextra
"
BDEPEND="doc? ( dev-texlive/texlive-fontsextra )"
DOCS=( ../CHANGES.md ../README.md )
src_prepare() {
default
rm "${S}"/${PN}.pdf || die
}
src_install() {
LATEX_DOC_ARGUMENTS="-shell-escape"
latex-package_src_install
use doc && latex-package_src_doinstall pdf
}
|