diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-05-24 11:48:38 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-05-24 11:50:47 +0200 |
commit | f55edf40409c43965aaf040a5e1a219522bb8094 (patch) | |
tree | cd8e42e7a15adc72a2682180d11e9c7cf797cc22 /dev-libs | |
parent | dev-libs/jsoncpp: Clean up old versions (diff) | |
download | gentoo-f55edf40409c43965aaf040a5e1a219522bb8094.tar.gz gentoo-f55edf40409c43965aaf040a5e1a219522bb8094.tar.bz2 gentoo-f55edf40409c43965aaf040a5e1a219522bb8094.zip |
dev-libs/jsoncpp: Bump to 1.7.2 and 0.10.6
1.7* involves mostly gcc-6 fixes. 0.10* catches late fixes. Bump both
ebuilds to EAPI 6. Disable building static libraries. Work-around
implicit ccache use that upstream added in 1.7*.
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/jsoncpp/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/jsoncpp/jsoncpp-0.10.6.ebuild | 70 | ||||
-rw-r--r-- | dev-libs/jsoncpp/jsoncpp-1.7.2.ebuild | 72 |
3 files changed, 144 insertions, 0 deletions
diff --git a/dev-libs/jsoncpp/Manifest b/dev-libs/jsoncpp/Manifest index a13d090c5952..17d417dd076c 100644 --- a/dev-libs/jsoncpp/Manifest +++ b/dev-libs/jsoncpp/Manifest @@ -1,2 +1,4 @@ DIST jsoncpp-0.10.2.tar.gz 197188 SHA256 37bb72615018522bb78a5eb425b36dfc79e049c1d5471b724f7ccadeac0ed479 SHA512 8e451e3ba37094445ab098d5b9f7236ac84e2f15d98e2039c565e609b757c2383e91850bd86aca507ca5cd2f733fedc484bb7760eeeee7fe9bace71d97ae0d2e WHIRLPOOL 85f9861e77a7c3cecd5e859adde832b7f12a0c5eae04ecbee203e5d8c4b8b13ba034b4aa6b78a3b981aa392a4ea6a26c2e1d411ae97768d7ed422f71ec2e5d79 +DIST jsoncpp-0.10.6.tar.gz 200213 SHA256 7c285fc40ad0c113e436a1271c4e38b5017b5c7782c306e90be9d6b2ffa90212 SHA512 9fcf584d14c31fc135c9789b36c02c5985daecc7396eb21912d5ea3e757d1fd0d516d7a060e14b4955c73f6b4aa256529281da908726919236fa65310de9f1aa WHIRLPOOL f06b804045250b205f8ca1ed6fd5504cb5e18243df16c9c255310a631d6d88f78bfd8c59e31360c1e50ccabcf5b295a095a80cdbb4e0ca5a0da54a64ff8e7919 DIST jsoncpp-1.6.5.tar.gz 200507 SHA256 a2b121eaff56ec88cfd034d17685821a908d0d87bc319329b04f91a6552c1ac2 SHA512 589153d525ffde15e10f1ef6907c6b5d0f62a41c8cebdc12fe2bc4d989bcd861cdac79526de2f51872c0a17e574bf0fd8c913f0aa301c184efa1e3f2fb2b1955 WHIRLPOOL a1253362a0bdd8a6d05e84fb7d7de5b79aec0cadf5a03a8c2be8a6e8062e6ae231e5b97cd99ee9607c2c546afa58dabb183167c6a74b409d32485b45c7d3e9ae +DIST jsoncpp-1.7.2.tar.gz 205391 SHA256 2179a7df19c1c6dc87e02c65b847efc914625a9b87df3e443d9610fc70c0f557 SHA512 32702147229ea7a3679654325572c38f4188f258ab6ac21f9e04059d53ef2a7cd0542ec4ec3b0e7b9089acd2b7bce389f16b9ff24b2e63e0ba2a5bcd46bab766 WHIRLPOOL a4c71f4c8cd6468f8326120bd106b50c563ab1b7a10df4874d96dd2c03f115645f1016c4e2e52f8056f58f7a40bd6bfc2a75e6aca896bdf98652b1052fde1fd8 diff --git a/dev-libs/jsoncpp/jsoncpp-0.10.6.ebuild b/dev-libs/jsoncpp/jsoncpp-0.10.6.ebuild new file mode 100644 index 000000000000..e88a1c837da1 --- /dev/null +++ b/dev-libs/jsoncpp/jsoncpp-0.10.6.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 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" +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="" + +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 + -DINCLUDE_INSTALL_DIR="${EPREFIX}"/usr/include/jsoncpp + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use doc; then + "${EPYTHON}" doxybuild.py --doxygen=/usr/bin/doxygen || die + fi +} + +src_test() { + emake -C "${BUILD_DIR}" jsoncpp_check +} + +src_install() { + cmake-utils_src_install + + if use doc; then + docinto html + dodoc -r dist/doxygen/jsoncpp*/. + fi +} diff --git a/dev-libs/jsoncpp/jsoncpp-1.7.2.ebuild b/dev-libs/jsoncpp/jsoncpp-1.7.2.ebuild new file mode 100644 index 000000000000..a82892a0e628 --- /dev/null +++ b/dev-libs/jsoncpp/jsoncpp-1.7.2.ebuild @@ -0,0 +1,72 @@ +# 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/1" +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="" + +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 + -DINCLUDE_INSTALL_DIR="${EPREFIX}"/usr/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=/usr/bin/doxygen || die + fi +} + +src_test() { + emake -C "${BUILD_DIR}" jsoncpp_check +} + +src_install() { + cmake-utils_src_install + + if use doc; then + docinto html + dodoc -r dist/doxygen/jsoncpp*/. + fi +} |