diff options
author | Martin Väth <martin@mvath.de> | 2020-06-12 20:38:26 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2020-06-12 20:38:26 +0200 |
commit | ca3c2f0f6e3ad897a69bdf41ed73a5edfa20b9f1 (patch) | |
tree | 3990b1b9671b842c594e0f5873a549d621c13eaa /games-rpg/m5figur-mv/m5figur-mv-4.1.9.ebuild | |
parent | sys-block/zram-init: Version bump (diff) | |
download | mv-ca3c2f0f6e3ad897a69bdf41ed73a5edfa20b9f1.tar.gz mv-ca3c2f0f6e3ad897a69bdf41ed73a5edfa20b9f1.tar.bz2 mv-ca3c2f0f6e3ad897a69bdf41ed73a5edfa20b9f1.zip |
sys-block/zram-init games-rpg/m5figur-mv: Version bump
Signed-off-by: Martin Väth <martin@mvath.de>
Diffstat (limited to 'games-rpg/m5figur-mv/m5figur-mv-4.1.9.ebuild')
-rw-r--r-- | games-rpg/m5figur-mv/m5figur-mv-4.1.9.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/games-rpg/m5figur-mv/m5figur-mv-4.1.9.ebuild b/games-rpg/m5figur-mv/m5figur-mv-4.1.9.ebuild new file mode 100644 index 00000000..af7a599e --- /dev/null +++ b/games-rpg/m5figur-mv/m5figur-mv-4.1.9.ebuild @@ -0,0 +1,56 @@ +# Copyright 2014-2020 Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +# Do *not* inherit latex-package: It DEPENDS unconditionally on texinfo. +# Moreover, it would attempt to compile the *.tex example with texinfo to dvi. +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}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LPPL-1.2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="+examples" +# We need texlive-latexextra for toolbox.sty +DEPEND="virtual/latex-base" +RDEPEND="${DEPEND} + dev-texlive/texlive-latexextra" +BDEPEND="examples? ( ${DEPEND} )" + +src_compile() { + local i j + if use examples + then einfo "Compiling example character sheet as pdf" + export VARTEXFONTS="${T}/fonts" + for i in *.tex beispiele/*.tex; do + j=${i##*/} + pdflatex "${i}" && test -s "${j%.tex}.pdf" \ + || die "could not compile ${i}" + [ "${j}" = "${i}" ] || mv "${j%.tex}.pdf" "${i%.tex}.pdf" || die + done + fi +} + +src_install() { + TEXMF="/usr/share/texmf-site" + insinto "${TEXMF}/tex/latex/${PN}" + doins *.cls + insinto "${TEXMF}/doc/latex/${PN}" + doins *.tex + doins -r beispiele + if use examples + then doins *.pdf + fi + dodoc README.md +} + +pkg_postinst() { + texconfig rehash +} + +pkg_postrm() { + texconfig rehash +} |