Gentoo Archives: gentoo-commits

From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/jsoncpp: ChangeLog jsoncpp-0.5.0-r1.ebuild
Date: Thu, 28 Feb 2013 20:04:38
Message-Id: 20130228200434.C69BD2171D@flycatcher.gentoo.org
1 phajdan.jr 13/02/28 20:04:34
2
3 Modified: ChangeLog
4 Added: jsoncpp-0.5.0-r1.ebuild
5 Log:
6 Version bump to avoid file collisions, bug #452234.
7
8 (Portage version: 2.1.11.50/cvs/Linux i686, signed Manifest commit with key 30427902)
9
10 Revision Changes Path
11 1.6 dev-libs/jsoncpp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/jsoncpp/ChangeLog?rev=1.6&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/jsoncpp/ChangeLog?rev=1.6&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/jsoncpp/ChangeLog?r1=1.5&r2=1.6
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/jsoncpp/ChangeLog,v
20 retrieving revision 1.5
21 retrieving revision 1.6
22 diff -u -r1.5 -r1.6
23 --- ChangeLog 25 Feb 2013 21:05:18 -0000 1.5
24 +++ ChangeLog 28 Feb 2013 20:04:34 -0000 1.6
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/jsoncpp
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/jsoncpp/ChangeLog,v 1.5 2013/02/25 21:05:18 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/jsoncpp/ChangeLog,v 1.6 2013/02/28 20:04:34 phajdan.jr Exp $
30 +
31 +*jsoncpp-0.5.0-r1 (28 Feb 2013)
32 +
33 + 28 Feb 2013; Pawel Hajdan jr <phajdan.jr@g.o>
34 + +jsoncpp-0.5.0-r1.ebuild:
35 + Version bump to avoid file collisions, bug #452234.
36
37 25 Feb 2013; Pawel Hajdan jr <phajdan.jr@g.o> jsoncpp-0.5.0.ebuild:
38 Keyword ~arm
39
40
41
42 1.1 dev-libs/jsoncpp/jsoncpp-0.5.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/jsoncpp/jsoncpp-0.5.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/jsoncpp/jsoncpp-0.5.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: jsoncpp-0.5.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-libs/jsoncpp/jsoncpp-0.5.0-r1.ebuild,v 1.1 2013/02/28 20:04:34 phajdan.jr Exp $
52
53 EAPI=5
54 PYTHON_COMPAT=( python2_7 )
55
56 inherit multilib toolchain-funcs python-any-r1
57
58 MY_P="${PN}-src-${PV}"
59
60 DESCRIPTION="C++ JSON reader and writer"
61 HOMEPAGE="http://jsoncpp.sourceforge.net/"
62 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
63 LICENSE="public-domain"
64
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~x86"
67 IUSE="doc"
68
69 DEPEND="
70 doc? (
71 app-doc/doxygen
72 ${PYTHON_DEPS}
73 )"
74 RDEPEND=""
75
76 S="${WORKDIR}/${MY_P}"
77
78 cxx_wrapper() {
79 set -- $(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} "$@"
80 echo "$@"
81 "$@"
82 }
83
84 src_compile() {
85 soname=libjsoncpp.so.${PV}
86 cxx_wrapper src/lib_json/*.cpp -Iinclude -shared -fPIC \
87 -Wl,-soname,${soname} -o ${soname} || die
88 }
89
90 src_install() {
91 # Follow Debian, Ubuntu, Arch convention for headers location, bug #452234 .
92 insinto /usr/include/jsoncpp
93 doins -r include/json
94
95 dolib ${soname}
96 dosym ${soname} /usr/$(get_libdir)/libjsoncpp.so
97
98 if use doc; then
99 ${EPYTHON} doxybuild.py --doxygen=/usr/bin/doxygen || die
100 dohtml dist/doxygen/jsoncpp*/*
101 fi
102 }