Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 914586
Collapse All | Expand All

(-)a/net-print/cups-filters/Manifest (+1 lines)
Line 1 Link Here
1
DIST cups-filters-1.28.17.tar.xz 1516052 BLAKE2B 87258391901d55d9e59b06d54603d014e54d224a373529bd70fcd38cded9dc96c88ca73bcea63d7633c065caea3f9e3274cd450aec5f1bd90130d9a88c0d3421 SHA512 320544a48206165581adafb28dbef58f39c66bebd3641be3d180a692605349d9e6af6d464044db9f7bda17a67f4a079370d8cc880cd7873d684b2209882deb35
1
DIST cups-filters-1.28.17.tar.xz 1516052 BLAKE2B 87258391901d55d9e59b06d54603d014e54d224a373529bd70fcd38cded9dc96c88ca73bcea63d7633c065caea3f9e3274cd450aec5f1bd90130d9a88c0d3421 SHA512 320544a48206165581adafb28dbef58f39c66bebd3641be3d180a692605349d9e6af6d464044db9f7bda17a67f4a079370d8cc880cd7873d684b2209882deb35
2
DIST cups-filters-2.0.0.tar.xz 447648 BLAKE2B be5e2aab4eb921aa67bfcc93aa5f95a9f1fe1a269ed73d18273a0e9a3e816187e9e32750ba6521c3ab083c3c7b7a60bb1fa679e16d4a5917f911a4ba8d4b7207 SHA512 fc8ba3bbf92d5ede295884023d1c42422c4c250dbbf21c948f160a04ded3259784df4bd17eea64492f9417f866e566be1a9fcde47d29655cd4204ef4cc7af134
(-)a/net-print/cups-filters/cups-filters-2.0.0.ebuild (-1 / +73 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2023 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=8
5
6
inherit systemd
7
8
DESCRIPTION="Cups filters"
9
HOMEPAGE="https://wiki.linuxfoundation.org/openprinting/cups-filters"
10
SRC_URI="
11
	https://github.com/OpenPrinting/cups-filters/releases/download/${PV}/${P}.tar.xz
12
	https://www.openprinting.org/download/${PN}/${P}.tar.xz
13
"
14
15
LICENSE="Apache-2.0"
16
SLOT="0"
17
IUSE="pdf +postscript test zeroconf"
18
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
19
RESTRICT="!test? ( test )"
20
21
RDEPEND="
22
	>=app-text/poppler-0.32[utils]
23
	dev-libs/glib:2
24
	>=net-print/cups-2.2.2
25
	sys-devel/bc
26
	pdf? ( app-text/mupdf:= )
27
	postscript? ( >=app-text/ghostscript-gpl-9.09[cups] )
28
	zeroconf? ( net-dns/avahi[dbus] )
29
"
30
DEPEND="${RDEPEND}"
31
BDEPEND="
32
	dev-util/gdbus-codegen
33
	>=sys-devel/gettext-0.18.3
34
	virtual/pkgconfig
35
	test? ( media-fonts/dejavu )
36
"
37
38
src_configure() {
39
	local myeconfargs=(
40
		--localstatedir="${EPREFIX}"/var
41
		--with-fontdir="fonts/conf.avail"
42
43
		--enable-foomatic
44
		--enable-imagefilters
45
		$(use_enable pdf mutool)
46
		$(use_enable postscript ghostscript)
47
		$(use_enable zeroconf avahi)
48
	)
49
50
	econf "${myeconfargs[@]}"
51
}
52
53
src_install() {
54
	default
55
56
	if use postscript; then
57
		# workaround: some printer drivers still require pstoraster and pstopxl, bug #383831
58
		dosym gstoraster /usr/libexec/cups/filter/pstoraster
59
		dosym gstopxl /usr/libexec/cups/filter/pstopxl
60
	fi
61
62
	find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
63
64
	cp "${FILESDIR}"/cups-browsed.init.d-r2 "${T}"/cups-browsed || die
65
66
	if ! use zeroconf ; then
67
		sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die
68
		sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die
69
	fi
70
71
	doinitd "${T}"/cups-browsed
72
	systemd_dounit "${S}"/utils/cups-browsed.service
73
}

Return to bug 914586