summaryrefslogtreecommitdiff
path: root/dev-cpp/libjson-rpc-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/libjson-rpc-cpp')
-rw-r--r--dev-cpp/libjson-rpc-cpp/Manifest2
-rw-r--r--dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-1.1.0.ebuild62
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-cpp/libjson-rpc-cpp/Manifest b/dev-cpp/libjson-rpc-cpp/Manifest
index 3500133683fb..cd42c2d18f98 100644
--- a/dev-cpp/libjson-rpc-cpp/Manifest
+++ b/dev-cpp/libjson-rpc-cpp/Manifest
@@ -1,4 +1,6 @@
DIST libjson-rpc-cpp-0.7.0.tar.gz 141665 BLAKE2B d52a5062fb16d2c356b1b6f8bd3576694bbaaf4908d3979c51e99ae31da2e503c90132674a43fcb1010ad3b5e04f839be6770225419879e5cf0f362f2b12ebf6 SHA512 f7547271040382cd2ac96a31eb81d891b016e4d0c33a3ba3e659c2de2e55136e7e243dd2d959c6d8a64ccba7ebd9f9e28070d710a6770c29f81c0750ffad9e3a
+DIST libjson-rpc-cpp-1.1.0.tar.gz 179442 BLAKE2B cfbfe703d1a3d4ccaf6d4d475a7c1686c8f7afc28b025d6fd3bfebdc41cff2b944e6600e68073c1b7e7c0a2463cbf6e9724cf618c5d481bf7a4600019b529922 SHA512 bf34eedb196b1e214292976036a00e933f8a9b4325441ea2e4ae049a7c818014a68dd9d2f22d01588f5e6d1e9f465c73a133b0fd8282f8cf78a05a493f4c461b
EBUILD libjson-rpc-cpp-0.7.0.ebuild 1260 BLAKE2B 1bc1c66c3c284cf7f7791cfc1781fda59c67a1c05bb887a8d77567a0a8c1f5952399a9561845c7b796d39ffb2dfb7337ce0b32d549f764e47a5c57a1fc423a2d SHA512 f25455c4dff23e450c32e1cec0f6d31a8eb132167a2b5a68ae5947731aaeaaa04f1ddc5a02fa03101e489a6665971583bab15e86e264ba0dbb1aea38da362e37
+EBUILD libjson-rpc-cpp-1.1.0.ebuild 1440 BLAKE2B f418f459f14f1fb3cc8a5be75a3216741f2a1ffc8cd6fee9c18f06827efb12ce9ed55bfc0af3cb1fdda6e7efe3e6d4f8aeffec4e227df5d4093169f3655ac9d2 SHA512 dad75bc7e90fc0d199af731618374cf652d507997c7c4e5b9b5eeea00271048595c2787d05d14ef5fbb33218643f8598e178e8d9526b6fc1d039a11b0ffe844e
EBUILD libjson-rpc-cpp-9999.ebuild 1440 BLAKE2B a72317cc8b210861449d86bdbb8af6ea7e8b7065adf2c7e9e9b6ae64516191b135e491459ad6761703b47bb6b1e4edf7a6100dcaf12b23265b8f8442b46a8085 SHA512 64fab7b67c3758981d3a7fcd65087dc4c7eecb351c6ff11edbe03ebcef7c6e1c819a0a34573fa3c0ee5fa01f9d3be143c72b917d08abf1d0a4f60b10f5c465c1
MISC metadata.xml 906 BLAKE2B fe2f020896cc35c9c27fe082bf7a844086445b8943690c35de3de091041473b0a211370e335908470faf1bfdf0fb64b4b6aee75dfd527683d173c3e9fc8d9cf9 SHA512 037b5942cdde13abab5f527cdb8fced709b88bbebb754497279b1d60e7c90789115ecc2f579c38111c2acf32a3baf2643b470e55deb9de36bc498e9665091a83
diff --git a/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-1.1.0.ebuild b/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-1.1.0.ebuild
new file mode 100644
index 000000000000..c43516bb1916
--- /dev/null
+++ b/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-1.1.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="JSON-RPC (1.0 & 2.0) framework for C++"
+HOMEPAGE="https://github.com/cinemast/libjson-rpc-cpp"
+SRC_URI="https://github.com/cinemast/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +http-client +http-server redis-client redis-server +stubgen test"
+
+RDEPEND="
+ dev-libs/jsoncpp:=
+ http-client? ( net-misc/curl:= )
+ http-server? ( net-libs/libmicrohttpd:= )
+ redis-client? ( dev-libs/hiredis:= )
+ redis-server? ( dev-libs/hiredis:= )
+ stubgen? ( dev-libs/argtable:= )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-cpp/catch )"
+
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DHTTP_CLIENT=$(usex http-client)
+ -DHTTP_SERVER=$(usex http-server)
+ -DREDIS_CLIENT=$(usex redis-client)
+ -DREDIS_SERVER=$(usex redis-server)
+ # they are not installed
+ -DCOMPILE_EXAMPLES=OFF
+ -DCOMPILE_STUBGEN=$(usex stubgen)
+ -DCOMPILE_TESTS=$(usex test)
+ -DCATCH_INCLUDE_DIR="${EPREFIX}/usr/include/catch"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ use doc && emake -C "${BUILD_DIR}" doc
+}
+
+src_test() {
+ # Tests fail randomly when run in parallel
+ local MAKEOPTS=-j1
+ cmake-utils_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use doc && dodoc -r "${BUILD_DIR}"/doc/html
+}