| 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.1_p427.ebuild,v 1.2 2012/07/14 13:31:17 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="http://dev.gentoo.org/~yngwin/distfiles/${P}.tar.xz" |
| 11 |
|
| 12 |
LICENSE="GPL-2" |
| 13 |
SLOT="0" |
| 14 |
KEYWORDS="~amd64 ~x86" |
| 15 |
IUSE="cups dbus svg" |
| 16 |
|
| 17 |
RDEPEND="app-text/poppler[qt4] |
| 18 |
x11-libs/qt-core:4[iconv] |
| 19 |
x11-libs/qt-gui:4 |
| 20 |
cups? ( net-print/cups ) |
| 21 |
dbus? ( x11-libs/qt-dbus:4 ) |
| 22 |
svg? ( x11-libs/qt-svg:4 )" |
| 23 |
DEPEND="${RDEPEND} |
| 24 |
virtual/pkgconfig" |
| 25 |
|
| 26 |
DOCS="CONTRIBUTORS README TODO" |
| 27 |
|
| 28 |
src_configure() { |
| 29 |
local config i |
| 30 |
for i in cups dbus svg ; do |
| 31 |
if ! use ${i} ; then |
| 32 |
config+=" without_${i}" |
| 33 |
fi |
| 34 |
done |
| 35 |
|
| 36 |
eqmake4 CONFIG+="${config}" |
| 37 |
} |