| 1 |
# Copyright 1999-2012 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.17.ebuild,v 1.3 2012/06/02 19:47:16 dilfridge Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools eutils
|
| 8 |
|
| 9 |
DESCRIPTION="Cups PDF filters"
|
| 10 |
HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat"
|
| 11 |
SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS=""
|
| 16 |
IUSE="jpeg lcms png tiff zlib"
|
| 17 |
|
| 18 |
RDEPEND="
|
| 19 |
app-text/ghostscript-gpl
|
| 20 |
app-text/poppler[jpeg?,lcms?]
|
| 21 |
media-libs/freetype:2
|
| 22 |
>net-print/cups-1.5.9999
|
| 23 |
jpeg? ( virtual/jpeg )
|
| 24 |
lcms? ( media-libs/lcms:2 )
|
| 25 |
png? ( media-libs/libpng )
|
| 26 |
tiff? ( media-libs/tiff )
|
| 27 |
zlib? ( sys-libs/zlib )
|
| 28 |
"
|
| 29 |
DEPEND="${RDEPEND}"
|
| 30 |
|
| 31 |
src_prepare() {
|
| 32 |
epatch "${FILESDIR}"/${PN}-1.0.11-makefiles.patch
|
| 33 |
eautoreconf
|
| 34 |
}
|
| 35 |
|
| 36 |
src_configure() {
|
| 37 |
econf \
|
| 38 |
--without-php \
|
| 39 |
--with-optim="${CFLAGS}" \
|
| 40 |
$(use_enable jpeg) \
|
| 41 |
$(use_enable jpeg libjpeg) \
|
| 42 |
$(use_enable lcms cms) \
|
| 43 |
$(use_enable png) \
|
| 44 |
$(use_enable tiff) \
|
| 45 |
$(use_enable zlib)
|
| 46 |
}
|