summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-02-28 00:17:19 +0000
committerMike Frysinger <vapier@gentoo.org>2014-02-28 00:17:19 +0000
commit20bafb52c048504d73415c2ea511da0d58b1079f (patch)
tree3f024e261f766a935f62a873ba09c2fbcc781859 /dev-libs
parentVersion bump. (diff)
downloadgentoo-2-20bafb52c048504d73415c2ea511da0d58b1079f.tar.gz
gentoo-2-20bafb52c048504d73415c2ea511da0d58b1079f.tar.bz2
gentoo-2-20bafb52c048504d73415c2ea511da0d58b1079f.zip
Version bump #499612 by Zoltan Kovacs.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/jsoncpp/ChangeLog9
-rw-r--r--dev-libs/jsoncpp/jsoncpp-0.6.0_rc2.ebuild61
2 files changed, 68 insertions, 2 deletions
diff --git a/dev-libs/jsoncpp/ChangeLog b/dev-libs/jsoncpp/ChangeLog
index fbf1ca2db69c..1e36e679e128 100644
--- a/dev-libs/jsoncpp/ChangeLog
+++ b/dev-libs/jsoncpp/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/jsoncpp
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/jsoncpp/ChangeLog,v 1.9 2013/11/17 23:42:25 phajdan.jr Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/jsoncpp/ChangeLog,v 1.10 2014/02/28 00:17:19 vapier Exp $
+
+*jsoncpp-0.6.0_rc2 (28 Feb 2014)
+
+ 28 Feb 2014; Mike Frysinger <vapier@gentoo.org> +jsoncpp-0.6.0_rc2.ebuild:
+ Version bump #499612 by Zoltan Kovacs.
17 Nov 2013; Pawel Hajdan jr <phajdan.jr@gentoo.org> -jsoncpp-0.5.0.ebuild,
jsoncpp-0.5.0-r1.ebuild:
diff --git a/dev-libs/jsoncpp/jsoncpp-0.6.0_rc2.ebuild b/dev-libs/jsoncpp/jsoncpp-0.6.0_rc2.ebuild
new file mode 100644
index 000000000000..94a234e98e2b
--- /dev/null
+++ b/dev-libs/jsoncpp/jsoncpp-0.6.0_rc2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/jsoncpp/jsoncpp-0.6.0_rc2.ebuild,v 1.1 2014/02/28 00:17:19 vapier Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit toolchain-funcs python-any-r1
+
+MY_P="${PN}-src-${PV/_/-}"
+
+DESCRIPTION="C++ JSON reader and writer"
+HOMEPAGE="http://jsoncpp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc"
+
+DEPEND="
+ doc? (
+ app-doc/doxygen
+ ${PYTHON_DEPS}
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ use doc && python-any-r1_pkg_setup
+}
+
+cxx_wrapper() {
+ set -- $(tc-getCXX) ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS} "$@"
+ echo "$@"
+ "$@"
+}
+
+src_compile() {
+ # This is the soname that other distros use.
+ local soname="libjsoncpp.so.0"
+
+ cxx_wrapper src/lib_json/*.cpp -Iinclude -shared -fPIC \
+ -Wl,-soname,${soname} -o libjsoncpp.so.${PV%_*} || die
+ ln -sf libjsoncpp.so.${PV%_*} ${soname} || die
+ ln -sf ${soname} libjsoncpp.so || die
+}
+
+src_install() {
+ # Follow Debian, Ubuntu, Arch convention for headers location, bug #452234 .
+ insinto /usr/include/jsoncpp
+ doins -r include/json
+
+ dolib.so libjsoncpp.so*
+
+ if use doc; then
+ ${EPYTHON} doxybuild.py --doxygen=/usr/bin/doxygen || die
+ dohtml dist/doxygen/jsoncpp*/*
+ fi
+}