Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: dev-libs/grantlee/files/, dev-libs/grantlee/
Date: Sun, 12 Jan 2020 09:12:07
Message-Id: 1578820313.a346f86521d1c3b901b8e016f7e829e082536db5.asturm@gentoo
1 commit: a346f86521d1c3b901b8e016f7e829e082536db5
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 12 08:34:31 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 12 09:11:53 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a346f865
7
8 dev-libs/grantlee: Revert "Use ecm.eclass", "Moved to kde.org"
9
10 This reverts commit 09e7eb596ec6441fc7a523809e3dad3f09b5be50.
11 This reverts commit ab4c576a77fad0ac660a114d24d226509a8440a9.
12
13 Dropped out of kde.org again, next try with KF6.
14
15 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
16
17 .../files/grantlee-0.3.0-nonfatal-warnings.patch | 17 ++++++++
18 dev-libs/grantlee/files/grantlee-9999-slot.patch | 18 ++++-----
19 dev-libs/grantlee/grantlee-9999.ebuild | 45 +++++++++++++++-------
20 3 files changed, 58 insertions(+), 22 deletions(-)
21
22 diff --git a/dev-libs/grantlee/files/grantlee-0.3.0-nonfatal-warnings.patch b/dev-libs/grantlee/files/grantlee-0.3.0-nonfatal-warnings.patch
23 new file mode 100644
24 index 0000000000..b35dc46586
25 --- /dev/null
26 +++ b/dev-libs/grantlee/files/grantlee-0.3.0-nonfatal-warnings.patch
27 @@ -0,0 +1,17 @@
28 +Do not make linker warnings fatal.
29 +
30 +Gentoo-bug: 430968
31 +
32 +--- a/CMakeLists.txt
33 ++++ b/CMakeLists.txt
34 +@@ -62,8 +62,8 @@
35 + endif()
36 +
37 + if (NOT APPLE)
38 +- set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
39 +- set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined ${CMAKE_MODULE_LINKER_FLAGS}")
40 ++ set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
41 ++ set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_MODULE_LINKER_FLAGS}")
42 + endif ()
43 +
44 + if (NOT MINGW)
45
46 diff --git a/dev-libs/grantlee/files/grantlee-9999-slot.patch b/dev-libs/grantlee/files/grantlee-9999-slot.patch
47 index b761a66320..9490df2327 100644
48 --- a/dev-libs/grantlee/files/grantlee-9999-slot.patch
49 +++ b/dev-libs/grantlee/files/grantlee-9999-slot.patch
50 @@ -21,7 +21,7 @@ index 5058481..3ef29a4 100644
51
52 target_sources(Grantlee_Templates PRIVATE ${scriptabletags_SRCS})
53 target_include_directories(Grantlee_Templates PRIVATE ../scriptabletags)
54 -+ target_include_directories(Grantlee_Templates INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/grantlee5>")
55 ++ target_include_directories(Grantlee_Templates INTERFACE "$<INSTALL_INTERFACE:include/grantlee5>")
56 target_link_libraries(Grantlee_Templates
57 PRIVATE Qt5::Qml
58 )
59 @@ -29,14 +29,14 @@ index 5058481..3ef29a4 100644
60 token.h
61 util.h
62 variable.h
63 -- DESTINATION ${KDE_INSTALL_INCLUDEDIR}/grantlee COMPONENT Templates
64 -+ DESTINATION ${KDE_INSTALL_INCLUDEDIR}/grantlee5/grantlee COMPONENT Templates
65 +- DESTINATION include/grantlee COMPONENT Templates
66 ++ DESTINATION include/grantlee5/grantlee COMPONENT Templates
67 )
68
69 install(FILES
70 grantlee_templates.h
71 -- DESTINATION ${KDE_INSTALL_INCLUDEDIR} COMPONENT Templates
72 -+ DESTINATION ${KDE_INSTALL_INCLUDEDIR}/grantlee5 COMPONENT Templates
73 +- DESTINATION include COMPONENT Templates
74 ++ DESTINATION include/grantlee5 COMPONENT Templates
75 )
76 diff --git a/textdocument/lib/CMakeLists.txt b/textdocument/lib/CMakeLists.txt
77 index 2c5a96f..c42d32a 100644
78 @@ -54,14 +54,14 @@ index 2c5a96f..c42d32a 100644
79 texthtmlbuilder.h
80 mediawikimarkupbuilder.h
81 ${CMAKE_CURRENT_BINARY_DIR}/grantlee_textdocument_export.h
82 -- DESTINATION ${KDE_INSTALL_INCLUDEDIR}/grantlee COMPONENT TextDocument
83 -+ DESTINATION ${KDE_INSTALL_INCLUDEDIR}/grantlee5/grantlee COMPONENT TextDocument
84 +- DESTINATION include/grantlee COMPONENT TextDocument
85 ++ DESTINATION include/grantlee5/grantlee COMPONENT TextDocument
86 )
87
88 install(FILES
89 grantlee_textdocument.h
90 -- DESTINATION ${KDE_INSTALL_INCLUDEDIR} COMPONENT TextDocument
91 -+ DESTINATION ${KDE_INSTALL_INCLUDEDIR}/grantlee5 COMPONENT TextDocument
92 +- DESTINATION include COMPONENT TextDocument
93 ++ DESTINATION include/grantlee5 COMPONENT TextDocument
94 )
95 --
96 2.24.0
97
98 diff --git a/dev-libs/grantlee/grantlee-9999.ebuild b/dev-libs/grantlee/grantlee-9999.ebuild
99 index cf22c7b7cd..50bf81645a 100644
100 --- a/dev-libs/grantlee/grantlee-9999.ebuild
101 +++ b/dev-libs/grantlee/grantlee-9999.ebuild
102 @@ -3,39 +3,58 @@
103
104 EAPI=7
105
106 -ECM_TEST="true"
107 -KFMIN=5.65.0
108 -QTMIN=5.12.3
109 VIRTUALX_REQUIRED="test"
110 -inherit kde.org ecm
111 +inherit cmake virtualx git-r3
112
113 DESCRIPTION="C++ string template engine based on the Django template system"
114 HOMEPAGE="https://github.com/steveire/grantlee"
115 +EGIT_REPO_URI=( "https://github.com/steveire/${PN}" )
116
117 LICENSE="LGPL-2.1+"
118 SLOT="5"
119 KEYWORDS=""
120 -IUSE="doc"
121 +IUSE="debug doc test"
122
123 BDEPEND="
124 doc? ( app-doc/doxygen[dot] )
125 - test? ( >=dev-qt/linguist-tools-${QTMIN}:5 )
126 + test? ( dev-qt/linguist-tools:5 )
127 "
128 RDEPEND="
129 - >=dev-qt/qtcore-${QTMIN}:5
130 - >=dev-qt/qtdeclarative-${QTMIN}:5
131 - >=dev-qt/qtgui-${QTMIN}:5
132 + dev-qt/qtcore:5
133 + dev-qt/qtdeclarative:5
134 + dev-qt/qtgui:5
135 "
136 -DEPEND="${RDEPEND}"
137 +DEPEND="${RDEPEND}
138 + test? ( dev-qt/qttest:5 )
139 +"
140 +
141 +RESTRICT+=" !test? ( test )"
142 +
143 +PATCHES=(
144 + "${FILESDIR}/${PN}-0.3.0-nonfatal-warnings.patch"
145 + "${FILESDIR}/${P}-slot.patch"
146 +)
147
148 -PATCHES=( "${FILESDIR}/${P}-slot.patch" )
149 +src_configure() {
150 + local mycmakeargs=(
151 + -DBUILD_TESTS=$(usex test)
152 + )
153 +
154 + cmake_src_configure
155 +}
156
157 src_compile() {
158 - ecm_src_compile
159 + cmake_src_compile
160 +
161 use doc && cmake_src_compile docs
162 }
163
164 +src_test() {
165 + virtx cmake_src_test
166 +}
167 +
168 src_install() {
169 use doc && local HTML_DOCS=("${BUILD_DIR}/apidox/")
170 - ecm_src_install
171 +
172 + cmake_src_install
173 }