public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libqt6pas/files/, dev-libs/libqt6pas/
@ 2024-06-09 16:13 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-06-09 16:13 UTC (permalink / raw
  To: gentoo-commits

commit:     e8ea69eb937e120e2ac957dedb9acf510292fb0f
Author:     Denis Pronin <dannftk <AT> yandex <DOT> ru>
AuthorDate: Fri May 10 11:41:20 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  9 16:07:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8ea69eb

dev-libs/libqt6pas: add patch with QString_isSimpleText being removed

QString::isSimpleText does not exist any longer

Signed-off-by: Denis Pronin <dannftk <AT> yandex.ru>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...-1.0.0-remove-wrapper-of-undefined-method.patch | 29 ++++++++++++++++++++++
 dev-libs/libqt6pas/libqt6pas-1.0.0.ebuild          |  4 +++
 2 files changed, 33 insertions(+)

diff --git a/dev-libs/libqt6pas/files/libqt6pas-1.0.0-remove-wrapper-of-undefined-method.patch b/dev-libs/libqt6pas/files/libqt6pas-1.0.0-remove-wrapper-of-undefined-method.patch
new file mode 100644
index 000000000000..a1fad05aa7c7
--- /dev/null
+++ b/dev-libs/libqt6pas/files/libqt6pas-1.0.0-remove-wrapper-of-undefined-method.patch
@@ -0,0 +1,29 @@
+Author: Denis Pronin <dannftk@yandex.ru>
+
+Description: the patch is required to make the libqt6pas project compile since 
+QT6 does not have QString::isSimpleText() method any longer
+
+--- a/src/qstring_c.cpp
++++ b/src/qstring_c.cpp
+@@ -1073,11 +1073,6 @@
+ 	return (bool) ((QString *)handle)->isNull();
+ }
+ 
+-bool QString_isSimpleText(QStringH handle)
+-{
+-	return (bool) ((QString *)handle)->isSimpleText();
+-}
+-
+ bool QString_isRightToLeft(QStringH handle)
+ {
+ 	return (bool) ((QString *)handle)->isRightToLeft();
+--- a/src/qstring_c.h
++++ b/src/qstring_c.h
+@@ -166,7 +166,6 @@
+ C_EXPORT void QString_push_front(QStringH handle, PWideChar c);
+ C_EXPORT void QString_push_front2(QStringH handle, PWideString s);
+ C_EXPORT bool QString_isNull(QStringH handle);
+-C_EXPORT bool QString_isSimpleText(QStringH handle);
+ C_EXPORT bool QString_isRightToLeft(QStringH handle);
+ C_EXPORT void QString_chopped(QStringH handle, int len, PWideString retval);
+ C_EXPORT void QString_first(QStringH handle, int n, PWideString retval);

diff --git a/dev-libs/libqt6pas/libqt6pas-1.0.0.ebuild b/dev-libs/libqt6pas/libqt6pas-1.0.0.ebuild
index 95d53b12cd0a..26de772a8409 100644
--- a/dev-libs/libqt6pas/libqt6pas-1.0.0.ebuild
+++ b/dev-libs/libqt6pas/libqt6pas-1.0.0.ebuild
@@ -21,6 +21,10 @@ DEPEND="
 
 S="${WORKDIR}/lazarus/lcl/interfaces/qt6/cbindings"
 
+PATCHES=(
+	"${FILESDIR}/${PN}-1.0.0-remove-wrapper-of-undefined-method.patch"
+)
+
 src_configure() {
 	eqmake6 Qt6Pas.pro
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-09 16:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-09 16:13 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libqt6pas/files/, dev-libs/libqt6pas/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox