diff options
author | David Seifert <soap@gentoo.org> | 2016-12-14 22:05:03 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-12-14 22:13:14 +0100 |
commit | f418f1b08caeaba7cd0fce76a9967d0934cf12ec (patch) | |
tree | 4e4f6478651d1f67b9df58d290f0beab551c132d /dev-libs/jsoncpp | |
parent | sci-physics/espresso++: remove old (diff) | |
download | gentoo-f418f1b08caeaba7cd0fce76a9967d0934cf12ec.tar.gz gentoo-f418f1b08caeaba7cd0fce76a9967d0934cf12ec.tar.bz2 gentoo-f418f1b08caeaba7cd0fce76a9967d0934cf12ec.zip |
dev-libs/jsoncpp: Version bump to 1.8.0
Gentoo-bug: 598958
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-libs/jsoncpp')
-rw-r--r-- | dev-libs/jsoncpp/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/jsoncpp/jsoncpp-1.8.0.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-libs/jsoncpp/Manifest b/dev-libs/jsoncpp/Manifest index 8902e490a890..430a57b68b9a 100644 --- a/dev-libs/jsoncpp/Manifest +++ b/dev-libs/jsoncpp/Manifest @@ -5,3 +5,4 @@ DIST jsoncpp-1.7.2.tar.gz 205391 SHA256 2179a7df19c1c6dc87e02c65b847efc914625a9b DIST jsoncpp-1.7.4.tar.gz 205752 SHA256 10dcd0677e80727e572a1e462193e51a5fde3e023b99e144b2ee1a469835f769 SHA512 e674f6f885e2aa7258d3d3d7a14ef148b5182fd883a527b3b9d75334e778142a833bbb295796af503573b9745f889b8bc496a0b2e11dce1b9cc7f079ac538bf7 WHIRLPOOL 510915e507235d2e89d0f8097336c7910af161c2f9b39eb034be429441e457db4d5d01b8e87342654a68cf5fecdfe584ff1d1ba23fabc58012d80a9bb78e4819 DIST jsoncpp-1.7.5.tar.gz 205989 SHA256 4338c6cab8af8dee6cdfd54e6218bd0533785f552c6162bb083f8dd28bf8fbbe SHA512 c8217e390d4b15e046a6f14ad54257ac8ecc13b70073a15c502b451df25c6d8bbc645ee50bb12e67433bf2c9053e2a39544d465c19124c7b882b69dd80b70ab2 WHIRLPOOL 312522ed7d8c03a50406f6a93355fab341022ef433b553f50d6d2b9e052c645361a4cea0771f1a16189921a15d025d35f0a6a5ff251d18a9ec48faa90084bb87 DIST jsoncpp-1.7.7.tar.gz 206072 SHA256 087640ebcf7fbcfe8e2717a0b9528fff89c52fcf69fa2a18cc2b538008098f97 SHA512 1b12cc497729ca447dae77f92c6a761494554021b306e8cedbea0ddf83f6569ca53380f8b53a0d4a62b5239c605328a419082e0610ca051a2957bcb7136ba644 WHIRLPOOL 4c409990aed6ae739b11b073503ccaedc655d23ecfe170f8b956a98a793c5c08a039f6930ab4c296e683d0c6fade7128773d2cd3e4e23a93aabbe7f12eafea79 +DIST jsoncpp-1.8.0.tar.gz 206659 SHA256 5deb2462cbf0c0121c9d6c9823ec72fe71417e34242e3509bc7c003d526465bc SHA512 bd0aa56827932e5b50231216c9f501da12053bf9eed6e83210b5c52afb9aff610e71995446a7e2f5f4580ff37762956a307867d3eaa1aebd6ca31e574c9e4d4c WHIRLPOOL 76bb44fc8e838a544415b802188dec19aa14cf65d41833dd7e737a8fd1e442d4566f57c505ab4a11c07a7af2f03a8053e217988882cb581b535fce55fc8e76fc diff --git a/dev-libs/jsoncpp/jsoncpp-1.8.0.ebuild b/dev-libs/jsoncpp/jsoncpp-1.8.0.ebuild new file mode 100644 index 000000000000..709201790d41 --- /dev/null +++ b/dev-libs/jsoncpp/jsoncpp-1.8.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils python-any-r1 + +DESCRIPTION="C++ JSON reader and writer" +HOMEPAGE="https://github.com/open-source-parsers/jsoncpp" +SRC_URI="https://github.com/open-source-parsers/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( public-domain MIT )" +SLOT="0/11" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc test" + +DEPEND=" + doc? ( + app-doc/doxygen + ${PYTHON_DEPS} + ) + test? ( + ${PYTHON_DEPS} + )" +RDEPEND="" + +RESTRICT="!test? ( test )" + +pkg_setup() { + if use doc || use test; then + python-any-r1_pkg_setup + fi +} + +src_configure() { + local mycmakeargs=( + -DJSONCPP_WITH_TESTS=$(usex test) + -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF + -DJSONCPP_WITH_CMAKE_PACKAGE=ON + + -DBUILD_SHARED_LIBS=ON + -DBUILD_STATIC_LIBS=OFF + + # Follow Debian, Ubuntu, Arch convention for headers location + # bug #452234 + -DCMAKE_INSTALL_INCLUDEDIR=include/jsoncpp + + # Disable implicit ccache use + -DCCACHE_FOUND=OFF + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use doc; then + "${EPYTHON}" doxybuild.py --doxygen="${EPREFIX}"/usr/bin/doxygen || die + HTML_DOCS=( dist/doxygen/jsoncpp*/. ) + fi +} + +src_test() { + emake -C "${BUILD_DIR}" jsoncpp_check +} |