summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2016-05-02 17:09:40 +0200
committerDavide Pesavento <pesa@gentoo.org>2016-05-02 17:10:04 +0200
commitaf3eca38517b6fce72eb01850b1791323f8a8e24 (patch)
tree5845088c727098ac7d8e0fe2fb5ff0776f5c82e0 /dev-qt/qtwebsockets/qtwebsockets-5.6.0-r1.ebuild
parentdev-lang/rakudo: Bump (diff)
downloadgentoo-af3eca38517b6fce72eb01850b1791323f8a8e24.tar.gz
gentoo-af3eca38517b6fce72eb01850b1791323f8a8e24.tar.bz2
gentoo-af3eca38517b6fce72eb01850b1791323f8a8e24.zip
dev-qt/qtwebsockets: fix automagic dependency on qtnetwork[ssl]
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-qt/qtwebsockets/qtwebsockets-5.6.0-r1.ebuild')
-rw-r--r--dev-qt/qtwebsockets/qtwebsockets-5.6.0-r1.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-qt/qtwebsockets/qtwebsockets-5.6.0-r1.ebuild b/dev-qt/qtwebsockets/qtwebsockets-5.6.0-r1.ebuild
new file mode 100644
index 00000000000..26a4d9278f1
--- /dev/null
+++ b/dev-qt/qtwebsockets/qtwebsockets-5.6.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Implementation of the WebSocket protocol for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE="qml +ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}[ssl?]
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick src/src.pro
+
+ if ! use ssl; then
+ sed -i -e '/contains(QT_CONFIG.*ssl)/ c\false{' \
+ src/websockets/websockets.pro || die
+ fi
+
+ qt5-build_src_prepare
+}