| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/qpdfview-0.3_beta2.ebuild,v 1.1 2012/06/12 05:00:26 yngwin Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit qt4-r2
|
| 7 |
|
| 8 |
DESCRIPTION="A tabbed PDF viewer using the poppler library"
|
| 9 |
HOMEPAGE="http://launchpad.net/qpdfview"
|
| 10 |
SRC_URI="https://launchpad.net/${PN}/trunk/${PV/_}/+download/${P/_}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="GPL-3"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="~amd64 ~x86"
|
| 15 |
IUSE="cups dbus"
|
| 16 |
|
| 17 |
RDEPEND="app-text/poppler[qt4]
|
| 18 |
x11-libs/qt-core:4
|
| 19 |
x11-libs/qt-gui:4
|
| 20 |
cups? ( net-print/cups )
|
| 21 |
dbus? ( x11-libs/qt-dbus:4 )"
|
| 22 |
DEPEND="${RDEPEND}
|
| 23 |
virtual/pkgconfig"
|
| 24 |
|
| 25 |
DOCS="README TODO"
|
| 26 |
|
| 27 |
S=${WORKDIR}/${P/_}
|
| 28 |
|
| 29 |
src_configure() {
|
| 30 |
local config
|
| 31 |
|
| 32 |
if ! use cups ; then
|
| 33 |
config+=" without_cups"
|
| 34 |
fi
|
| 35 |
|
| 36 |
if ! use dbus ; then
|
| 37 |
config+=" without_dbus"
|
| 38 |
fi
|
| 39 |
|
| 40 |
eqmake4 CONFIG+="${config}"
|
| 41 |
}
|