Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 488272 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-libs/json-c/json-c-0.11.ebuild (-12 / +18 lines)
Lines 1-12 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/json-c/json-c-0.11.ebuild,v 1.2 2013/05/09 05:15:10 vapier Exp $
3
# $Header: $
4
4
5
EAPI=5
5
EAPI=5
6
6
7
AUTOTOOLS_AUTORECONF=true
7
AUTOTOOLS_AUTORECONF=true
8
8
9
inherit autotools-utils
9
inherit autotools-multilib
10
10
11
DESCRIPTION="A JSON implementation in C"
11
DESCRIPTION="A JSON implementation in C"
12
HOMEPAGE="https://github.com/json-c/json-c/wiki"
12
HOMEPAGE="https://github.com/json-c/json-c/wiki"
Lines 17-45 Link Here
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
18
IUSE="doc static-libs"
18
IUSE="doc static-libs"
19
19
20
# tests break otherwise
20
# Tests assume in-source build, but autotools-multilib require out-of-source builds
21
AUTOTOOLS_IN_SOURCE_BUILD=1
21
RESTRICT="test"
22
22
23
src_prepare() {
23
src_prepare() {
24
	sed -i -e "s:-Werror::" Makefile.am.inc || die
24
	sed -i -e "s:-Werror::" Makefile.am.inc || die
25
	autotools-utils_src_prepare
25
	rm config.status || die
26
	autotools-multilib_src_prepare
26
}
27
}
27
28
28
src_configure() {
29
src_configure() {
29
	# Disable old lib compatibility
30
	# Disable old lib compatibility
30
	myeconfargs=(--disable-oldname-compat)
31
	local myeconfargs=(
31
	autotools-utils_src_configure
32
		--disable-oldname-compat
33
	)
34
	autotools-multilib_src_configure
32
}
35
}
33
36
34
src_test() {
37
src_test() {
35
	export USE_VALGRIND=0 VERBOSE=1
38
	export USE_VALGRIND=0 VERBOSE=1 INCLUDES=-I${S}
36
	autotools-utils_src_test
39
40
	autotools-multilib_src_test
37
}
41
}
38
42
39
src_install() {
43
src_install() {
40
	use doc && HTML_DOCS=( "${S}"/doc/html )
44
	use doc && HTML_DOCS=( "${S}"/doc/html )
41
	autotools-utils_src_install
45
	autotools-multilib_src_install
42
46
43
	# add symlink for projects not using pkgconfig
47
	if [[ ${ABI} == ${DEFAULT_ABI} ]]; then
44
	dosym ../json-c /usr/include/json-c/json
48
		# add symlink for projects not using pkgconfig
49
		dosym ../json-c /usr/include/json-c/json
50
	fi
45
}
51
}

Return to bug 488272