You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.7 KiB
84 lines
1.7 KiB
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
12 years ago
|
|
||
|
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"
|
||
4 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
12 years ago
|
IUSE="syslog"
|
||
|
|
||
|
# en on first place so others can override it
|
||
|
LANGS="en cs es fr it nl"
|
||
|
for lng in ${LANGS}; do
|
||
7 years ago
|
IUSE+=" l10n_${lng}"
|
||
12 years ago
|
done
|
||
|
|
||
|
RDEPEND="
|
||
|
app-text/ghostscript-gpl
|
||
|
net-print/cups
|
||
6 years ago
|
>=net-print/cups-filters-1.0.43-r1[foomatic]
|
||
12 years ago
|
sys-libs/glibc
|
||
4 years ago
|
syslog? ( virtual/logger )"
|
||
12 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
2 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-fno-common.patch
|
||
|
"${FILESDIR}"/${P}-clang16.patch
|
||
|
)
|
||
4 years ago
|
|
||
12 years ago
|
src_configure() {
|
||
|
local lng i withval
|
||
|
|
||
|
for lng in ${LANGS}; do
|
||
7 years ago
|
if use l10n_${lng}; then
|
||
12 years ago
|
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
|
||
4 years ago
|
|
||
12 years ago
|
exeinto /etc/pdq/interfaces
|
||
|
doexe pdq/dummy
|
||
12 years ago
|
|
||
|
# install docs
|
||
4 years ago
|
cd docs/en || die
|
||
12 years ago
|
dodoc CALIBRATION*txt COLOR*txt PPA*txt RELEASE* CREDITS README sgml/*.sgml
|
||
|
|
||
4 years ago
|
cd "${S}" || die
|
||
|
docinto html/docs/en
|
||
|
dodoc docs/en/*.html
|
||
|
docinto html/ppa_protocol
|
||
|
dodoc ppa_protocol/*.html
|
||
12 years ago
|
}
|