From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7FA87138330 for ; Sat, 13 Jan 2018 23:29:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBDF7E088F; Sat, 13 Jan 2018 23:28:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9EE5EE088F for ; Sat, 13 Jan 2018 23:28:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A7B8B335C66 for ; Sat, 13 Jan 2018 23:28:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8F5A41B0 for ; Sat, 13 Jan 2018 23:28:55 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1515886114.cab5def7fea825489200c52af153c8ec02b79e4f.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/molequeue/files/, sci-chemistry/molequeue/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-chemistry/molequeue/files/molequeue-0.8.0-cmake.patch sci-chemistry/molequeue/molequeue-0.8.0.ebuild X-VCS-Directories: sci-chemistry/molequeue/ sci-chemistry/molequeue/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: cab5def7fea825489200c52af153c8ec02b79e4f X-VCS-Branch: master Date: Sat, 13 Jan 2018 23:28:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 72e9c53a-291c-48b2-9d5a-1658481bd9e3 X-Archives-Hash: 67f0521127d5633bf16d4fa002ea06ca commit: cab5def7fea825489200c52af153c8ec02b79e4f Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Jan 13 20:39:32 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Jan 13 23:28:34 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cab5def7 sci-chemistry/molequeue: Fix cmake error Closes: https://bugs.gentoo.org/596972 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../molequeue/files/molequeue-0.8.0-cmake.patch | 106 +++++++++++++++++++++ sci-chemistry/molequeue/molequeue-0.8.0.ebuild | 5 + 2 files changed, 111 insertions(+) diff --git a/sci-chemistry/molequeue/files/molequeue-0.8.0-cmake.patch b/sci-chemistry/molequeue/files/molequeue-0.8.0-cmake.patch new file mode 100644 index 00000000000..3fd8a9db76b --- /dev/null +++ b/sci-chemistry/molequeue/files/molequeue-0.8.0-cmake.patch @@ -0,0 +1,106 @@ +From 45cbc9f167d1158bc73e87618cc08ede2e3f2911 Mon Sep 17 00:00:00 2001 +From: "Marcus D. Hanwell" +Date: Thu, 1 Jun 2017 13:17:20 -0400 +Subject: [PATCH] Removed GenerateExportHeader, bumped CMake min + +Removed the GenerateExportHeader copy we had, use CMake's, and bump the +minimum to ensure it has the features we expect. +--- + CMakeLists.txt | 2 +- + cmake/GenerateExportHeader.cmake | 375 --------------------------------------- + cmake/exportheader.cmake.in | 35 ---- + 3 files changed, 1 insertion(+), 411 deletions(-) + delete mode 100644 cmake/GenerateExportHeader.cmake + delete mode 100644 cmake/exportheader.cmake.in + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index df93bc8..a107c8f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.3 FATAL_ERROR) + + project(MoleQueue) + +From aae92632d10fe98728c3e73bfd891e502e8712fd Mon Sep 17 00:00:00 2001 +From: "Marcus D. Hanwell" +Date: Thu, 16 Nov 2017 15:10:25 -0500 +Subject: [PATCH] Remove deprecated calls for export flags + +Move them to the project default variables in the top level. +--- + CMakeLists.txt | 8 ++++++++ + molequeue/client/CMakeLists.txt | 1 - + molequeue/servercore/CMakeLists.txt | 1 - + molequeue/zeromq/CMakeLists.txt | 1 - + thirdparty/qt5json/CMakeLists.txt | 1 - + 5 files changed, 8 insertions(+), 4 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a107c8f..e68d81f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,6 +4,14 @@ project(MoleQueue) + + set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) + ++# Request C++11 standard, using new CMake variables. ++set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD_REQUIRED True) ++set(CMAKE_CXX_EXTENSIONS False) ++# Set symbol visibility defaults for all targets. ++set(CMAKE_CXX_VISIBILITY_PRESET "hidden") ++set(CMAKE_VISIBILITY_INLINES_HIDDEN True) ++ + include(BuildType) + include(BuildLocation) + include(CompilerFlags) +diff --git a/molequeue/client/CMakeLists.txt b/molequeue/client/CMakeLists.txt +index 674f91a..8cb131a 100644 +--- a/molequeue/client/CMakeLists.txt ++++ b/molequeue/client/CMakeLists.txt +@@ -20,7 +20,6 @@ set_target_properties(MoleQueueClient PROPERTIES AUTOMOC TRUE) + include(GenerateExportHeader) + generate_export_header(MoleQueueClient EXPORT_FILE_NAME molequeueclientexport.h) + list(APPEND headers "${CMAKE_CURRENT_BINARY_DIR}/molequeueclientexport.h") +-add_compiler_export_flags(molequeue_export_flags) + set_property(TARGET MoleQueueClient APPEND + PROPERTY COMPILE_FLAGS ${molequeue_export_flags}) + +diff --git a/molequeue/servercore/CMakeLists.txt b/molequeue/servercore/CMakeLists.txt +index 8d4f7ee..aab0bec 100644 +--- a/molequeue/servercore/CMakeLists.txt ++++ b/molequeue/servercore/CMakeLists.txt +@@ -30,7 +30,6 @@ set(hdrs + generate_export_header(MoleQueueServerCore + EXPORT_FILE_NAME molequeueservercoreexport.h) + include_directories(${CMAKE_CURRENT_BINARY_DIR}) +-add_compiler_export_flags(molequeue_export_flags) + set_property(TARGET MoleQueueServerCore APPEND + PROPERTY COMPILE_FLAGS ${molequeue_export_flags}) + +diff --git a/molequeue/zeromq/CMakeLists.txt b/molequeue/zeromq/CMakeLists.txt +index bc1e893..188f437 100644 +--- a/molequeue/zeromq/CMakeLists.txt ++++ b/molequeue/zeromq/CMakeLists.txt +@@ -20,7 +20,6 @@ target_link_libraries(MoleQueueZeroMq MoleQueueServerCore ${ZeroMQ_LIBRARIES}) + generate_export_header(MoleQueueZeroMq + EXPORT_FILE_NAME molequeuezeromqexport.h) + include_directories(${CMAKE_CURRENT_BINARY_DIR}) +-add_compiler_export_flags(molequeue_export_flags) + set_property(TARGET MoleQueueZeroMq APPEND + PROPERTY COMPILE_FLAGS ${molequeue_export_flags}) + +diff --git a/thirdparty/qt5json/CMakeLists.txt b/thirdparty/qt5json/CMakeLists.txt +index 6d00685..52f5df2 100644 +--- a/thirdparty/qt5json/CMakeLists.txt ++++ b/thirdparty/qt5json/CMakeLists.txt +@@ -54,7 +54,6 @@ include(GenerateExportHeader) + generate_export_header(${QT5_JSON_LIBRARY_NAME} + EXPORT_FILE_NAME qt5jsonexport.h + EXPORT_MACRO_NAME QT5JSON_EXPORT) +-add_compiler_export_flags(qt5json_export_flags) + + set_property(TARGET ${QT5_JSON_LIBRARY_NAME} APPEND + PROPERTY COMPILE_FLAGS ${qt5json_export_flags}) diff --git a/sci-chemistry/molequeue/molequeue-0.8.0.ebuild b/sci-chemistry/molequeue/molequeue-0.8.0.ebuild index cda203befdf..94a7ed2533c 100644 --- a/sci-chemistry/molequeue/molequeue-0.8.0.ebuild +++ b/sci-chemistry/molequeue/molequeue-0.8.0.ebuild @@ -28,8 +28,13 @@ RDEPEND="${PYTHON_DEPS} DEPEND="${RDEPEND} doc? ( app-doc/doxygen )" +PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) + src_prepare() { cmake-utils_src_prepare + + rm cmake/{GenerateExportHeader.cmake,exportheader.cmake.in} || die + # delete bundled Qt5Json library rm -r thirdparty || die }