blob: 37f2f9ce8f786bb69a4bcc459517a04de6fb7d84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
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"
S="${WORKDIR}/fax4CUPS-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="+hylafax mgetty-fax efax"
REQUIRED_USE="|| ( hylafax mgetty-fax efax )"
DEPEND="net-print/cups"
RDEPEND="${DEPEND}
|| (
hylafax? ( net-misc/hylafaxplus )
efax? ( net-misc/efax )
mgetty-fax? ( net-dialup/mgetty )
)
app-admin/sudo
"
BDEPEND="net-print/cups"
src_install() {
doman fax4CUPS.1
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
# Backend
doexe ${i}
# PPD
doins ${i}.ppd
fi
done
}
pkg_postinst() {
elog "Please execute '${EROOT}/etc/init.d/cups restart'"
elog "to get the *.ppd files working properly"
}
|