Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/apsfilter/
Date: Thu, 01 Oct 2020 23:45:56
Message-Id: 1601595947.46f414b13fc6569d531466c945e5f187887f5304.sam@gentoo
1 commit: 46f414b13fc6569d531466c945e5f187887f5304
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 1 23:44:12 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 1 23:45:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f414b1
7
8 net-print/apsfilter: port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/742161
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 net-print/apsfilter/apsfilter-7.2.8-r1.ebuild | 43 +++++++++++++++++----------
15 1 file changed, 28 insertions(+), 15 deletions(-)
16
17 diff --git a/net-print/apsfilter/apsfilter-7.2.8-r1.ebuild b/net-print/apsfilter/apsfilter-7.2.8-r1.ebuild
18 index dcc618969c3..4f7f15844ca 100644
19 --- a/net-print/apsfilter/apsfilter-7.2.8-r1.ebuild
20 +++ b/net-print/apsfilter/apsfilter-7.2.8-r1.ebuild
21 @@ -1,42 +1,55 @@
22 # Copyright 1999-2020 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=4
26 +EAPI=7
27
28 DESCRIPTION="Apsfilter Prints So Fine, It Leads To Extraordinary Results"
29 HOMEPAGE="http://www.apsfilter.org"
30 SRC_URI="http://www.apsfilter.org/download/${P}.tar.bz2"
31 +S="${WORKDIR}/${PN}"
32 +
33 KEYWORDS="~alpha ~amd64 ppc sparc x86"
34 IUSE="cups"
35 SLOT="0"
36 LICENSE="GPL-2"
37
38 -RDEPEND="|| ( net-print/cups net-print/lprng )
39 +RDEPEND="
40 app-text/ghostscript-gpl
41 >=app-text/psutils-1.17
42 >=app-text/a2ps-4.13b-r4
43 + net-print/cups
44 virtual/awk
45 virtual/imagemagick-tools
46 virtual/mta"
47 DEPEND="${RDEPEND}"
48
49 -S=${WORKDIR}/${PN}
50 -
51 src_configure() {
52 - # assume thet lprng is installed if cups isn't USEd
53 - use cups && \
54 - myconf="--with-printcap=/etc/cups/printcap --with-spooldir=/var/spool/cups" || \
55 - myconf="--with-printcap=/etc/lprng/printcap"
56 + local myconf=
57 +
58 + # assume that lprng is installed if cups isn't USEd
59 + if use cups ; then
60 + myconf="--with-printcap=/etc/cups/printcap --with-spooldir=/var/spool/cups"
61 + else
62 + myconf="--with-printcap=/etc/lprng/printcap"
63 + fi
64
65 # econf doesn't work here :(
66 - ./configure --prefix=/usr --mandir=/usr/share/man \
67 - --docdir=/usr/share/doc/${PF} --sysconfdir=/etc ${myconf} || die
68 + ./configure \
69 + --prefix="${EPREFIX}/usr" \
70 + --mandir=/usr/share/man \
71 + --docdir=/usr/share/doc/${PF} \
72 + --sysconfdir=/etc \
73 + "${myconf} ${EXTRA_ECONF}" \
74 + || die
75 }
76
77 src_install() {
78 - emake DESTDIR="${D}" install
79 - dosym /usr/share/apsfilter/SETUP /usr/bin/apsfilter
80 - use cups && \
81 - dosym /etc/cups/printcap /etc/printcap || \
82 - dosym /etc/lprng/printcap /etc/printcap
83 + emake DESTDIR="${ED}" install
84 + dosym ../share/apsfilter/SETUP /usr/bin/apsfilter
85 +
86 + if use cups ; then
87 + dosym ../cups/printcap /etc/printcap
88 + else
89 + dosym ../lprng/printcap /etc/printcap
90 + fi
91 }