1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 inherit autotools-utils
10 DESCRIPTION="C library for encoding, decoding and manipulating JSON data"
11 HOMEPAGE="http://www.digip.org/jansson/"
12 SRC_URI="http://www.digip.org/jansson/releases/${P}.tar.gz"
16 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
17 IUSE="doc static-libs"
19 DEPEND="doc? ( >=dev-python/sphinx-1.0.4 )"
22 DOCS=(CHANGES README.rst)
25 sed -ie 's/-Werror//' src/Makefile.am || die
26 autotools-utils_src_prepare
30 autotools-utils_src_compile
32 use doc && autotools-utils_src_compile html
36 use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/doc/_build/html/")
37 autotools-utils_src_install