From fe8a2e39d517000c96acb39a9c3c9640eac9f7f2 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Thu, 10 Sep 2015 22:50:33 +1000 Subject: net-analyzer/nmapsi: add patch fixing build with kde-base/kdelibs-4.14.11. Gentoo-bug: 558574 Package-Manager: portage-2.2.20.1 --- .../files/nmapsi-0.4.1-kdelibs-4.14.11.patch | 22 ++++++++++++++++++++++ net-analyzer/nmapsi/nmapsi-0.4.1.ebuild | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 net-analyzer/nmapsi/files/nmapsi-0.4.1-kdelibs-4.14.11.patch diff --git a/net-analyzer/nmapsi/files/nmapsi-0.4.1-kdelibs-4.14.11.patch b/net-analyzer/nmapsi/files/nmapsi-0.4.1-kdelibs-4.14.11.patch new file mode 100644 index 000000000000..f5a338ad7a9d --- /dev/null +++ b/net-analyzer/nmapsi/files/nmapsi-0.4.1-kdelibs-4.14.11.patch @@ -0,0 +1,22 @@ +The uninstall target is created automatically by FindKDE4Internal. Due to +cmake policy changes in kdelibs-4.14.11, this target name collision causes +a build failure. + +https://bugs.gentoo.org/show_bug.cgi?id=558574 + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -35,13 +35,6 @@ + + add_subdirectory( src ) + +-CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/cmake_uninstall.cmake.in" +- "${PROJECT_BINARY_DIR}/cmake_uninstall.cmake" +- IMMEDIATE @ONLY ) +- +-ADD_CUSTOM_TARGET( uninstall +- "${CMAKE_COMMAND}" -P "${PROJECT_BINARY_DIR}/cmake_uninstall.cmake" ) +- + message("-------------------------------------------------------------------") + message(" Required for build: qt4-dev (>>= 4.6) ") + message(" Required for runtime: nmap+nping ( >= 6.00 ), dig ") diff --git a/net-analyzer/nmapsi/nmapsi-0.4.1.ebuild b/net-analyzer/nmapsi/nmapsi-0.4.1.ebuild index ffb545d0cd18..6457fee79399 100644 --- a/net-analyzer/nmapsi/nmapsi-0.4.1.ebuild +++ b/net-analyzer/nmapsi/nmapsi-0.4.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -34,9 +34,11 @@ RDEPEND="${DEPEND} S=${WORKDIR}/${MY_P} DOCS=( AUTHORS HACKING NEWS TODO Translation ) +PATCHES=( "${FILESDIR}/${P}-kdelibs-4.14.11.patch" ) src_prepare() { l10n_for_each_disabled_locale_do nmapsi_disable_locale + cmake-utils_src_prepare } src_configure() { -- cgit v1.2.3-65-gdbad