public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: dev-libs/grantlee/, dev-libs/grantlee/files/
Date: Wed, 14 Sep 2022 09:18:39 +0000 (UTC)	[thread overview]
Message-ID: <1663147095.a5abf6a3da6f8e3c71eaf00d3c182e1db9843d13.asturm@gentoo> (raw)

commit:     a5abf6a3da6f8e3c71eaf00d3c182e1db9843d13
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 14 09:17:40 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Sep 14 09:18:15 2022 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=a5abf6a3

dev-libs/grantlee: Rebase grantlee-{9999 => 5.3.0}-slot.patch

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...e-9999-slot.patch => grantlee-5.3.0-slot.patch} | 30 ++++++++++------------
 dev-libs/grantlee/grantlee-9999.ebuild             | 14 +++++-----
 2 files changed, 21 insertions(+), 23 deletions(-)

diff --git a/dev-libs/grantlee/files/grantlee-9999-slot.patch b/dev-libs/grantlee/files/grantlee-5.3.0-slot.patch
similarity index 78%
rename from dev-libs/grantlee/files/grantlee-9999-slot.patch
rename to dev-libs/grantlee/files/grantlee-5.3.0-slot.patch
index 9490df2327..896290499d 100644
--- a/dev-libs/grantlee/files/grantlee-9999-slot.patch
+++ b/dev-libs/grantlee/files/grantlee-5.3.0-slot.patch
@@ -1,31 +1,28 @@
-From 0bf2a3f667a958b3cc7859cc2fe60ca8a7ccac08 Mon Sep 17 00:00:00 2001
+From f9dda5f8a81c18c59eabcea515084253c284803a Mon Sep 17 00:00:00 2001
 From: Andreas Sturmlechner <asturm@gentoo.org>
 Date: Sat, 30 Nov 2019 11:55:33 +0100
 Subject: [PATCH] Install headers to a custom location to permit slotting
 
 That was previously necessary with Qt4 version, let's keep it while
 Qt6 is around the corner.
-
-Amended with target_include_directories fix by jospezial.
-
 ---
  templates/lib/CMakeLists.txt    | 5 +++--
  textdocument/lib/CMakeLists.txt | 5 +++--
  2 files changed, 6 insertions(+), 4 deletions(-)
 
 diff --git a/templates/lib/CMakeLists.txt b/templates/lib/CMakeLists.txt
-index 5058481..3ef29a4 100644
+index 07a192c..9049bdc 100644
 --- a/templates/lib/CMakeLists.txt
 +++ b/templates/lib/CMakeLists.txt
-@@ -101,6 +101,7 @@ if (Qt5Qml_FOUND)
+@@ -101,6 +101,7 @@ if (Qt5Qml_FOUND OR Qt6Qml_FOUND)
  
    target_sources(Grantlee_Templates PRIVATE ${scriptabletags_SRCS})
    target_include_directories(Grantlee_Templates PRIVATE ../scriptabletags)
 +  target_include_directories(Grantlee_Templates INTERFACE "$<INSTALL_INTERFACE:include/grantlee5>")
-   target_link_libraries(Grantlee_Templates
-     PRIVATE Qt5::Qml
-   )
-@@ -152,10 +153,10 @@ install(FILES
+   if (GRANTLEE_BUILD_WITH_QT6)
+     target_link_libraries(Grantlee_Templates
+       PRIVATE Qt6::Qml
+@@ -164,10 +165,10 @@ install(FILES
    token.h
    util.h
    variable.h
@@ -39,18 +36,18 @@ index 5058481..3ef29a4 100644
 +  DESTINATION include/grantlee5 COMPONENT Templates
  )
 diff --git a/textdocument/lib/CMakeLists.txt b/textdocument/lib/CMakeLists.txt
-index 2c5a96f..c42d32a 100644
+index a472267..8134d83 100644
 --- a/textdocument/lib/CMakeLists.txt
 +++ b/textdocument/lib/CMakeLists.txt
 @@ -34,6 +34,7 @@ if (CMAKE_GENERATOR MATCHES "Visual Studio")
        )
    endforeach()
  endif()
-+target_include_directories(Grantlee_TextDocument INTERFACE "$<INSTALL_INTERFACE:include/grantlee5>")
++target_include_directories(Grantlee_TextDocument INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>")
  
- target_link_libraries(Grantlee_TextDocument
-   PUBLIC Qt5::Gui
-@@ -59,10 +60,10 @@ install(FILES
+ if (GRANTLEE_BUILD_WITH_QT6)
+   target_link_libraries(Grantlee_TextDocument
+@@ -65,10 +66,10 @@ install(FILES
    texthtmlbuilder.h
    mediawikimarkupbuilder.h
    ${CMAKE_CURRENT_BINARY_DIR}/grantlee_textdocument_export.h
@@ -64,4 +61,5 @@ index 2c5a96f..c42d32a 100644
 +  DESTINATION include/grantlee5 COMPONENT TextDocument
  )
 -- 
-2.24.0
+2.37.3
+

diff --git a/dev-libs/grantlee/grantlee-9999.ebuild b/dev-libs/grantlee/grantlee-9999.ebuild
index 26b6932c53..133c2a70f0 100644
--- a/dev-libs/grantlee/grantlee-9999.ebuild
+++ b/dev-libs/grantlee/grantlee-9999.ebuild
@@ -15,10 +15,8 @@ SLOT="5"
 KEYWORDS=""
 IUSE="debug doc test"
 
-BDEPEND="
-	doc? ( app-doc/doxygen[dot] )
-	test? ( dev-qt/linguist-tools:5 )
-"
+RESTRICT="!test? ( test )"
+
 RDEPEND="
 	dev-qt/qtcore:5
 	dev-qt/qtdeclarative:5
@@ -27,12 +25,14 @@ RDEPEND="
 DEPEND="${RDEPEND}
 	test? ( dev-qt/qttest:5 )
 "
-
-RESTRICT="!test? ( test )"
+BDEPEND="
+	doc? ( app-doc/doxygen[dot] )
+	test? ( dev-qt/linguist-tools:5 )
+"
 
 PATCHES=(
 	"${FILESDIR}/${PN}-0.3.0-nonfatal-warnings.patch"
-	"${FILESDIR}/${P}-slot.patch"
+	"${FILESDIR}/${PN}-5.3.0-slot.patch" # TODO: Qt5 specific
 )
 
 src_configure() {


             reply	other threads:[~2022-09-14  9:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14  9:18 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-25 11:43 [gentoo-commits] proj/kde:master commit in: dev-libs/grantlee/, dev-libs/grantlee/files/ Andreas Sturmlechner
2019-12-21 23:52 Andreas Sturmlechner
2019-11-30 11:20 Andreas Sturmlechner
2013-08-01 23:15 Johannes Huber
2013-03-09 11:29 Andreas Hüttel
2012-03-22 11:44 Johannes Huber

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=1663147095.a5abf6a3da6f8e3c71eaf00d3c182e1db9843d13.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