summaryrefslogtreecommitdiffstats
path: root/dev-python/pytqt
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2024-04-28 17:47:31 +0300
committerormorph <roma251078@mail.ru>2024-04-28 22:36:17 +0300
commitaf2a12ec6350852a1fd9c12ff845e230b57aa555 (patch)
treeeba6b53b9639172a64269850396125752317494f /dev-python/pytqt
parentf89c9441e67552f7a38cd46a7be2f399925eedf1 (diff)
downloadtde-packaging-gentoo-af2a12ec6350852a1fd9c12ff845e230b57aa555.tar.gz
tde-packaging-gentoo-af2a12ec6350852a1fd9c12ff845e230b57aa555.zip
Add patch for pytquic
Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'dev-python/pytqt')
-rw-r--r--dev-python/pytqt/files/pytqt-pytquic.patch44
-rw-r--r--dev-python/pytqt/pytqt-14.1.2.ebuild1
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/pytqt/files/pytqt-pytquic.patch b/dev-python/pytqt/files/pytqt-pytquic.patch
new file mode 100644
index 00000000..09119cd2
--- /dev/null
+++ b/dev-python/pytqt/files/pytqt-pytquic.patch
@@ -0,0 +1,44 @@
+diff --git a/pytquic3/form.cpp b/pytquic3/form.cpp
+index b0de614..323161e 100644
+--- a/pytquic3/form.cpp
++++ b/pytquic3/form.cpp
+@@ -340,12 +340,12 @@ void Uic::createFormImpl( const TQDomElement &e )
+ images += img;
+ out << indent << img << "_data = \\" << endl;
+ ++indent;
+- out << indent << "\"";
++ out << indent << "b\"";
+ int a ;
+ for ( a = 0; a < (int) (data.length()/2)-1; a++ ) {
+ out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]);
+ if ( a % 12 == 11 )
+- out << "\" \\" << endl << indent << "\"";
++ out << "\" \\" << endl << indent << "b\"";
+ }
+ out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]) << "\"" << endl;
+ --indent;
+@@ -391,7 +391,7 @@ void Uic::createFormImpl( const TQDomElement &e )
+ TQStringList::Iterator it;
+ for ( it = images.begin(); it != images.end(); ++it ) {
+ out << indent << "self." << (*it) << " = TQPixmap()" << endl;
+- out << indent << "self." << (*it) << ".loadFromData(" << (*it) << "_data,\"PNG\")" << endl;
++ out << indent << "self." << (*it) << ".loadFromData(" << (*it) << "_data,b\"PNG\")" << endl;
+ }
+ }
+ // create pixmaps for all images
+diff --git a/pytquic3/uic.cpp b/pytquic3/uic.cpp
+index d5d89dc..e4a5ad0 100644
+--- a/pytquic3/uic.cpp
++++ b/pytquic3/uic.cpp
+@@ -387,9 +387,9 @@ void Uic::createActionImpl( const TQDomElement &n, const TQString &parent )
+ for ( TQDomElement ae = n; !ae.isNull(); ae = ae.nextSibling().toElement() ) {
+ TQString objName = registerObject( getObjectName( ae ) );
+ if ( ae.tagName() == "action" )
+- out << indent << "self." << objName << " = TQAction(" << parent << ",\"" << objName << "\")" << endl;
++ out << indent << "self." << objName << " = TQAction(" << parent << ",b\"" << objName << "\")" << endl;
+ else if ( ae.tagName() == "actiongroup" )
+- out << indent << "self." << objName << " = TQActionGroup(" << parent << ",\"" << objName << "\")" << endl;
++ out << indent << "self." << objName << " = TQActionGroup(" << parent << ",b\"" << objName << "\")" << endl;
+ else
+ continue;
+ bool subActionsDone = FALSE;
diff --git a/dev-python/pytqt/pytqt-14.1.2.ebuild b/dev-python/pytqt/pytqt-14.1.2.ebuild
index c41e9025..c5a8970b 100644
--- a/dev-python/pytqt/pytqt-14.1.2.ebuild
+++ b/dev-python/pytqt/pytqt-14.1.2.ebuild
@@ -29,6 +29,7 @@ TQBASE="/usr/tqt3"
BUILD_DIR="${S}"
src_prepare() {
+ eapply "${FILESDIR}/${PN}-pytquic.patch"
eapply_user
}