dev-tex/tipa: bump EAPI and stuff
authorAaron Bauman <bman@gentoo.org>
Sat, 9 Nov 2019 23:00:56 +0000 (18:00 -0500)
committerAaron Bauman <bman@gentoo.org>
Sat, 9 Nov 2019 23:01:14 +0000 (18:01 -0500)
Signed-off-by: Aaron Bauman <bman@gentoo.org>
dev-tex/tipa/tipa-1.3.ebuild

index 6d68b16c4c99270d02fa01ea9da1a40063caf927..02b80da63266ffe5941a3265d582da714ed08ca8 100644 (file)
@@ -1,40 +1,39 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
 DESCRIPTION="International Phonetic Alphabet package for LaTeX"
-HOMEPAGE="http://www.l.u-tokyo.ac.jp/~fkr/"
-SRC_URI="http://www.l.u-tokyo.ac.jp/~fkr/tipa/${P}.tar.gz"
+HOMEPAGE="https://www.l.u-tokyo.ac.jp/~fkr/"
+SRC_URI="https://www.l.u-tokyo.ac.jp/~fkr/tipa/${P}.tar.gz"
 
-LICENSE="LPPL-1.2"
-SLOT="0"
 KEYWORDS="amd64 x86"
 
+LICENSE="LPPL-1.2"
+SLOT="0"
 IUSE=""
 
 DEPEND="virtual/latex-base"
 RDEPEND="${DEPEND}"
 
-src_compile() {
+src_prepare() {
        # install files under /usr/share/texmf/
        sed -e 's@PREFIX=/usr/local/teTeX/share/texmf@PREFIX=/usr/share/texmf@' \
-               -i Makefile || die "sed failed"
+               -i Makefile || die "sed #1 failed"
 
        sed -e 's/\($(TEXDIR)\)/$(DESTDIR)\/\1/' \
                -e 's/\($(FONTDIR)\)/$(DESTDIR)\/\1/g' \
                -e 's/\($(MAPDIR)\)/$(DESTDIR)\/\1/' \
-               -i Makefile || die "sed failed"
+               -i Makefile || die "sed #2 failed"
 
        # removing `mktexlsr` from Makefile (leads to access violation)
-       sed -e 's/-mktexlsr//' -i Makefile || die "sed failed"
+       sed -e 's/-mktexlsr//' -i Makefile || die "sed #3 failed"
+       default
 }
 
 src_install() {
-       make DESTDIR="${D}" install || die "make install failed."
-       dodoc doc/*.{tex,sty,bib,bbl} || die "dodoc failed."
-
-       elog "A huge documentation can be found in '/usr/share/doc/${P}'."
+       emake DESTDIR="${D}" install
+       dodoc doc/*.{tex,sty,bib,bbl}
 }
 
 pkg_postinst() {