summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2021-10-30 19:35:27 +0200
committerJakov Smolić <jsmolic@gentoo.org>2021-11-01 22:55:02 +0100
commit5053b3238c2bc8bd89f3a8e6d0972bb912b8ec59 (patch)
tree4f2d616e14a44ce8913463ceb4cb6f86ce7e9440 /net-print/fax4cups
parentmedia-video/makemkv: Version bump to 1.16.5, EAPI 8 (diff)
downloadgentoo-5053b3238c2bc8bd89f3a8e6d0972bb912b8ec59.tar.gz
gentoo-5053b3238c2bc8bd89f3a8e6d0972bb912b8ec59.tar.bz2
gentoo-5053b3238c2bc8bd89f3a8e6d0972bb912b8ec59.zip
net-print/fax4cups: Port to EAPI 8
Closes: https://bugs.gentoo.org/819273 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'net-print/fax4cups')
-rw-r--r--net-print/fax4cups/fax4cups-1.29-r1.ebuild23
1 files 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 fe10769ae330..37f2f9ce8f78 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"
}