commit:     a1f42e79d8e710dcfe2c55566d0d369a51fe1e5c
Author:     Alexey Korepanov <kaikaikai <AT> yandex <DOT> ru>
AuthorDate: Fri Aug 25 22:46:37 2017 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Aug 26 02:12:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1f42e79

net-vpn/i2pd: add websocket use flag for websocket server

 net-vpn/i2pd/i2pd-2.15.0.ebuild | 4 +++-
 net-vpn/i2pd/metadata.xml       | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/net-vpn/i2pd/i2pd-2.15.0.ebuild b/net-vpn/i2pd/i2pd-2.15.0.ebuild
index 752102811a0..e1cd433f275 100644
--- a/net-vpn/i2pd/i2pd-2.15.0.ebuild
+++ b/net-vpn/i2pd/i2pd-2.15.0.ebuild
@@ -10,12 +10,13 @@ 
SRC_URI="https://github.com/PurpleI2P/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86"
-IUSE="cpu_flags_x86_aes i2p-hardening libressl pch static +upnp"
+IUSE="cpu_flags_x86_aes i2p-hardening libressl pch static +upnp websocket"
 
 RDEPEND="!static? ( >=dev-libs/boost-1.49[threads]
                        !libressl? ( dev-libs/openssl:0[-bindist] )
                        libressl? ( dev-libs/libressl )
                        upnp? ( net-libs/miniupnpc )
+                       websocket? ( dev-cpp/websocketpp )
                )"
 DEPEND="${RDEPEND}
        static? ( >=dev-libs/boost-1.49[static-libs,threads]
@@ -41,6 +42,7 @@ src_configure() {
                -DWITH_PCH=$(usex pch ON OFF)
                -DWITH_STATIC=$(usex static ON OFF)
                -DWITH_UPNP=$(usex upnp ON OFF)
+               -DWITH_WEBSOCKETS=$(usex websocket ON OFF)
                -DWITH_LIBRARY=ON
                -DWITH_BINARY=ON
        )

diff --git a/net-vpn/i2pd/metadata.xml b/net-vpn/i2pd/metadata.xml
index 80f4f859ab4..3c324dceacc 100644
--- a/net-vpn/i2pd/metadata.xml
+++ b/net-vpn/i2pd/metadata.xml
@@ -21,6 +21,9 @@
                <flag name="i2p-hardening">
                        Compile with hardening on vanilla compilers/linkers
                </flag>
+               <flag name="websocket">
+                       Enable websocket server
+               </flag>
        </use>
        <upstream>
                <remote-id type="github">PurpleI2P/i2pd</remote-id>

Reply via email to