From 348eec83133e8d92c2534ee070bdfd4945f25aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20V=C3=A4th?= Date: Fri, 8 Jun 2018 22:44:38 +0200 Subject: games-rpg/m5figur-mv: Version bump --- games-rpg/m5figur-mv/Manifest | 2 +- games-rpg/m5figur-mv/m5figur-mv-3.0.ebuild | 49 -------------------------- games-rpg/m5figur-mv/m5figur-mv-3.1.ebuild | 56 ++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 50 deletions(-) delete mode 100644 games-rpg/m5figur-mv/m5figur-mv-3.0.ebuild create mode 100644 games-rpg/m5figur-mv/m5figur-mv-3.1.ebuild (limited to 'games-rpg/m5figur-mv') diff --git a/games-rpg/m5figur-mv/Manifest b/games-rpg/m5figur-mv/Manifest index 20f898e9..10781595 100644 --- a/games-rpg/m5figur-mv/Manifest +++ b/games-rpg/m5figur-mv/Manifest @@ -1 +1 @@ -DIST m5figur-mv-3.0.tar.gz 20333 SHA512 92744fdc5a1ac3574f8e56c9f5e21ab36effbdaee83bbd122bc813624061741adf956998217043c490d74249bca4ea168d3696260267a0bfb26c59627579ae1d +DIST m5figur-mv-3.1.tar.gz 21182 SHA512 8b4d77e18b2ae057a17fb39ebd2fa27510be14a779ede5a0177864e95374c82bbeeec9a5105492ece841d334b679ee7e00acc1fab01dd53da1e66b9398632b62 diff --git a/games-rpg/m5figur-mv/m5figur-mv-3.0.ebuild b/games-rpg/m5figur-mv/m5figur-mv-3.0.ebuild deleted file mode 100644 index 518116d8..00000000 --- a/games-rpg/m5figur-mv/m5figur-mv-3.0.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2014-2018 Gentoo Foundation -# 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="~amd64 ~x86" -IUSE="+examples" -# We need texlive-latexextra for toolbox.sty -DEPEND="virtual/latex-base" -RDEPEND="${DEPEND} - dev-texlive/texlive-latexextra" -BDEPEND="examples? ( ${DEPEND} )" - -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.md -} - -pkg_postinst() { - texconfig rehash -} - -pkg_postrm() { - texconfig rehash -} diff --git a/games-rpg/m5figur-mv/m5figur-mv-3.1.ebuild b/games-rpg/m5figur-mv/m5figur-mv-3.1.ebuild new file mode 100644 index 00000000..e16231fa --- /dev/null +++ b/games-rpg/m5figur-mv/m5figur-mv-3.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 2014-2018 Gentoo Foundation +# 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="~amd64 ~x86" +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 +} -- cgit v1.2.3