summaryrefslogtreecommitdiff
path: root/dev-cpp/libjson-rpc-cpp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-cpp/libjson-rpc-cpp
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-cpp/libjson-rpc-cpp')
-rw-r--r--dev-cpp/libjson-rpc-cpp/Manifest6
-rw-r--r--dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-0.7.0.ebuild58
-rw-r--r--dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-9999.ebuild64
-rw-r--r--dev-cpp/libjson-rpc-cpp/metadata.xml18
4 files changed, 146 insertions, 0 deletions
diff --git a/dev-cpp/libjson-rpc-cpp/Manifest b/dev-cpp/libjson-rpc-cpp/Manifest
new file mode 100644
index 000000000000..f271efcfb07c
--- /dev/null
+++ b/dev-cpp/libjson-rpc-cpp/Manifest
@@ -0,0 +1,6 @@
+DIST libjson-rpc-cpp-0.7.0.tar.gz 141665 SHA256 669c2259909f11a8c196923a910f9a16a8225ecc14e6c30e2bcb712bab9097eb SHA512 f7547271040382cd2ac96a31eb81d891b016e4d0c33a3ba3e659c2de2e55136e7e243dd2d959c6d8a64ccba7ebd9f9e28070d710a6770c29f81c0750ffad9e3a WHIRLPOOL b54121c95f47654a36623c4267a22f4d563bc6f863b2df205b1ea4142a8230e64e5fc0725f8e8cef7d79abdfdad5de118464993b6b503ff2cec9f4e077014201
+EBUILD libjson-rpc-cpp-0.7.0.ebuild 1260 SHA256 2560be6e445854cbfc37594381859229c27fac1e114a7b85394f0276d3222a0d SHA512 f25455c4dff23e450c32e1cec0f6d31a8eb132167a2b5a68ae5947731aaeaaa04f1ddc5a02fa03101e489a6665971583bab15e86e264ba0dbb1aea38da362e37 WHIRLPOOL e1d1f2c165fce427beb25f7bd84ee73c3a7665802e28d436ed1d7859dc11fab20681ed8d0aa8e85d8fac9d256ae9d614c9c9459d028fe3e2be5712970d78bf96
+EBUILD libjson-rpc-cpp-9999.ebuild 1440 SHA256 8879468e7573a75f7178ae1f97fb3253dfa5cb2353191ff7d9a3062ae64520b9 SHA512 64fab7b67c3758981d3a7fcd65087dc4c7eecb351c6ff11edbe03ebcef7c6e1c819a0a34573fa3c0ee5fa01f9d3be143c72b917d08abf1d0a4f60b10f5c465c1 WHIRLPOOL bc21c0715ee014c7f965252dc8844ccef32f232f4630751d16413565c47e70586dea296acf96467d7c923852561946c3c76d77727cf538934d5a22c93d163f9f
+MISC ChangeLog 3297 SHA256 81775294e95fb821596076889ab30aa11904a83165b2dd10093747c45a531439 SHA512 44c9c2f1ec2b2d97d963b1267e810b937da7f798a21da1f5a1a48602c1f71a5723b8dc040a328c1d4dc222f4b9910a383de5abd27d7b61ac22b189640ff404b4 WHIRLPOOL 2d85a09d415213d7cce6b17686c7d4727b5b19699c038defce433e311525479db02bd8dc8fb814d47484f6525c1d26fa624b648fa39e4651e818179d0452e3b3
+MISC ChangeLog-2015 878 SHA256 e48c9cba9d529a5d02c5966246fd7dbcb05cc13e8d10811bb0284a9ac9cb1ae9 SHA512 a09f3db1b68f542635a0cc7bcc504def8f95e7b6107f6c8af9ec8d31f210a3721f50016904c65fa7f3c2dc12ad192495f777d6da54f44a70b4fbc01819c76b61 WHIRLPOOL d9afd55c7a6dbe130f99d3f51f3ef073f037dea2d50d00b217c3d6688076b139f25f64a92546c90ff4b53e4f35507a36194a57009bd4fafd3592eb480351e0ce
+MISC metadata.xml 906 SHA256 90b48048844a5bcc2cf7423d6d42f2ee7bdac79e9a5ca3a917d6d8649b58a848 SHA512 037b5942cdde13abab5f527cdb8fced709b88bbebb754497279b1d60e7c90789115ecc2f579c38111c2acf32a3baf2643b470e55deb9de36bc498e9665091a83 WHIRLPOOL d8d0adbd49a5124d55136fd31742a33c9c0e6893370e35876152e4785779daed3287a39bf9a602f5d35006451a34f6cb90f5f90ea388c6c60535068f24f38dc8
diff --git a/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-0.7.0.ebuild b/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-0.7.0.ebuild
new file mode 100644
index 000000000000..26d68e2e5f1b
--- /dev/null
+++ b/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-0.7.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 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"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +http-client +http-server +stubgen test"
+
+RDEPEND="
+ dev-libs/jsoncpp:=
+ http-client? ( net-misc/curl:= )
+ http-server? ( net-libs/libmicrohttpd:= )
+ 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)
+ # 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
+}
diff --git a/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-9999.ebuild b/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-9999.ebuild
new file mode 100644
index 000000000000..7c78e3d2afc4
--- /dev/null
+++ b/dev-cpp/libjson-rpc-cpp/libjson-rpc-cpp-9999.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/cinemast/${PN}.git"
+EGIT_BRANCH=develop
+inherit cmake-utils git-r3
+
+DESCRIPTION="JSON-RPC (1.0 & 2.0) framework for C++"
+HOMEPAGE="https://github.com/cinemast/libjson-rpc-cpp"
+SRC_URI=""
+
+LICENSE="MIT"
+SLOT="0/1"
+KEYWORDS=""
+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
+}
diff --git a/dev-cpp/libjson-rpc-cpp/metadata.xml b/dev-cpp/libjson-rpc-cpp/metadata.xml
new file mode 100644
index 000000000000..b7a3bb5af8af
--- /dev/null
+++ b/dev-cpp/libjson-rpc-cpp/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <use>
+ <flag name="http-client">Build support for HTTP client using <pkg>net-misc/curl</pkg></flag>
+ <flag name="http-server">Build support for HTTP server using <pkg>net-libs/libmicrohttpd</pkg></flag>
+ <flag name="redis-client">Build support for Redis client using <pkg>dev-libs/hiredis</pkg></flag>
+ <flag name="redis-server">Build support for Redis server using <pkg>dev-libs/hiredis</pkg></flag>
+ <flag name="stubgen">Build header stub code generator (needed for development and when pregenerated headers are not bundled)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">cinemast/libjson-rpc-cpp</remote-id>
+ </upstream>
+</pkgmetadata>