Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/enscript/
Date: Sat, 11 Feb 2017 19:52:22
Message-Id: 1486842732.a9d34704b8f19365fb585cec6b71dd2b344e8316.dilfridge@gentoo
1 commit: a9d34704b8f19365fb585cec6b71dd2b344e8316
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 11 19:51:48 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 11 19:52:12 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d34704
7
8 app-text/enscript: Honor AR setting, bug 447620
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-text/enscript/enscript-1.6.6.ebuild | 25 +++++++++++++------------
13 1 file changed, 13 insertions(+), 12 deletions(-)
14
15 diff --git a/app-text/enscript/enscript-1.6.6.ebuild b/app-text/enscript/enscript-1.6.6.ebuild
16 index 25066b19d1..4246f7c531 100644
17 --- a/app-text/enscript/enscript-1.6.6.ebuild
18 +++ b/app-text/enscript/enscript-1.6.6.ebuild
19 @@ -1,12 +1,12 @@
20 -# Copyright 1999-2012 Gentoo Foundation
21 +# Copyright 1999-2017 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23 # $Id$
24
25 -EAPI="2"
26 +EAPI=6
27
28 -inherit eutils
29 +inherit eutils toolchain-funcs
30
31 -DESCRIPTION="powerful text-to-postscript converter"
32 +DESCRIPTION="Powerful text-to-postscript converter"
33 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
34 HOMEPAGE="https://www.gnu.org/software/enscript/enscript.html"
35
36 @@ -27,26 +27,27 @@ src_prepare() {
37 epatch "${FILESDIR}"/enscript-1.6.5.2-php.st.patch
38 use ruby && epatch "${FILESDIR}"/enscript-1.6.2-ruby.patch
39 sed -i src/tests/passthrough.test -e 's|tail +2|tail -n +2|g' || die
40 + default
41 }
42
43 src_configure() {
44 econf $(use_enable nls)
45 }
46
47 +src_compile() {
48 + emake AR="$(tc-getAR)"
49 +}
50 +
51 src_install() {
52 - emake DESTDIR="${D}" install || die "install failed"
53 + emake DESTDIR="${D}" install
54
55 - dodoc AUTHORS ChangeLog NEWS README* THANKS TODO || die "dodoc failed"
56 + dodoc AUTHORS ChangeLog NEWS README* THANKS TODO
57
58 insinto /usr/share/enscript/hl
59 - doins "${FILESDIR}"/ebuild.st || die "doins ebuild.st failed"
60 + doins "${FILESDIR}"/ebuild.st
61
62 if use ruby ; then
63 insinto /usr/share/enscript/hl
64 - doins "${FILESDIR}"/ruby.st || die "doins ruby.st failed"
65 + doins "${FILESDIR}"/ruby.st
66 fi
67 }
68 -
69 -pkg_postinst() {
70 - elog "Now, customize /etc/enscript.cfg."
71 -}