Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/chktex/
Date: Sun, 15 Dec 2019 09:59:20
Message-Id: 1576403955.edc8f4d101689b487497bc8512e03feab03fc7f1.zlogene@gentoo
1 commit: edc8f4d101689b487497bc8512e03feab03fc7f1
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 15 09:39:27 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 15 09:59:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edc8f4d1
7
8 dev-tex/chktex: port to EAPI=7
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 dev-tex/chktex/chktex-1.7.6.ebuild | 30 +++++++++++++++---------------
14 1 file changed, 15 insertions(+), 15 deletions(-)
15
16 diff --git a/dev-tex/chktex/chktex-1.7.6.ebuild b/dev-tex/chktex/chktex-1.7.6.ebuild
17 index 4f066f5c4ca..4481fd8c9e6 100644
18 --- a/dev-tex/chktex/chktex-1.7.6.ebuild
19 +++ b/dev-tex/chktex/chktex-1.7.6.ebuild
20 @@ -1,10 +1,9 @@
21 # Copyright 1999-2019 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=4
25 -AUTOTOOLS_AUTORECONF=true
26 +EAPI=7
27
28 -inherit autotools-utils
29 +inherit autotools latex-package
30
31 DESCRIPTION="Checks latex source for common mistakes"
32 HOMEPAGE="http://www.nongnu.org/chktex/"
33 @@ -18,17 +17,19 @@ RESTRICT="!test? ( test )"
34 # Tests fail without pcre. Enable pcre by default and make tests depend on it.
35 REQUIRED_USE="test? ( pcre )"
36
37 -RDEPEND="virtual/latex-base
38 - dev-lang/perl
39 - pcre? ( dev-libs/libpcre )"
40 +RDEPEND="pcre? ( dev-libs/libpcre )"
41 +
42 DEPEND="${RDEPEND}
43 sys-apps/groff
44 dev-texlive/texlive-fontsrecommended
45 doc? ( dev-tex/latex2html )"
46
47 +BDEPEND="virtual/latex-base
48 + dev-lang/perl:="
49 +
50 PATCHES=( "${FILESDIR}/${PN}-1.7.1-asneeded.patch"
51 "${FILESDIR}/tex-inputenc.patch" )
52 -DOCS=( NEWS )
53 +
54 AT_M4DIR="${S}/m4"
55
56 src_configure() {
57 @@ -38,21 +39,20 @@ src_configure() {
58 $(use_enable debug debug-info)
59 $(use_enable pcre)
60 )
61 - autotools-utils_src_configure
62 + econf ${myconfargs[@]}
63 }
64
65 src_compile() {
66 - autotools-utils_src_compile
67 - autotools-utils_src_compile ChkTeX.dvi
68 - use doc && autotools-utils_src_compile html
69 + default
70 + emake ChkTeX.dvi
71 + use doc && emake html
72 }
73
74 src_install() {
75 + default
76 if use doc ; then
77 - HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX/")
78 - DOCS+=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX.tex")
79 + dodoc HTML/ChkTeX.tex
80 fi
81 - DOCS+=("${AUTOTOOLS_BUILD_DIR}/ChkTeX.dvi")
82 - autotools-utils_src_install
83 + dodoc ChkTeX.dvi NEWS
84 doman *.1
85 }