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 (-8 / +24 lines)
Lines 6-12 Link Here
6
6
7
AUTOTOOLS_AUTORECONF=true
7
AUTOTOOLS_AUTORECONF=true
8
8
9
inherit autotools-utils
9
inherit flag-o-matic 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 15-44 Link Here
15
LICENSE="MIT"
15
LICENSE="MIT"
16
SLOT="0/0"
16
SLOT="0/0"
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 test"
19
19
20
# tests break otherwise
20
ECONF_SOURCE="${S}"
21
AUTOTOOLS_IN_SOURCE_BUILD=1
21
22
_prepare_tests() {
23
	mkdir -p "${BUILD_DIR}"/tests
24
	einfo "Symlinking expected test results into ${BUILD_DIR}/tests"
25
	cp -s "${S}"/tests/*.expected "${BUILD_DIR}"/tests
26
	einfo "Symlinking headers into ${BUILD_DIR} to compile tests"
27
	cp -s "${S}"/*.h "${BUILD_DIR}"
28
}
22
29
23
src_prepare() {
30
src_prepare() {
24
	sed -i -e "s:-Werror::" Makefile.am.inc || die
31
	sed -i -e "s:-Werror::" Makefile.am.inc || die
25
	autotools-utils_src_prepare
32
	filter-ldflags -Wl,--relax
33
	# source comes pre-configured for an obscure system,
34
	# reconfigure and distclean first
35
	ebegin "Cleaning source tree"
36
	econf &>/dev/null
37
	emake distclean  &>/dev/null
38
	eend
39
	autotools-multilib_src_prepare
40
	# Fix up tests for out of source build
41
	use test && multilib_parallel_foreach_abi _prepare_tests
26
}
42
}
27
43
28
src_configure() {
44
src_configure() {
29
	# Disable old lib compatibility
45
	# Disable old lib compatibility
30
	myeconfargs=(--disable-oldname-compat)
46
	myeconfargs=(--disable-oldname-compat)
31
	autotools-utils_src_configure
47
	autotools-multilib_src_configure
32
}
48
}
33
49
34
src_test() {
50
src_test() {
35
	export USE_VALGRIND=0 VERBOSE=1
51
	export USE_VALGRIND=0 VERBOSE=1
36
	autotools-utils_src_test
52
	autotools-multilib_src_test
37
}
53
}
38
54
39
src_install() {
55
src_install() {
40
	use doc && HTML_DOCS=( "${S}"/doc/html )
56
	use doc && HTML_DOCS=( "${S}"/doc/html )
41
	autotools-utils_src_install
57
	autotools-multilib_src_install
42
58
43
	# add symlink for projects not using pkgconfig
59
	# add symlink for projects not using pkgconfig
44
	dosym ../json-c /usr/include/json-c/json
60
	dosym ../json-c /usr/include/json-c/json

Return to bug 488272