blob: d8b6c72187012eccd1d466ba8fded039d000a2dd (
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
43
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/json-c/json-c-0.10-r1.ebuild,v 1.3 2013/05/09 05:15:10 vapier Exp $
EAPI=5
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils
DESCRIPTION="A JSON implementation in C"
HOMEPAGE="https://github.com/json-c/json-c/wiki"
SRC_URI="mirror://github/${PN}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0/0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="doc static-libs"
PATCHES=(
"${FILESDIR}"/${P}-flags.patch
# bug 452234
"${FILESDIR}"/${P}-headers.patch
# bug 466960
"${FILESDIR}"/${P}-automake-1.13.patch
)
# tests break otherwise
AUTOTOOLS_IN_SOURCE_BUILD=1
src_test() {
export USE_VALGRIND=0 VERBOSE=1
autotools-utils_src_test
}
src_install() {
use doc && HTML_DOCS=( "${S}"/doc/html )
autotools-utils_src_install
# add symlink for projects not using pkgconfig
dosym ../json-c /usr/include/json-c/json
}
|