summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-04-17 11:00:39 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-04-17 14:02:22 +0200
commit2e04122fa8b7cad029496731ed7974a5108fb2ce (patch)
treed22ef194a79b54a5277cd44e6f5fcb5c7888379e /sci-chemistry/molequeue
parentsci-mathematics/rkward: 0.7.0 version bump (diff)
downloadgentoo-2e04122fa8b7cad029496731ed7974a5108fb2ce.tar.gz
gentoo-2e04122fa8b7cad029496731ed7974a5108fb2ce.tar.bz2
gentoo-2e04122fa8b7cad029496731ed7974a5108fb2ce.zip
sci-chemistry/molequeue: 0.9.0 version bump, build with Qt-5.11_beta3
Package-Manager: Portage-2.3.29, Repoman-2.3.9
Diffstat (limited to 'sci-chemistry/molequeue')
-rw-r--r--sci-chemistry/molequeue/Manifest1
-rw-r--r--sci-chemistry/molequeue/files/molequeue-0.9.0-qt-5.11b3.patch154
-rw-r--r--sci-chemistry/molequeue/molequeue-0.9.0.ebuild62
3 files changed, 217 insertions, 0 deletions
diff --git a/sci-chemistry/molequeue/Manifest b/sci-chemistry/molequeue/Manifest
index cd6278cce42f..e9a1c320acfc 100644
--- a/sci-chemistry/molequeue/Manifest
+++ b/sci-chemistry/molequeue/Manifest
@@ -1 +1,2 @@
DIST molequeue-0.8.0.tar.gz 643072 BLAKE2B c9ba0a93e4dac3027de1aeb5ae6c62fc3e4229786973d6c3b56af4b70476b0ed54a563837d489912a40c76b9ce0013e13633a327eb314c34305ba17d7f0b4cf7 SHA512 b9539d2ad2c67188ad254f186c1d67c122a15a32047801c632a1613a4f9c887f38baf2da1bb80cb123391948c2a44604fb1082e475ca6de1e683fbe51266ac84
+DIST molequeue-0.9.0.tar.gz 604015 BLAKE2B 37e7f404a0fefb40defb198295659372121fbe770269c2f9fb92e856aceb8222bec5e83939ecea061b76f925c0cbde1be0a854db41f992a92a2b2b9e0651f2e1 SHA512 87ddd8ca59227cab60c0ce2643e5bd435d9ac7e23b929659b95f190478734a5b71d4935f37d03eeadbc39939cbffb3604e0a283d50b0a23a1a000b57c1fce335
diff --git a/sci-chemistry/molequeue/files/molequeue-0.9.0-qt-5.11b3.patch b/sci-chemistry/molequeue/files/molequeue-0.9.0-qt-5.11b3.patch
new file mode 100644
index 000000000000..0e04e22f7434
--- /dev/null
+++ b/sci-chemistry/molequeue/files/molequeue-0.9.0-qt-5.11b3.patch
@@ -0,0 +1,154 @@
+From 844c6a7ee7f4ad00bc8225549d26c6bde8b683ab Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Tue, 17 Apr 2018 10:50:36 +0200
+Subject: [PATCH] Fix build with Qt 5.11_beta3 (dropping qt5_use_modules)
+
+---
+ molequeue/app/CMakeLists.txt | 14 +++++---------
+ molequeue/app/testing/CMakeLists.txt | 6 ++----
+ molequeue/app/testing/clienttestsrc/CMakeLists.txt | 3 +--
+ molequeue/client/CMakeLists.txt | 2 +-
+ molequeue/plugins/localsocketserver/CMakeLists.txt | 3 +--
+ molequeue/servercore/CMakeLists.txt | 2 +-
+ molequeue/zeromq/CMakeLists.txt | 3 +--
+ 7 files changed, 12 insertions(+), 21 deletions(-)
+
+diff --git a/molequeue/app/CMakeLists.txt b/molequeue/app/CMakeLists.txt
+index d40fce5..b6e72f8 100644
+--- a/molequeue/app/CMakeLists.txt
++++ b/molequeue/app/CMakeLists.txt
+@@ -1,11 +1,9 @@
+-set(qt_components Core Widgets Network)
++find_package(Qt5 REQUIRED COMPONENTS Core Widgets Network)
+
+ if(MoleQueue_USE_EZHPC_UIT)
+- list(APPEND qt_components XmlPatterns)
++ find_package(Qt5XmlPatterns REQUIRED)
+ endif()
+
+-find_package(Qt5 COMPONENTS ${qt_components} REQUIRED)
+-
+ # Provide some simple API to find the plugins, scripts, etc.
+ if(APPLE)
+ # It is a special case, the app bundle logic breaks the relative pathing.
+@@ -170,12 +168,11 @@ qt5_wrap_ui(ui_srcs ${ui_files})
+ qt5_add_resources(rcc_srcs queuetray.qrc)
+
+ add_library(molequeue_static STATIC ${mq_srcs} ${ui_srcs})
+-qt5_use_modules(molequeue_static ${qt_components})
+ set_target_properties(molequeue_static PROPERTIES AUTOMOC TRUE)
+-target_link_libraries(molequeue_static MoleQueueServerCore)
++target_link_libraries(molequeue_static MoleQueueServerCore Qt5::Core Qt5::Widgets Qt5::Network)
+
+ if(MoleQueue_USE_EZHPC_UIT)
+- target_link_libraries(molequeue_static KDSoap::kdsoap)
++ target_link_libraries(molequeue_static KDSoap::kdsoap Qt5::XmlPatterns)
+ endif()
+
+ if(MoleQueue_BUILD_CLIENT)
+@@ -195,8 +192,7 @@ elseif(WIN32)
+ endif()
+
+ add_executable(molequeue WIN32 MACOSX_BUNDLE ${sources} ${rcc_srcs})
+-qt5_use_modules(molequeue ${qt_components})
+-target_link_libraries(molequeue molequeue_static)
++target_link_libraries(molequeue molequeue_static Qt5::Core Qt5::Widgets Qt5::Network)
+ if(WIN32)
+ target_link_libraries(molequeue Qt5::WinMain)
+ endif()
+diff --git a/molequeue/app/testing/CMakeLists.txt b/molequeue/app/testing/CMakeLists.txt
+index 5b88038..f79a17a 100644
+--- a/molequeue/app/testing/CMakeLists.txt
++++ b/molequeue/app/testing/CMakeLists.txt
+@@ -31,8 +31,7 @@ set(testutils_SRCS
+
+ add_library(testutils STATIC ${testutils_SRCS})
+ set_target_properties(testutils PROPERTIES AUTOMOC TRUE)
+-qt5_use_modules(testutils Test)
+-target_link_libraries(testutils molequeue_static)
++target_link_libraries(testutils molequeue_static Qt5::Test)
+
+ set(MyTests
+ filespecification
+@@ -71,9 +70,8 @@ endif()
+
+ foreach(test ${MyTests})
+ add_executable(${test}test MACOSX_BUNDLE ${test}test.cpp)
+- qt5_use_modules(${test}test Test)
+ set_target_properties(${test}test PROPERTIES AUTOMOC TRUE)
+- target_link_libraries(${test}test testutils)
++ target_link_libraries(${test}test testutils Qt5::Test)
+ add_test(NAME molequeue-${test} COMMAND ${test}test)
+ endforeach()
+
+diff --git a/molequeue/app/testing/clienttestsrc/CMakeLists.txt b/molequeue/app/testing/clienttestsrc/CMakeLists.txt
+index d506010..7377e3c 100644
+--- a/molequeue/app/testing/clienttestsrc/CMakeLists.txt
++++ b/molequeue/app/testing/clienttestsrc/CMakeLists.txt
+@@ -9,6 +9,5 @@ set(srcs sendRpcKill)
+ foreach(source ${srcs})
+ add_executable(${source} ${source}.cpp)
+ set_target_properties(${source} PROPERTIES AUTOMOC TRUE)
+- qt5_use_modules(${source} Core)
+- target_link_libraries(${source} MoleQueueClient)
++ target_link_libraries(${source} MoleQueueClient Qt5::Core)
+ endforeach()
+diff --git a/molequeue/client/CMakeLists.txt b/molequeue/client/CMakeLists.txt
+index 8cb131a..c614aea 100644
+--- a/molequeue/client/CMakeLists.txt
++++ b/molequeue/client/CMakeLists.txt
+@@ -15,7 +15,7 @@ set(headers
+ include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+ add_library(MoleQueueClient ${sources})
+-qt5_use_modules(MoleQueueClient Network)
++target_link_libraries(MoleQueueClient Qt5::Network)
+ set_target_properties(MoleQueueClient PROPERTIES AUTOMOC TRUE)
+ include(GenerateExportHeader)
+ generate_export_header(MoleQueueClient EXPORT_FILE_NAME molequeueclientexport.h)
+diff --git a/molequeue/plugins/localsocketserver/CMakeLists.txt b/molequeue/plugins/localsocketserver/CMakeLists.txt
+index fd030f9..80018c3 100644
+--- a/molequeue/plugins/localsocketserver/CMakeLists.txt
++++ b/molequeue/plugins/localsocketserver/CMakeLists.txt
+@@ -2,9 +2,8 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
+ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/../lib/molequeue/plugins)
+
+ add_library(LocalSocketServer MODULE localsocketconnectionlistenerfactory.cpp)
+-qt5_use_modules(LocalSocketServer Network)
+ set_target_properties(LocalSocketServer PROPERTIES AUTOMOC TRUE PREFIX "")
+-target_link_libraries(LocalSocketServer MoleQueueServerCore)
++target_link_libraries(LocalSocketServer MoleQueueServerCore Qt5::Network)
+
+ set_property(GLOBAL APPEND PROPERTY MoleQueue_PLUGINS LocalSocketServer)
+
+diff --git a/molequeue/servercore/CMakeLists.txt b/molequeue/servercore/CMakeLists.txt
+index aab0bec..eee1bfd 100644
+--- a/molequeue/servercore/CMakeLists.txt
++++ b/molequeue/servercore/CMakeLists.txt
+@@ -12,7 +12,7 @@ add_library(MoleQueueServerCore
+ messageidmanager_p.cpp
+ )
+
+-qt5_use_modules(MoleQueueServerCore Network)
++target_link_libraries(MoleQueueServerCore Qt5::Network)
+ set_target_properties(MoleQueueServerCore PROPERTIES AUTOMOC TRUE)
+ #target_link_libraries(MoleQueueServerCore)
+
+diff --git a/molequeue/zeromq/CMakeLists.txt b/molequeue/zeromq/CMakeLists.txt
+index 188f437..451c0ec 100644
+--- a/molequeue/zeromq/CMakeLists.txt
++++ b/molequeue/zeromq/CMakeLists.txt
+@@ -13,9 +13,8 @@ set(sources
+ )
+
+ add_library(MoleQueueZeroMq ${sources})
+-qt5_use_modules(MoleQueueZeroMq Network)
+ set_target_properties(MoleQueueZeroMq PROPERTIES AUTOMOC TRUE)
+-target_link_libraries(MoleQueueZeroMq MoleQueueServerCore ${ZeroMQ_LIBRARIES})
++target_link_libraries(MoleQueueZeroMq MoleQueueServerCore ${ZeroMQ_LIBRARIES} Qt5::Network)
+
+ generate_export_header(MoleQueueZeroMq
+ EXPORT_FILE_NAME molequeuezeromqexport.h)
+--
+2.17.0
+
diff --git a/sci-chemistry/molequeue/molequeue-0.9.0.ebuild b/sci-chemistry/molequeue/molequeue-0.9.0.ebuild
new file mode 100644
index 000000000000..1f484848233a
--- /dev/null
+++ b/sci-chemistry/molequeue/molequeue-0.9.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils python-single-r1 virtualx
+
+DESCRIPTION="Abstract, manage and coordinate execution of tasks"
+HOMEPAGE="https://www.openchemistry.org/projects/molequeue/"
+SRC_URI="https://github.com/OpenChemistry/molequeue/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="+client doc server test +zeromq"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ server? ( client )
+ test? ( server )"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ zeromq? ( net-libs/cppzmq:0= )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+PATCHES=( "${FILESDIR}"/${P}-qt-5.11b3.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DMoleQueue_USE_EZHPC_UIT=OFF
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DMoleQueue_BUILD_CLIENT=$(usex client)
+ -DMoleQueue_BUILD_APPLICATION=$(usex server)
+ -DENABLE_TESTING=$(usex test)
+ -DUSE_ZERO_MQ=$(usex zeromq)
+ -DINSTALL_LIBRARY_DIR=$(get_libdir)
+ )
+ use zeromq && \
+ mycmakeargs+=( -DZeroMQ_ROOT_DIR=\"${EPREFIX}/usr\" )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile all $(usex doc documentation "")
+}
+
+src_test() {
+ VIRTUALX_COMMAND=cmake-utils_src_test
+ virtualmake
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. )
+ cmake-utils_src_install
+}