Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rapidjson/
Date: Sat, 01 Apr 2017 10:21:09
Message-Id: 1491042041.bb5ceff1f0b6a70c7e01ca566f14c33406556578.soap@gentoo
1 commit: bb5ceff1f0b6a70c7e01ca566f14c33406556578
2 Author: Craig Andrews <candrews <AT> integralblue <DOT> com>
3 AuthorDate: Tue Mar 28 03:09:35 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 1 10:20:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb5ceff1
7
8 dev-libs/rapidjson: A fast JSON parser/generator for C++ with both SAX/DOM style API
9
10 Gentoo-bug: 614100
11 Package-Manager: Portage-2.3.5, Repoman-2.3.2
12 Closes: https://github.com/gentoo/gentoo/pull/4310
13
14 dev-libs/rapidjson/Manifest | 1 +
15 dev-libs/rapidjson/metadata.xml | 16 +++++++++++++
16 dev-libs/rapidjson/rapidjson-1.1.0.ebuild | 40 +++++++++++++++++++++++++++++++
17 dev-libs/rapidjson/rapidjson-9999.ebuild | 40 +++++++++++++++++++++++++++++++
18 4 files changed, 97 insertions(+)
19
20 diff --git a/dev-libs/rapidjson/Manifest b/dev-libs/rapidjson/Manifest
21 new file mode 100644
22 index 00000000000..f6b84ff6f2b
23 --- /dev/null
24 +++ b/dev-libs/rapidjson/Manifest
25 @@ -0,0 +1 @@
26 +DIST rapidjson-1.1.0.tar.gz 1019402 SHA256 bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e SHA512 2e82a4bddcd6c4669541f5945c2d240fb1b4fdd6e239200246d3dd50ce98733f0a4f6d3daa56f865d8c88779c036099c52a9ae85d47ad263686b68a88d832dff WHIRLPOOL 01863b2fd4270776bea95530a15a815a9b27f8157250d59889351b154fcc591643c6f1071371bf667935833229c93ba8c2de803d9263491d79d73594c05003aa
27
28 diff --git a/dev-libs/rapidjson/metadata.xml b/dev-libs/rapidjson/metadata.xml
29 new file mode 100644
30 index 00000000000..8d243cccf84
31 --- /dev/null
32 +++ b/dev-libs/rapidjson/metadata.xml
33 @@ -0,0 +1,16 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>candrews@××××××××××××.com</email>
39 + <name>Craig Andrews</name>
40 + </maintainer>
41 + <maintainer type="project">
42 + <email>proxy-maint@g.o</email>
43 + <name>Proxy Maintainers</name>
44 + </maintainer>
45 + <upstream>
46 + <bugs-to>https://github.com/miloyip/rapidjson/issues</bugs-to>
47 + <remote-id type="github">miloyip/rapidjson</remote-id>
48 + </upstream>
49 +</pkgmetadata>
50
51 diff --git a/dev-libs/rapidjson/rapidjson-1.1.0.ebuild b/dev-libs/rapidjson/rapidjson-1.1.0.ebuild
52 new file mode 100644
53 index 00000000000..8f3a254b791
54 --- /dev/null
55 +++ b/dev-libs/rapidjson/rapidjson-1.1.0.ebuild
56 @@ -0,0 +1,40 @@
57 +# Copyright 1999-2017 Gentoo Foundation
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=6
61 +
62 +inherit cmake-utils
63 +
64 +DESCRIPTION="A fast JSON parser/generator for C++ with both SAX/DOM style API"
65 +HOMEPAGE="http://rapidjson.org/"
66 +
67 +LICENSE="MIT"
68 +IUSE="doc examples test"
69 +SLOT="0"
70 +
71 +if [[ ${PV} == *9999 ]] ; then
72 + EGIT_REPO_URI="git://github.com/miloyip/rapidjson.git"
73 + inherit git-r3
74 +else
75 + SRC_URI="https://github.com/miloyip/rapidjson/archive/v${PV}.tar.gz -> ${P}.tar.gz"
76 + KEYWORDS="~amd64 ~x86"
77 + S="${WORKDIR}/rapidjson-${PV}"
78 +fi
79 +
80 +DEPEND="
81 + doc? ( app-doc/doxygen )
82 + test? (
83 + dev-cpp/gtest
84 + dev-util/valgrind
85 + )"
86 +RDEPEND=""
87 +
88 +src_configure() {
89 + local mycmakeargs=(
90 + -DRAPIDJSON_BUILD_DOC=$(usex doc)
91 + -DRAPIDJSON_BUILD_EXAMPLES=$(usex examples)
92 + -DRAPIDJSON_BUILD_TESTS=$(usex test)
93 + -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
94 + )
95 + cmake-utils_src_configure
96 +}
97
98 diff --git a/dev-libs/rapidjson/rapidjson-9999.ebuild b/dev-libs/rapidjson/rapidjson-9999.ebuild
99 new file mode 100644
100 index 00000000000..8f3a254b791
101 --- /dev/null
102 +++ b/dev-libs/rapidjson/rapidjson-9999.ebuild
103 @@ -0,0 +1,40 @@
104 +# Copyright 1999-2017 Gentoo Foundation
105 +# Distributed under the terms of the GNU General Public License v2
106 +
107 +EAPI=6
108 +
109 +inherit cmake-utils
110 +
111 +DESCRIPTION="A fast JSON parser/generator for C++ with both SAX/DOM style API"
112 +HOMEPAGE="http://rapidjson.org/"
113 +
114 +LICENSE="MIT"
115 +IUSE="doc examples test"
116 +SLOT="0"
117 +
118 +if [[ ${PV} == *9999 ]] ; then
119 + EGIT_REPO_URI="git://github.com/miloyip/rapidjson.git"
120 + inherit git-r3
121 +else
122 + SRC_URI="https://github.com/miloyip/rapidjson/archive/v${PV}.tar.gz -> ${P}.tar.gz"
123 + KEYWORDS="~amd64 ~x86"
124 + S="${WORKDIR}/rapidjson-${PV}"
125 +fi
126 +
127 +DEPEND="
128 + doc? ( app-doc/doxygen )
129 + test? (
130 + dev-cpp/gtest
131 + dev-util/valgrind
132 + )"
133 +RDEPEND=""
134 +
135 +src_configure() {
136 + local mycmakeargs=(
137 + -DRAPIDJSON_BUILD_DOC=$(usex doc)
138 + -DRAPIDJSON_BUILD_EXAMPLES=$(usex examples)
139 + -DRAPIDJSON_BUILD_TESTS=$(usex test)
140 + -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
141 + )
142 + cmake-utils_src_configure
143 +}