summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-04-17 12:00:49 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-04-17 14:02:22 +0200
commite95ea032ebb17c6a8aeeab597c85e66fba646baf (patch)
treec20bdce62b3acf7a14a30afd017beeea9be9adcb /sci-chemistry/avogadro2
parentsci-libs/avogadrolibs: Drop old snapshot (diff)
downloadgentoo-e95ea032ebb17c6a8aeeab597c85e66fba646baf.tar.gz
gentoo-e95ea032ebb17c6a8aeeab597c85e66fba646baf.tar.bz2
gentoo-e95ea032ebb17c6a8aeeab597c85e66fba646baf.zip
sci-chemistry/avogadro2: Fix build with Qt 5.11_beta3
Package-Manager: Portage-2.3.29, Repoman-2.3.9
Diffstat (limited to 'sci-chemistry/avogadro2')
-rw-r--r--sci-chemistry/avogadro2/avogadro2-1.90.0_p20180211.ebuild2
-rw-r--r--sci-chemistry/avogadro2/files/avogadro2-1.90.0_p20180211-qt-5.11b3.patch34
2 files changed, 36 insertions, 0 deletions
diff --git a/sci-chemistry/avogadro2/avogadro2-1.90.0_p20180211.ebuild b/sci-chemistry/avogadro2/avogadro2-1.90.0_p20180211.ebuild
index 8b017684a57..8345cd9619e 100644
--- a/sci-chemistry/avogadro2/avogadro2-1.90.0_p20180211.ebuild
+++ b/sci-chemistry/avogadro2/avogadro2-1.90.0_p20180211.ebuild
@@ -33,6 +33,8 @@ RESTRICT="test"
S="${WORKDIR}/${MY_PN}-${COMMIT}"
+PATCHES=( "${FILESDIR}/${P}-qt-5.11b3.patch" )
+
src_prepare() {
cmake-utils_src_prepare
sed -e "/LICENSE/d" -i CMakeLists.txt || die
diff --git a/sci-chemistry/avogadro2/files/avogadro2-1.90.0_p20180211-qt-5.11b3.patch b/sci-chemistry/avogadro2/files/avogadro2-1.90.0_p20180211-qt-5.11b3.patch
new file mode 100644
index 00000000000..1e7a23f0b54
--- /dev/null
+++ b/sci-chemistry/avogadro2/files/avogadro2-1.90.0_p20180211-qt-5.11b3.patch
@@ -0,0 +1,34 @@
+From 2c70d9bf7248d8da7691a5830ba6a0972fd9eea7 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Tue, 17 Apr 2018 11:57:32 +0200
+Subject: [PATCH] Fix build with Qt 5.11_beta3 (dropping qt5_use_modules)
+
+---
+ avogadro/CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/avogadro/CMakeLists.txt b/avogadro/CMakeLists.txt
+index 115b798..f564eb5 100644
+--- a/avogadro/CMakeLists.txt
++++ b/avogadro/CMakeLists.txt
+@@ -16,7 +16,7 @@ if(MSVC)
+ endif()
+
+ # Find the Qt components we need.
+-find_package(Qt5 COMPONENTS Widgets Network REQUIRED)
++find_package(Qt5 REQUIRED COMPONENTS Concurrent Widgets Network CONFIG)
+
+ configure_file(avogadroappconfig.h.in avogadroappconfig.h)
+
+@@ -88,7 +88,7 @@ endif()
+
+ add_executable(avogadro WIN32 MACOSX_BUNDLE
+ ${avogadro_srcs} ${ui_srcs} ${rcc_srcs})
+-qt5_use_modules(avogadro Widgets Network Concurrent)
++target_link_libraries(avogadro Qt5::Widgets Qt5::Network Qt5::Concurrent)
+ if(WIN32)
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:MSVCRTD")
+ target_link_libraries(avogadro Qt5::WinMain)
+--
+2.17.0
+