summaryrefslogtreecommitdiff
blob: 41c28c3e1c4aa309cc5da908815fee4209a39b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/xfprint/xfprint-4.6.0.ebuild,v 1.1 2009/03/10 13:55:36 angelos Exp $

EAPI=1

inherit xfce4

xfce4_core

DESCRIPTION="Frontend for printing, management and job queue."
HOMEPAGE="http://www.xfce.org/projects/xfprint"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="cups doc debug"

RDEPEND="app-text/a2ps
	>=dev-libs/glib-2.6:2
	>=x11-libs/gtk+-2.6:2
	>=xfce-base/libxfce4util-${XFCE_VERSION}
	>=xfce-base/libxfcegui4-${XFCE_VERSION}
	>=xfce-base/xfconf-${XFCE_VERSION}
	cups? ( net-print/cups )
	!cups? ( net-print/lprng )"
DEPEND="${RDEPEND}
	dev-util/intltool
	doc? ( dev-util/gtk-doc )"

pkg_setup() {
	use cups || XFCE_CONFIG+=" --enable-bsdlpr"
	use cups && XFCE_CONFIG+=" --enable-cups"
	XFCE_CONFIG+=" $(use_enable doc gtk-doc)"
}

src_unpack() {
	xfce4_src_unpack
	sed -i -e "/24x24/d" "${S}"/icons/Makefile.in
}

DOCS="AUTHORS ChangeLog NEWS README TODO"