blob: caf71b29af5293df0e67375216b2e899f998b195 (
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
40
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit qt4-r2 multilib eutils
DESCRIPTION="Convert html to pdf (and various image formats) using webkit"
HOMEPAGE="http://wkhtmltopdf.org/ https://github.com/wkhtmltopdf/wkhtmltopdf/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
RDEPEND="dev-qt/qtgui:4
dev-qt/qtwebkit:4
dev-qt/qtcore:4
dev-qt/qtsvg:4
dev-qt/qtxmlpatterns:4"
DEPEND="${RDEPEND}"
src_prepare() {
# fix install paths and don't precompress man pages
epatch "${FILESDIR}"/${PN}-0.12.1.2-manpages.patch
sed -i "s:\(INSTALLBASE/\)lib:\1$(get_libdir):" src/lib/lib.pro || die
}
src_configure() {
eqmake4 INSTALLBASE=/usr
}
src_install() {
emake INSTALL_ROOT="${D}" install
dodoc AUTHORS CHANGELOG* README.md
use examples && dodoc -r examples
}
|