dev-cpp/libjson-rpc-cpp: Add USE flags for Redis in -9999

This commit is contained in:
Michał Górny
2017-08-28 20:20:19 +02:00
parent 54f7581e46
commit 95aff96d4a
2 changed files with 7 additions and 1 deletions
@@ -14,12 +14,14 @@ SRC_URI=""
LICENSE="MIT"
SLOT="0/1"
KEYWORDS=""
IUSE="doc +http-client +http-server +stubgen test"
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 )
@@ -31,6 +33,8 @@ 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)
+2
View File
@@ -8,6 +8,8 @@
<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>