blob: 03d8fa5c74abf7de15449d1fdb63e70e90cb6448 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/qjson/qjson-0.8.1.ebuild,v 1.8 2013/04/02 20:56:14 ago Exp $
EAPI=5
inherit cmake-utils
DESCRIPTION="A library for mapping JSON data to QVariant objects"
HOMEPAGE="http://qjson.sourceforge.net"
SRC_URI="mirror://github/flavio/qjson/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
IUSE="debug doc test"
RDEPEND="dev-qt/qtcore:4"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
test? ( dev-qt/qttest:4 )"
DOCS=( ChangeLog README.md )
src_configure() {
local mycmakeargs=(
$(cmake-utils_use test QJSON_BUILD_TESTS)
)
cmake-utils_src_configure
}
src_install() {
if use doc; then
cd doc
doxygen Doxyfile || die "Generating documentation failed"
HTML_DOCS=( doc/html/ )
fi
cmake-utils_src_install
}
|