dev-tex/latex-calendar: bump EAPI and stuff
authorAaron Bauman <bman@gentoo.org>
Sat, 9 Nov 2019 22:45:58 +0000 (17:45 -0500)
committerAaron Bauman <bman@gentoo.org>
Sat, 9 Nov 2019 22:45:58 +0000 (17:45 -0500)
Signed-off-by: Aaron Bauman <bman@gentoo.org>
dev-tex/latex-calendar/latex-calendar-3.1.ebuild

index b5bb6f0e189118b41dbc8cf2acb6f771d5134e4e..0877b35128382c35c8ac670c4cb9dbaa8cb7c0be 100644 (file)
@@ -1,18 +1,20 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
 inherit latex-package
 
 MY_P="calendar"
+
 DESCRIPTION="LaTeX package used to create Calendars.  Very flexible and robust"
-HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/calendar/"
+HOMEPAGE="https://www.ctan.org/tex-archive/macros/latex/contrib/calendar/"
 SRC_URI="mirror://gentoo/${P}.tar.gz"
 
+KEYWORDS="amd64 ppc sparc x86"
+
 LICENSE="LaTeX-Calendar"
 SLOT="0"
-KEYWORDS="amd64 ppc sparc x86"
 IUSE=""
 
 S=${WORKDIR}/${MY_P}
@@ -20,13 +22,15 @@ S=${WORKDIR}/${MY_P}
 src_compile() {
        debug-print function $FUNCNAME $*
        echo "Extracting from allcal.ins"
-       ( yes | latex allcal.ins ) >/dev/null 2>&1
+       ( yes | latex allcal.ins ) >/dev/null 2>&1 || die "extracting failed"
 }
 
 src_install() {
-       texi2dvi -q -c --language=latex calguide.tex &> /dev/null
+       texi2dvi -q -c --language=latex calguide.tex &> /dev/null || die "conversion failed"
+
        latex-package_src_doinstall styles fonts bin dvi
+
        dodoc README MANIFEST CATALOG
-       insinto /usr/share/doc/${P}/samples
-       doins bigdemo.tgz *.cfg *.tex *.cld
+       docinto samples
+       dodoc bigdemo.tgz *.cfg *.tex *.cld
 }