1 |
commit: 1d752129975785c2974347d36b0f952f08cf66ac |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 1 07:03:32 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 07:04:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d752129 |
7 |
|
8 |
net-print/cups-filters: remove unmaintained long-time broken -9999 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/784497 |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
net-print/cups-filters/cups-filters-9999.ebuild | 146 ------------------------ |
14 |
1 file changed, 146 deletions(-) |
15 |
|
16 |
diff --git a/net-print/cups-filters/cups-filters-9999.ebuild b/net-print/cups-filters/cups-filters-9999.ebuild |
17 |
deleted file mode 100644 |
18 |
index ddd2623dced..00000000000 |
19 |
--- a/net-print/cups-filters/cups-filters-9999.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,146 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-GENTOO_DEPEND_ON_PERL=no |
28 |
- |
29 |
-inherit autotools perl-module systemd flag-o-matic |
30 |
- |
31 |
-if [[ "${PV}" == "9999" ]] ; then |
32 |
- inherit git-r3 |
33 |
- EGIT_REPO_URI="https://github.com/OpenPrinting/cups-filters.git" |
34 |
-else |
35 |
- SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz" |
36 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
37 |
-fi |
38 |
-DESCRIPTION="Cups filters" |
39 |
-HOMEPAGE="https://wiki.linuxfoundation.org/openprinting/cups-filters" |
40 |
- |
41 |
-LICENSE="MIT GPL-2" |
42 |
-SLOT="0" |
43 |
-IUSE="dbus +foomatic jpeg ldap pclm pdf perl png +postscript test tiff zeroconf" |
44 |
- |
45 |
-RESTRICT="!test? ( test )" |
46 |
- |
47 |
-RDEPEND=" |
48 |
- >=app-text/poppler-0.32:=[cxx,jpeg?,lcms,tiff?,utils] |
49 |
- >=app-text/qpdf-8.3.0:= |
50 |
- dev-libs/glib:2 |
51 |
- media-libs/fontconfig |
52 |
- media-libs/freetype:2 |
53 |
- media-libs/lcms:2 |
54 |
- >=net-print/cups-1.7.3 |
55 |
- sys-devel/bc |
56 |
- sys-libs/zlib |
57 |
- dbus? ( sys-apps/dbus ) |
58 |
- jpeg? ( virtual/jpeg:0 ) |
59 |
- ldap? ( net-nds/openldap ) |
60 |
- pdf? ( app-text/mupdf ) |
61 |
- perl? ( dev-lang/perl:= ) |
62 |
- png? ( media-libs/libpng:0= ) |
63 |
- postscript? ( >=app-text/ghostscript-gpl-9.09[cups] ) |
64 |
- tiff? ( media-libs/tiff:0 ) |
65 |
- zeroconf? ( net-dns/avahi[dbus] ) |
66 |
-" |
67 |
-DEPEND="${RDEPEND}" |
68 |
-BDEPEND=" |
69 |
- dev-util/gdbus-codegen |
70 |
- >=sys-devel/gettext-0.18.3 |
71 |
- virtual/pkgconfig |
72 |
- test? ( media-fonts/dejavu ) |
73 |
-" |
74 |
- |
75 |
-src_prepare() { |
76 |
- local need_eautoreconf= |
77 |
- |
78 |
- default |
79 |
- |
80 |
- if ! use test ; then |
81 |
- eapply "${FILESDIR}"/${PN}-1.27.4-make-missing-testfont-non-fatal.patch |
82 |
- need_eautoreconf=yes |
83 |
- elif [[ "${PV}" == "9999" ]] ; then |
84 |
- need_eautoreconf=yes |
85 |
- fi |
86 |
- |
87 |
- [[ -n ${need_eautoreconf} ]] && eautoreconf |
88 |
- |
89 |
- # Bug #626800 |
90 |
- append-cxxflags -std=c++11 |
91 |
-} |
92 |
- |
93 |
-src_configure() { |
94 |
- local myeconfargs=( |
95 |
- --enable-imagefilters |
96 |
- --localstatedir="${EPREFIX}"/var |
97 |
- --with-browseremoteprotocols=DNSSD,CUPS |
98 |
- --with-cups-rundir="${EPREFIX}"/run/cups |
99 |
- --with-fontdir="fonts/conf.avail" |
100 |
- --with-pdftops=pdftops |
101 |
- --with-rcdir=no |
102 |
- --without-php |
103 |
- --disable-static |
104 |
- $(use_enable dbus) |
105 |
- $(use_enable foomatic) |
106 |
- $(use_enable ldap) |
107 |
- $(use_enable pclm) |
108 |
- $(use_enable pdf mutool) |
109 |
- $(use_enable postscript ghostscript) |
110 |
- $(use_enable zeroconf avahi) |
111 |
- $(use_with jpeg) |
112 |
- $(use_with png) |
113 |
- $(use_with tiff) |
114 |
- ) |
115 |
- econf "${myeconfargs[@]}" |
116 |
-} |
117 |
- |
118 |
-src_compile() { |
119 |
- default |
120 |
- |
121 |
- if use perl; then |
122 |
- pushd "${S}/scripting/perl" > /dev/null || die |
123 |
- perl-module_src_configure |
124 |
- perl-module_src_compile |
125 |
- popd > /dev/null || die |
126 |
- fi |
127 |
-} |
128 |
- |
129 |
-src_test() { |
130 |
- emake check |
131 |
-} |
132 |
- |
133 |
-src_install() { |
134 |
- default |
135 |
- |
136 |
- if use perl; then |
137 |
- pushd "${S}/scripting/perl" > /dev/null || die |
138 |
- perl-module_src_install |
139 |
- perl_delete_localpod |
140 |
- popd > /dev/null || die |
141 |
- fi |
142 |
- |
143 |
- if use postscript; then |
144 |
- # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831 |
145 |
- dosym gstoraster /usr/libexec/cups/filter/pstoraster |
146 |
- dosym gstopxl /usr/libexec/cups/filter/pstopxl |
147 |
- fi |
148 |
- |
149 |
- find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
150 |
- |
151 |
- cp "${FILESDIR}"/cups-browsed.init.d-r1 "${T}"/cups-browsed || die |
152 |
- |
153 |
- if ! use zeroconf ; then |
154 |
- sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die |
155 |
- sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die |
156 |
- fi |
157 |
- |
158 |
- doinitd "${T}"/cups-browsed |
159 |
- systemd_dounit "${S}/utils/cups-browsed.service" |
160 |
-} |
161 |
- |
162 |
-pkg_postinst() { |
163 |
- if ! use foomatic ; then |
164 |
- ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely." |
165 |
- ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained." |
166 |
- fi |
167 |
-} |