/[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.10 - (hide annotations) (download)
Tue Jun 26 20:19:09 2012 UTC (2 years, 1 month ago) by dilfridge
Branch: MAIN
Changes since 1.9: +3 -1 lines
Fix perl dependency, thanks _AxS_

(Portage version: 2.2.0_alpha112/cvs/Linux x86_64)

1 dilfridge 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 dilfridge 1.10 # $Header: /var/cvsroot/gentoo-x86/net-print/cups-filters/cups-filters-9999.ebuild,v 1.9 2012/06/10 10:34:25 scarabeus Exp $
4 dilfridge 1.1
5     EAPI=4
6    
7 dilfridge 1.10 GENTOO_DEPEND_ON_PERL=no
8    
9 scarabeus 1.8 inherit base perl-module
10 scarabeus 1.6
11 mr_bones_ 1.2 if [[ "${PV}"=="9999" ]] ; then
12 scarabeus 1.6 inherit autotools bzr
13 dilfridge 1.1 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.gz"
17     KEYWORDS=""
18     fi
19 mr_bones_ 1.5 DESCRIPTION="Cups PDF filters"
20     HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat"
21 dilfridge 1.1
22     LICENSE="GPL-2"
23     SLOT="0"
24 scarabeus 1.8 IUSE="jpeg perl png static-libs tiff"
25 dilfridge 1.1
26     RDEPEND="
27     app-text/ghostscript-gpl
28 scarabeus 1.3 app-text/poppler[jpeg?,lcms,tiff?]
29 dilfridge 1.1 media-libs/fontconfig
30     media-libs/freetype:2
31 scarabeus 1.3 media-libs/lcms:2
32 dilfridge 1.1 >net-print/cups-1.5.9999
33     sys-libs/zlib
34     jpeg? ( virtual/jpeg )
35 scarabeus 1.8 perl? ( dev-lang/perl )
36 dilfridge 1.1 png? ( media-libs/libpng )
37     tiff? ( media-libs/tiff )
38     "
39     DEPEND="${RDEPEND}"
40    
41     src_prepare() {
42     base_src_prepare
43     if [[ "${PV}"=="9999" ]] ; then
44     eautoreconf
45     fi
46     }
47    
48     src_configure() {
49     econf \
50 scarabeus 1.3 $(use_enable static-libs static) \
51 scarabeus 1.4 --with-fontdir="fonts/conf.avail" \
52 dilfridge 1.1 --enable-imagefilters \
53     $(use_with jpeg) \
54     $(use_with png) \
55     $(use_with tiff) \
56     --without-php
57     }
58 scarabeus 1.3
59 scarabeus 1.8 src_compile() {
60     default
61    
62     if use perl; then
63     pushd "${S}/scripting/perl" > /dev/null
64     perl-module_src_prep
65     perl-module_src_compile
66     popd > /dev/null
67     fi
68     }
69    
70 scarabeus 1.3 src_install() {
71     default
72    
73 scarabeus 1.8 if use perl; then
74     pushd "${S}/scripting/perl" > /dev/null
75     perl-module_src_install
76     fixlocalpod
77     popd > /dev/null
78     fi
79    
80 scarabeus 1.3 find "${ED}" -name '*.la' -exec rm -f {} +
81     }

  ViewVC Help
Powered by ViewVC 1.1.20