# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/qjson/qjson-0.7.1_p20121016.ebuild,v 1.2 2012/10/16 17:17:42 kensington Exp $ EAPI=4 inherit cmake-utils DESCRIPTION="A library for mapping JSON data to QVariant objects" HOMEPAGE="http://qjson.sourceforge.net" SRC_URI="http://dev.gentoo.org/~kensington/distfiles/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-fbsd" IUSE="debug doc test" RDEPEND="x11-libs/qt-core:4" DEPEND="${RDEPEND} doc? ( app-doc/doxygen ) test? ( x11-libs/qt-test:4 )" S=${WORKDIR}/${PN} DOCS=( README ) 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 }