diff options
| author | Tim Harder <radhermit@gentoo.org> | 2017-09-22 02:09:18 -0400 |
|---|---|---|
| committer | Tim Harder <radhermit@gentoo.org> | 2017-09-22 02:12:38 -0400 |
| commit | 9753cc23b3a49cb983d6555d2e7fb8ed39712476 (patch) | |
| tree | 91c7491ddf4c2d4bfb8846a3e401ce36035e06f5 /dev-libs/json-c/json-c-0.12.1.ebuild | |
| parent | 147352782fb78a730368e39ea714213ed4a9196c (diff) | |
| download | gentoo-9753cc23b3a49cb983d6555d2e7fb8ed39712476.tar.gz gentoo-9753cc23b3a49cb983d6555d2e7fb8ed39712476.tar.bz2 gentoo-9753cc23b3a49cb983d6555d2e7fb8ed39712476.zip | |
dev-libs/json-c: version bump to 0.12.1
Closes: https://bugs.gentoo.org/611230
Diffstat (limited to 'dev-libs/json-c/json-c-0.12.1.ebuild')
| -rw-r--r-- | dev-libs/json-c/json-c-0.12.1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/json-c/json-c-0.12.1.ebuild b/dev-libs/json-c/json-c-0.12.1.ebuild new file mode 100644 index 000000000000..28f5eeea3737 --- /dev/null +++ b/dev-libs/json-c/json-c-0.12.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools multilib-minimal ltprune + +DESCRIPTION="A JSON implementation in C" +HOMEPAGE="https://github.com/json-c/json-c/wiki" +SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc static-libs" + +src_prepare() { + default + sed -i -e "s:-Werror::" Makefile.am.inc || die + eautoreconf + + # tests break otherwise + multilib_copy_sources +} + +multilib_src_configure() { + ECONF_SOURCE=${S} econf $(use_enable static-libs static) +} + +multilib_src_test() { + export USE_VALGRIND=0 VERBOSE=1 + default +} + +multilib_src_install_all() { + use doc && HTML_DOCS=( "${S}"/doc/html/. ) + einstalldocs + + # add symlink for projects not using pkgconfig + dosym ../json-c /usr/include/json-c/json + + prune_libtool_files +} |
