blob: bab71f44628ca3953d7d2468c20bb7ca1f85a45c (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Print driver for Hp Deskjet 710, 712, 720, 722, 820, 1000 series"
HOMEPAGE="http://pnm2ppa.sourceforge.net"
SRC_URI="mirror://sourceforge/pnm2ppa/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="syslog"
# en on first place so others can override it
LANGS="en cs es fr it nl"
for lng in ${LANGS}; do
IUSE+=" l10n_${lng}"
done
RDEPEND="
app-text/ghostscript-gpl
net-print/cups
>=net-print/cups-filters-1.0.43-r1[foomatic]
sys-libs/glibc
syslog? ( virtual/logger )"
DEPEND="${RDEPEND}"
src_configure() {
local lng i withval
for lng in ${LANGS}; do
if use l10n_${lng}; then
if [[ -n ${i} ]] ; then
ewarn "This package supports only one translation at a time."
ewarn "Overriding previous value: \"${withval}\" with \"${lng}\""
fi
withval="${lng}"
i=true
fi
done
econf \
--with-language="${lng}" \
--enable-vlink \
$(use_enable syslog)
}
src_install() {
default
dobin utils/Linux/detect_ppa utils/Linux/test_ppa
insinto /usr/share/pnm2ppa
doins -r lpd pdq
exeinto /usr/share/pnm2ppa/lpd
doexe lpd/lpdsetup
exeinto /usr/share/pnm2ppa/sample_scripts
doexe sample_scripts/*
exeinto /etc/pdq/drivers/ghostscript
doexe pdq/gs-pnm2ppa
exeinto /etc/pdq/interfaces
doexe pdq/dummy
# install docs
cd docs/en || die
dodoc CALIBRATION*txt COLOR*txt PPA*txt RELEASE* CREDITS README sgml/*.sgml
cd "${S}" || die
docinto html/docs/en
dodoc docs/en/*.html
docinto html/ppa_protocol
dodoc ppa_protocol/*.html
}
|