commit:     d72e05e650250612ef0c4b28e5b05f03b8614cb1
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 22 11:55:46 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Dec 22 11:56:01 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d72e05e6

net-p2p/qbittorrent: improve Werror handling

Closes: https://bugs.gentoo.org/641010
Package-Manager: Portage-2.3.14, Repoman-2.3.6

 net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild | 7 +++++++
 net-p2p/qbittorrent/qbittorrent-4.0.3.ebuild  | 4 ++--
 net-p2p/qbittorrent/qbittorrent-9999.ebuild   | 2 +-
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild 
b/net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild
index ddac9c49ab6..6511503962b 100644
--- a/net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild
+++ b/net-p2p/qbittorrent/qbittorrent-3.3.16.ebuild
@@ -45,6 +45,13 @@ DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO )
 
 PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
 
+src_prepare() {
+       cmake-utils_src_prepare
+
+       # bug 641010
+       sed -i -e "s/-Werror //" cmake/Modules/MacroQbtCompilerSettings.cmake 
|| die
+}
+
 src_configure() {
        local mycmakeargs=(
                -DSYSTEM_QTSINGLEAPPLICATION=ON

diff --git a/net-p2p/qbittorrent/qbittorrent-4.0.3.ebuild 
b/net-p2p/qbittorrent/qbittorrent-4.0.3.ebuild
index 7316bdc0178..9ebc91b0bdb 100644
--- a/net-p2p/qbittorrent/qbittorrent-4.0.3.ebuild
+++ b/net-p2p/qbittorrent/qbittorrent-4.0.3.ebuild
@@ -44,10 +44,10 @@ DEPEND="${RDEPEND}
 DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO )
 
 src_prepare() {
-       default
+       cmake-utils_src_prepare
 
        # bug 641382
-       sed -i -e "s/-Werror //" cmake/Modules/MacroQbtCompilerSettings.cmake 
|| die
+       sed -i -e "s/-Werror  //" cmake/Modules/MacroQbtCompilerSettings.cmake 
|| die
 }
 
 src_configure() {

diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild 
b/net-p2p/qbittorrent/qbittorrent-9999.ebuild
index 26971a13117..9ebc91b0bdb 100644
--- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild
+++ b/net-p2p/qbittorrent/qbittorrent-9999.ebuild
@@ -44,7 +44,7 @@ DEPEND="${RDEPEND}
 DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO )
 
 src_prepare() {
-       default
+       cmake-utils_src_prepare
 
        # bug 641382
        sed -i -e "s/-Werror  //" cmake/Modules/MacroQbtCompilerSettings.cmake 
|| die

Reply via email to