public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jakov Smolić" <jsmolic@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/fax4cups/
Date: Mon,  1 Nov 2021 21:56:03 +0000 (UTC)	[thread overview]
Message-ID: <1635803702.5053b3238c2bc8bd89f3a8e6d0972bb912b8ec59.jsmolic@gentoo> (raw)

commit:     5053b3238c2bc8bd89f3a8e6d0972bb912b8ec59
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 30 17:35:27 2021 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Mon Nov  1 21:55:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5053b323

net-print/fax4cups: Port to EAPI 8

Closes: https://bugs.gentoo.org/819273
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 net-print/fax4cups/fax4cups-1.29-r1.ebuild | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/net-print/fax4cups/fax4cups-1.29-r1.ebuild b/net-print/fax4cups/fax4cups-1.29-r1.ebuild
index fe10769ae33..37f2f9ce8f7 100644
--- a/net-print/fax4cups/fax4cups-1.29-r1.ebuild
+++ b/net-print/fax4cups/fax4cups-1.29-r1.ebuild
@@ -1,16 +1,16 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=8
 
 DESCRIPTION="Fax backend for CUPS"
 HOMEPAGE="http://vigna.dsi.unimi.it/fax4CUPS/"
 SRC_URI="http://vigna.dsi.unimi.it/fax4CUPS/fax4CUPS-${PV}.tar.gz"
-LICENSE="GPL-2"
+S="${WORKDIR}/fax4CUPS-${PV}"
 
+LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ~ppc x86"
-
 IUSE="+hylafax mgetty-fax efax"
 REQUIRED_USE="|| ( hylafax mgetty-fax efax )"
 
@@ -23,27 +23,26 @@ RDEPEND="${DEPEND}
 	)
 	app-admin/sudo
 "
-
-S=${WORKDIR}/fax4CUPS-${PV}
+BDEPEND="net-print/cups"
 
 src_install() {
 	doman fax4CUPS.1
 
-	exeinto $(cups-config --serverbin)/backend
+	exeinto $(cups-config --serverbin || die)/backend
 	insinto /usr/share/cups/model
 
+	local i
 	for i in hylafax efax mgetty-fax; do
-		if use $i
-		then
+		if use ${i}; then
 			# Backend
-			doexe $i
+			doexe ${i}
 			# PPD
-			doins $i.ppd
+			doins ${i}.ppd
 		fi
 	done
 }
 
 pkg_postinst() {
-	elog "Please execute '/etc/init.d/cups restart'"
+	elog "Please execute '${EROOT}/etc/init.d/cups restart'"
 	elog "to get the *.ppd files working properly"
 }


             reply	other threads:[~2021-11-01 21:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-01 21:56 Jakov Smolić [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-26 10:46 [gentoo-commits] repo/gentoo:master commit in: net-print/fax4cups/ Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1635803702.5053b3238c2bc8bd89f3a8e6d0972bb912b8ec59.jsmolic@gentoo \
    --to=jsmolic@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox