| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit qt4-r2 multilib
|
| 8 |
|
| 9 |
DESCRIPTION="Convert html to pdf (and various image formats) using webkit"
|
| 10 |
HOMEPAGE="http://code.google.com/p/wkhtmltopdf/"
|
| 11 |
SRC_URI="http://wkhtmltopdf.googlecode.com/files/${P}.tar.bz2"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="examples"
|
| 17 |
|
| 18 |
RDEPEND="x11-libs/qt-gui:4
|
| 19 |
x11-libs/qt-webkit:4
|
| 20 |
x11-libs/qt-core:4
|
| 21 |
x11-libs/qt-svg:4
|
| 22 |
x11-libs/qt-xmlpatterns:4"
|
| 23 |
DEPEND="${RDEPEND}"
|
| 24 |
|
| 25 |
# Tests pull data from websites and require a
|
| 26 |
# special patched version of qt so many fail
|
| 27 |
RESTRICT="test"
|
| 28 |
|
| 29 |
src_prepare() {
|
| 30 |
sed -i -e "s:\(INSTALLBASE/\)lib:\1$(get_libdir):" src/lib/lib.pro || die
|
| 31 |
}
|
| 32 |
|
| 33 |
src_configure() {
|
| 34 |
eqmake4 INSTALLBASE="${D}"/usr
|
| 35 |
}
|
| 36 |
|
| 37 |
src_test() {
|
| 38 |
./scripts/test.sh || die "Tests failed"
|
| 39 |
}
|
| 40 |
|
| 41 |
src_install() {
|
| 42 |
default
|
| 43 |
|
| 44 |
if use examples ; then
|
| 45 |
docinto examples
|
| 46 |
dodoc examples/*
|
| 47 |
fi
|
| 48 |
}
|