Skip to content

Commit

Permalink
dev-qt/qtwebsockets: fix automagic dependency on qtnetwork[ssl]
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
  • Loading branch information
Pesa committed May 2, 2016
1 parent ff342d8 commit af3eca3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand All @@ -11,11 +11,11 @@ if [[ ${QT5_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
fi

IUSE="qml"
IUSE="qml +ssl"

DEPEND="
~dev-qt/qtcore-${PV}
~dev-qt/qtnetwork-${PV}
~dev-qt/qtnetwork-${PV}[ssl?]
qml? ( ~dev-qt/qtdeclarative-${PV} )
"
Expand All @@ -24,5 +24,10 @@ 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
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ if [[ ${QT5_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
fi

IUSE="qml"
IUSE="qml +ssl"

DEPEND="
~dev-qt/qtcore-${PV}
~dev-qt/qtnetwork-${PV}
~dev-qt/qtnetwork-${PV}[ssl?]
qml? ( ~dev-qt/qtdeclarative-${PV} )
"
Expand All @@ -24,5 +24,10 @@ 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
}

0 comments on commit af3eca3

Please sign in to comment.