/[gentoo-x86]/net-print/cups-filters/cups-filters-9999.ebuild
Gentoo

Contents of /net-print/cups-filters/cups-filters-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.35 - (show annotations) (download)
Wed May 15 20:00:28 2013 UTC (10 days, 2 hours ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.34: +27 -26 lines
Make init scripts only depend on avahi if it is really used, bug 469930. In addition, please repeat after me: We do not do revbumps in live ebuilds...

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key EBE6A336BE19039C!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-print/cups-filters/cups-filters-1.0.34.ebuild,v 1.1 2013/05/11 11:47:47 dilfridge Exp $
4
5 EAPI=5
6
7 GENTOO_DEPEND_ON_PERL=no
8
9 inherit base eutils perl-module autotools systemd
10
11 if [[ "${PV}" == "9999" ]] ; then
12 inherit bzr
13 EBZR_REPO_URI="http://bzr.linuxfoundation.org/openprinting/cups-filters"
14 KEYWORDS=""
15 else
16 SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
18 fi
19 DESCRIPTION="Cups PDF filters"
20 HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat"
21
22 LICENSE="MIT GPL-2"
23 SLOT="0"
24 IUSE="jpeg perl png static-libs tiff zeroconf"
25
26 RDEPEND="
27 app-text/ghostscript-gpl
28 app-text/poppler:=[cxx,jpeg?,lcms,tiff?,xpdf-headers(+)]
29 >=app-text/qpdf-3.0.2
30 media-libs/fontconfig
31 media-libs/freetype:2
32 media-libs/lcms:2
33 >net-print/cups-1.5.9999
34 !<=net-print/cups-1.5.9999
35 sys-devel/bc
36 sys-libs/zlib
37 jpeg? ( virtual/jpeg )
38 perl? ( dev-lang/perl )
39 png? ( media-libs/libpng:0= )
40 tiff? ( media-libs/tiff )
41 zeroconf? ( net-dns/avahi )
42 "
43 DEPEND="${RDEPEND}"
44
45 src_prepare() {
46 base_src_prepare
47 sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
48 eautoreconf
49 }
50
51 src_configure() {
52 econf \
53 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
54 $(use_enable zeroconf avahi) \
55 $(use_enable static-libs static) \
56 --with-fontdir="fonts/conf.avail" \
57 --with-pdftops=pdftops \
58 --enable-imagefilters \
59 $(use_with jpeg) \
60 $(use_with png) \
61 $(use_with tiff) \
62 --with-rcdir=no \
63 --with-browseremoteprotocols=DNSSD,CUPS \
64 --without-php
65 }
66
67 src_compile() {
68 default
69
70 if use perl; then
71 pushd "${S}/scripting/perl" > /dev/null
72 perl-module_src_prep
73 perl-module_src_compile
74 popd > /dev/null
75 fi
76 }
77
78 src_install() {
79 default
80
81 if use perl; then
82 pushd "${S}/scripting/perl" > /dev/null
83 perl-module_src_install
84 fixlocalpod
85 popd > /dev/null
86 fi
87
88 prune_libtool_files --all
89
90 cp "${FILESDIR}"/cups-browsed.init.d "${T}"/cups-browsed || die
91 cp "${FILESDIR}/cups-browsed.service" "${T}"/ || die
92
93 if ! use zeroconf ; then
94 sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die
95 sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${T}"/cups-browsed.service || die
96 fi
97
98 doinitd "${T}"/cups-browsed
99 systemd_dounit "${T}/cups-browsed.service"
100 }
101
102 pkg_postinst() {
103 perl-module_pkg_postinst
104
105 elog "This version of cups-filters includes cups-browsed, a daemon that autodiscovers"
106 elog "remote queues via avahi or cups-1.5 browsing protocol and adds them to your cups"
107 elog "configuration. You may want to add it to your default runlevel."
108 }

  ViewVC Help
Powered by ViewVC 1.1.20