From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/avogadro2/files/, sci-chemistry/avogadro2/
Date: Tue, 17 Apr 2018 12:10:28 +0000 (UTC) [thread overview]
Message-ID: <1523966542.e95ea032ebb17c6a8aeeab597c85e66fba646baf.asturm@gentoo> (raw)
commit: e95ea032ebb17c6a8aeeab597c85e66fba646baf
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 17 10:00:49 2018 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Apr 17 12:02:22 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e95ea032
sci-chemistry/avogadro2: Fix build with Qt 5.11_beta3
Package-Manager: Portage-2.3.29, Repoman-2.3.9
.../avogadro2/avogadro2-1.90.0_p20180211.ebuild | 2 ++
.../avogadro2-1.90.0_p20180211-qt-5.11b3.patch | 34 ++++++++++++++++++++++
2 files changed, 36 insertions(+)
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
+
next reply other threads:[~2018-04-17 12:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-17 12:10 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-24 6:45 [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/avogadro2/files/, sci-chemistry/avogadro2/ Michael Palimaka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1523966542.e95ea032ebb17c6a8aeeab597c85e66fba646baf.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox