diff options
| author | Thomas Deutschmann <whissi@gentoo.org> | 2017-12-18 19:11:41 +0100 |
|---|---|---|
| committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-12-18 19:15:11 +0100 |
| commit | 8852bf82bb74d8e3d2fea6c961c4f8f7812fb07e (patch) | |
| tree | 57ed6ab8a5a3577ec22960b0025046ca30412226 /dev-libs/json-c/json-c-0.13.ebuild | |
| parent | 21f375df742472e4e4fa17f58de3ba16a1aaa813 (diff) | |
| download | gentoo-8852bf82bb74d8e3d2fea6c961c4f8f7812fb07e.tar.gz gentoo-8852bf82bb74d8e3d2fea6c961c4f8f7812fb07e.tar.bz2 gentoo-8852bf82bb74d8e3d2fea6c961c4f8f7812fb07e.zip | |
dev-libs/json-c: Bump to v0.13
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-libs/json-c/json-c-0.13.ebuild')
| -rw-r--r-- | dev-libs/json-c/json-c-0.13.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/json-c/json-c-0.13.ebuild b/dev-libs/json-c/json-c-0.13.ebuild new file mode 100644 index 000000000000..4f5ce9ee2735 --- /dev/null +++ b/dev-libs/json-c/json-c-0.13.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/3" +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::" configure.ac || 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 +} |
