1 |
commit: 120ab70ab993741629984f219f4b2ff7ac04b2f5 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 14 09:16:41 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 14 09:18:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=120ab70a |
7 |
|
8 |
dev-libs/grantlee: add 5.3.0, EAPI-8 bump |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
dev-libs/grantlee/Manifest | 1 + |
13 |
dev-libs/grantlee/files/grantlee-5.3.0-slot.patch | 65 +++++++++++++++++++++++ |
14 |
dev-libs/grantlee/grantlee-5.3.0.ebuild | 61 +++++++++++++++++++++ |
15 |
3 files changed, 127 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/grantlee/Manifest b/dev-libs/grantlee/Manifest |
18 |
index d56c4763280d..92adc47c2bf0 100644 |
19 |
--- a/dev-libs/grantlee/Manifest |
20 |
+++ b/dev-libs/grantlee/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST grantlee-5.2.0.tar.gz 1166467 BLAKE2B 89f66fefe3c5bbd087cdaed0f83a6b9ca2456629465dfd68d32c6f316d6d4533ece09e5a1444833897c70abbeb8258e0ca9faba09388dcbf40245c04f72f5040 SHA512 94b53d103aa775e6d45357d44d5634a5214d12ea7178d251fda30c5a88ddc2682ae44501ee8b7dc475793b84fa0998eb0bc13eea3f2e10ab29b1489db6ea60bd |
23 |
+DIST grantlee-5.3.0.tar.gz 1176075 BLAKE2B a3418250845b39c4766dd19a1f423f18ca7393f675d0045477b345e589d5649f1cc332f9c228e9e9317bdf356992e533cfabe62bcfb50c40ffa38be9b5009013 SHA512 8018c92e1001e039243b4a22a790907b53bff21e062c7e3ee63d1e2de4ce7bccc4a7580fc4ec2e61dc2f7131ac336d46f76e2f03a7314c1547b8744842c0a02a |
24 |
|
25 |
diff --git a/dev-libs/grantlee/files/grantlee-5.3.0-slot.patch b/dev-libs/grantlee/files/grantlee-5.3.0-slot.patch |
26 |
new file mode 100644 |
27 |
index 000000000000..896290499dcf |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/grantlee/files/grantlee-5.3.0-slot.patch |
30 |
@@ -0,0 +1,65 @@ |
31 |
+From f9dda5f8a81c18c59eabcea515084253c284803a Mon Sep 17 00:00:00 2001 |
32 |
+From: Andreas Sturmlechner <asturm@g.o> |
33 |
+Date: Sat, 30 Nov 2019 11:55:33 +0100 |
34 |
+Subject: [PATCH] Install headers to a custom location to permit slotting |
35 |
+ |
36 |
+That was previously necessary with Qt4 version, let's keep it while |
37 |
+Qt6 is around the corner. |
38 |
+--- |
39 |
+ templates/lib/CMakeLists.txt | 5 +++-- |
40 |
+ textdocument/lib/CMakeLists.txt | 5 +++-- |
41 |
+ 2 files changed, 6 insertions(+), 4 deletions(-) |
42 |
+ |
43 |
+diff --git a/templates/lib/CMakeLists.txt b/templates/lib/CMakeLists.txt |
44 |
+index 07a192c..9049bdc 100644 |
45 |
+--- a/templates/lib/CMakeLists.txt |
46 |
++++ b/templates/lib/CMakeLists.txt |
47 |
+@@ -101,6 +101,7 @@ if (Qt5Qml_FOUND OR Qt6Qml_FOUND) |
48 |
+ |
49 |
+ target_sources(Grantlee_Templates PRIVATE ${scriptabletags_SRCS}) |
50 |
+ target_include_directories(Grantlee_Templates PRIVATE ../scriptabletags) |
51 |
++ target_include_directories(Grantlee_Templates INTERFACE "$<INSTALL_INTERFACE:include/grantlee5>") |
52 |
+ if (GRANTLEE_BUILD_WITH_QT6) |
53 |
+ target_link_libraries(Grantlee_Templates |
54 |
+ PRIVATE Qt6::Qml |
55 |
+@@ -164,10 +165,10 @@ install(FILES |
56 |
+ token.h |
57 |
+ util.h |
58 |
+ variable.h |
59 |
+- DESTINATION include/grantlee COMPONENT Templates |
60 |
++ DESTINATION include/grantlee5/grantlee COMPONENT Templates |
61 |
+ ) |
62 |
+ |
63 |
+ install(FILES |
64 |
+ grantlee_templates.h |
65 |
+- DESTINATION include COMPONENT Templates |
66 |
++ DESTINATION include/grantlee5 COMPONENT Templates |
67 |
+ ) |
68 |
+diff --git a/textdocument/lib/CMakeLists.txt b/textdocument/lib/CMakeLists.txt |
69 |
+index a472267..8134d83 100644 |
70 |
+--- a/textdocument/lib/CMakeLists.txt |
71 |
++++ b/textdocument/lib/CMakeLists.txt |
72 |
+@@ -34,6 +34,7 @@ if (CMAKE_GENERATOR MATCHES "Visual Studio") |
73 |
+ ) |
74 |
+ endforeach() |
75 |
+ endif() |
76 |
++target_include_directories(Grantlee_TextDocument INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>") |
77 |
+ |
78 |
+ if (GRANTLEE_BUILD_WITH_QT6) |
79 |
+ target_link_libraries(Grantlee_TextDocument |
80 |
+@@ -65,10 +66,10 @@ install(FILES |
81 |
+ texthtmlbuilder.h |
82 |
+ mediawikimarkupbuilder.h |
83 |
+ ${CMAKE_CURRENT_BINARY_DIR}/grantlee_textdocument_export.h |
84 |
+- DESTINATION include/grantlee COMPONENT TextDocument |
85 |
++ DESTINATION include/grantlee5/grantlee COMPONENT TextDocument |
86 |
+ ) |
87 |
+ |
88 |
+ install(FILES |
89 |
+ grantlee_textdocument.h |
90 |
+- DESTINATION include COMPONENT TextDocument |
91 |
++ DESTINATION include/grantlee5 COMPONENT TextDocument |
92 |
+ ) |
93 |
+-- |
94 |
+2.37.3 |
95 |
+ |
96 |
|
97 |
diff --git a/dev-libs/grantlee/grantlee-5.3.0.ebuild b/dev-libs/grantlee/grantlee-5.3.0.ebuild |
98 |
new file mode 100644 |
99 |
index 000000000000..d28d8a77daee |
100 |
--- /dev/null |
101 |
+++ b/dev-libs/grantlee/grantlee-5.3.0.ebuild |
102 |
@@ -0,0 +1,61 @@ |
103 |
+# Copyright 1999-2022 Gentoo Authors |
104 |
+# Distributed under the terms of the GNU General Public License v2 |
105 |
+ |
106 |
+EAPI=8 |
107 |
+ |
108 |
+VIRTUALX_REQUIRED="test" |
109 |
+inherit cmake virtualx |
110 |
+ |
111 |
+DESCRIPTION="C++ string template engine based on the Django template system" |
112 |
+HOMEPAGE="https://github.com/steveire/grantlee" |
113 |
+SRC_URI="http://downloads.grantlee.org/${P}.tar.gz" |
114 |
+ |
115 |
+LICENSE="LGPL-2.1+" |
116 |
+SLOT="5" |
117 |
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" |
118 |
+IUSE="debug doc test" |
119 |
+ |
120 |
+RESTRICT="!test? ( test )" |
121 |
+ |
122 |
+RDEPEND=" |
123 |
+ dev-qt/qtcore:5 |
124 |
+ dev-qt/qtdeclarative:5 |
125 |
+ dev-qt/qtgui:5 |
126 |
+" |
127 |
+DEPEND="${RDEPEND} |
128 |
+ test? ( dev-qt/qttest:5 ) |
129 |
+" |
130 |
+BDEPEND=" |
131 |
+ doc? ( app-doc/doxygen[dot] ) |
132 |
+ test? ( dev-qt/linguist-tools:5 ) |
133 |
+" |
134 |
+ |
135 |
+PATCHES=( |
136 |
+ "${FILESDIR}/${PN}-0.3.0-nonfatal-warnings.patch" |
137 |
+ "${FILESDIR}/${P}-slot.patch" # TODO: Qt5 specific |
138 |
+) |
139 |
+ |
140 |
+src_configure() { |
141 |
+ local mycmakeargs=( |
142 |
+ -DGRANTLEE_BUILD_WITH_QT6=OFF |
143 |
+ -DBUILD_TESTS=$(usex test) |
144 |
+ ) |
145 |
+ |
146 |
+ cmake_src_configure |
147 |
+} |
148 |
+ |
149 |
+src_compile() { |
150 |
+ cmake_src_compile |
151 |
+ |
152 |
+ use doc && cmake_src_compile docs |
153 |
+} |
154 |
+ |
155 |
+src_test() { |
156 |
+ virtx cmake_src_test |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ use doc && local HTML_DOCS=("${BUILD_DIR}/apidox/") |
161 |
+ |
162 |
+ cmake_src_install |
163 |
+} |