# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit cmake-utils git-2 DESCRIPTION="A library for mapping JSON data to QVariant objects" HOMEPAGE="http://qjson.sourceforge.net" EGIT_REPO_URI="git://github.com/flavio/${PN}.git" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="" 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 }