blob: 1af05192423ebf9b21891c24958d856cbd8649e2 (
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
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
# Do *not* inherit latex-package: It DEPENDS unconditionally on texinfo.
# Moreover, it would attempt to compile the *.tex example with texinfo to dvi.
inherit eutils vcs-snapshot
RESTRICT="mirror"
DESCRIPTION="LaTeX2e character sheet layout for the Midgard Role Playing Game (Edition M5)"
HOMEPAGE="https://github.com/vaeth/m5figur-mv/"
SRC_URI="https://github.com/vaeth/${PN}/tarball/${PV} -> ${P}.tar.gz"
LICENSE="LPPL-1.2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+examples"
# We need texlive-latexextra for toolbox.sty
RDEPEND="virtual/latex-base
dev-texlive/texlive-latexextra"
DEPEND="examples? ( ${RDEPEND} )"
src_compile() {
if use examples
then einfo "Compiling example character sheet as pdf"
export VARTEXFONTS="${T}/fonts"
pdflatex *.tex && test -s *.pdf || die "could not create example"
fi
}
src_install() {
TEXMF="/usr/share/texmf-site"
insinto "${TEXMF}/tex/latex/${PN}"
doins *.cls
insinto "${TEXMF}/doc/latex/${PN}"
doins *.tex
if use examples
then doins *.pdf
fi
dodoc README
}
pkg_postinst() {
texconfig rehash
}
pkg_postrm() {
texconfig rehash
}
|