diff options
-rw-r--r-- | sci-chemistry/avogadro2/avogadro2-1.90.0_p20180211.ebuild | 2 | ||||
-rw-r--r-- | sci-chemistry/avogadro2/files/avogadro2-1.90.0_p20180211-qt-5.11b3.patch | 34 |
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 8b017684a578..8345cd9619e5 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 000000000000..1e7a23f0b54e --- /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 + |