Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kalzium/, kde-apps/kalzium/files/
Date: Thu, 17 Jan 2019 11:00:26
Message-Id: 1547721143.9435dc751a4bf19e97571f08fe0ae4844387fa0d.asturm@gentoo
1 commit: 9435dc751a4bf19e97571f08fe0ae4844387fa0d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 17 10:13:23 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 17 10:32:23 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=9435dc75
7
8 kde-apps/kalzium: Add missing avogadro[qt5] USE, fix cmake
9
10 Package-Manager: Portage-2.3.56, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 kde-apps/kalzium/files/kalzium-18.12.1-deps.patch | 79 +++++++++++++++++++++++
14 kde-apps/kalzium/kalzium-18.12.49.9999.ebuild | 6 +-
15 kde-apps/kalzium/kalzium-9999.ebuild | 4 +-
16 3 files changed, 85 insertions(+), 4 deletions(-)
17
18 diff --git a/kde-apps/kalzium/files/kalzium-18.12.1-deps.patch b/kde-apps/kalzium/files/kalzium-18.12.1-deps.patch
19 new file mode 100644
20 index 0000000000..f0a1a834bc
21 --- /dev/null
22 +++ b/kde-apps/kalzium/files/kalzium-18.12.1-deps.patch
23 @@ -0,0 +1,79 @@
24 +From dd38aba1dfbc18c8e094fce2f8b167d0e12e93fb Mon Sep 17 00:00:00 2001
25 +From: Andreas Sturmlechner <asturm@g.o>
26 +Date: Thu, 17 Jan 2019 10:45:42 +0100
27 +Subject: [PATCH] Qt5OpenGL is only required in optional compoundviewer
28 +
29 +Add missing search for Qt5Xml
30 +Add missing Qt5Widgets to compoundviewer target_link_libraries
31 +Remove Qt5OpenGL from libscience target_link_libraries, not used
32 +---
33 + CMakeLists.txt | 7 ++++---
34 + compoundviewer/CMakeLists.txt | 3 ++-
35 + libscience/CMakeLists.txt | 2 +-
36 + 3 files changed, 7 insertions(+), 5 deletions(-)
37 +
38 +diff --git a/CMakeLists.txt b/CMakeLists.txt
39 +index a48c9046..9c55aafe 100644
40 +--- a/CMakeLists.txt
41 ++++ b/CMakeLists.txt
42 +@@ -42,12 +42,12 @@ configure_file(
43 + include_directories(${AvogadroLibs_INCLUDE_DIRS})
44 +
45 + find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS
46 +- Widgets
47 +- Script
48 + Core
49 + Gui
50 +- OpenGL
51 ++ Script
52 + Svg
53 ++ Widgets
54 ++ Xml
55 + )
56 +
57 + find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
58 +@@ -92,6 +92,7 @@ add_definitions(-DUSING_DYNAMIC_LIBS)
59 + endif(MSVC)
60 +
61 + if (OPENBABEL2_FOUND AND AvogadroLibs_FOUND AND EIGEN3_FOUND)
62 ++ find_package(Qt5OpenGL ${QT_MIN_VERSION} REQUIRED)
63 + find_package(KF5NewStuff REQUIRED)
64 + # avoid compilerwarnings about redefinitions
65 + # todo: use check_function_exits() ?
66 +diff --git a/compoundviewer/CMakeLists.txt b/compoundviewer/CMakeLists.txt
67 +index d6f6f4ab..54734a02 100644
68 +--- a/compoundviewer/CMakeLists.txt
69 ++++ b/compoundviewer/CMakeLists.txt
70 +@@ -1,7 +1,7 @@
71 + include_directories(
72 + ${CMAKE_CURRENT_BINARY_DIR}/..
73 + ${EIGEN3_INCLUDE_DIR}
74 +- ${OPENBABEL2_INCLUDE_DIR} ${OPENGL_INCLUDE_DIRS}
75 ++ ${OPENBABEL2_INCLUDE_DIR}
76 + ${AvogadroLibs_INCLUDE_DIRS}
77 + ${PROJECT_SOURCE_DIR}/compoundviewer
78 + )
79 +@@ -21,6 +21,7 @@ target_link_libraries(compoundviewer
80 + KF5::CoreAddons
81 + Qt5::OpenGL
82 + Qt5::Gui
83 ++ Qt5::Widgets
84 + ${OPENBABEL2_LIBRARIES}
85 + AvogadroQtGui
86 + AvogadroQtOpenGL
87 +diff --git a/libscience/CMakeLists.txt b/libscience/CMakeLists.txt
88 +index f25e4090..4d4d6979 100644
89 +--- a/libscience/CMakeLists.txt
90 ++++ b/libscience/CMakeLists.txt
91 +@@ -16,7 +16,7 @@ set(science_LIB_SRCS
92 +
93 + add_library(science SHARED ${science_LIB_SRCS})
94 +
95 +-target_link_libraries(science Qt5::OpenGL Qt5::Xml KF5::UnitConversion KF5::WidgetsAddons KF5::KDELibs4Support)
96 ++target_link_libraries(science Qt5::Xml KF5::UnitConversion KF5::WidgetsAddons KF5::KDELibs4Support)
97 + set_target_properties(science PROPERTIES VERSION ${KALZIUMLIB_VERSION} SOVERSION ${KALZIUMLIB_SOVERSION} )
98 + install(TARGETS science ${INSTALL_TARGETS_DEFAULT_ARGS})
99 +
100 +--
101 +2.20.1
102 +
103
104 diff --git a/kde-apps/kalzium/kalzium-18.12.49.9999.ebuild b/kde-apps/kalzium/kalzium-18.12.49.9999.ebuild
105 index 8f7a77abdd..9c23c0364b 100644
106 --- a/kde-apps/kalzium/kalzium-18.12.49.9999.ebuild
107 +++ b/kde-apps/kalzium/kalzium-18.12.49.9999.ebuild
108 @@ -32,11 +32,11 @@ DEPEND="
109 $(add_qt_dep qtwidgets)
110 $(add_qt_dep qtxml)
111 editor? (
112 - $(add_qt_dep qtopengl)
113 $(add_frameworks_dep knewstuff)
114 + $(add_qt_dep qtopengl)
115 dev-cpp/eigen:3
116 sci-chemistry/openbabel
117 - sci-libs/avogadrolibs
118 + sci-libs/avogadrolibs[qt5]
119 )
120 solver? ( dev-ml/facile[ocamlopt] )
121 "
122 @@ -44,6 +44,8 @@ RDEPEND="${DEPEND}
123 sci-chemistry/chemical-mime-data
124 "
125
126 +PATCHES=( "${FILESDIR}/${PN}-18.12.1-deps.patch" )
127 +
128 src_configure(){
129 # Fix missing finite()
130 [[ ${CHOST} == *-solaris* ]] && append-cppflags -DHAVE_IEEEFP_H
131
132 diff --git a/kde-apps/kalzium/kalzium-9999.ebuild b/kde-apps/kalzium/kalzium-9999.ebuild
133 index 28937b357e..fed5a19256 100644
134 --- a/kde-apps/kalzium/kalzium-9999.ebuild
135 +++ b/kde-apps/kalzium/kalzium-9999.ebuild
136 @@ -31,11 +31,11 @@ DEPEND="
137 $(add_qt_dep qtwidgets)
138 $(add_qt_dep qtxml)
139 editor? (
140 - $(add_qt_dep qtopengl)
141 $(add_frameworks_dep knewstuff)
142 + $(add_qt_dep qtopengl)
143 dev-cpp/eigen:3
144 sci-chemistry/openbabel
145 - sci-libs/avogadrolibs
146 + sci-libs/avogadrolibs[qt5]
147 )
148 solver? ( dev-ml/facile[ocamlopt] )
149 "