blob: 62917cfb1a4ce1fe181708ab4f2935c59e4041a2 (
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
41
42
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit leechcraft
DESCRIPTION="Monocle, the modular document viewer for LeechCraft"
SLOT="0"
KEYWORDS=""
IUSE="debug +djvu doc +fb2 +mobi +pdf +postscript"
REQUIRED_USE="postscript? ( pdf )"
CDEPEND="~app-leechcraft/lc-core-${PV}
pdf? ( app-text/poppler[qt4] )
djvu? ( app-text/djvu )"
RDEPEND="${CDEPEND}
postscript? ( app-text/ghostscript-gpl )"
DEPEND="${CDEPEND}
doc? ( app-doc/doxygen[dot] )"
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_enable djvu MONOCLE_SEEN)
$(cmake-utils_use_with doc DOCS)
$(cmake-utils_use_enable fb2 MONOCLE_FXB)
$(cmake-utils_use_enable mobi MONOCLE_DIK)
$(cmake-utils_use_enable pdf MONOCLE_PDF)
$(cmake-utils_use_enable postscript MONOCLE_POSTRUS)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
use doc && dohtml -r "${CMAKE_BUILD_DIR}"/out/html/*
}
|