pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/dhcpcd-qt dhcpcd-qt: Switch to Qt5



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c698c1dd95f
branches:  trunk
changeset: 403588:0c698c1dd95f
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Tue Oct 29 12:39:13 2019 +0000

description:
dhcpcd-qt: Switch to Qt5

diffstat:

 net/dhcpcd-qt/Makefile                                              |  10 +-
 net/dhcpcd-qt/PLIST                                                 |   2 +-
 net/dhcpcd-qt/distinfo                                              |   9 ++-
 net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-preferences.cpp    |  37 ++++++++++
 net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-qt.cpp             |  18 ++++
 net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-qt.pro             |  13 +++
 net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-ssid.cpp           |  15 ++++
 net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-ssidmenuwidget.cpp |  16 ++++
 net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-wi.cpp             |  15 ++++
 net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_main.cpp                  |  14 +++
 10 files changed, 140 insertions(+), 9 deletions(-)

diffs (214 lines):

diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/Makefile
--- a/net/dhcpcd-qt/Makefile    Tue Oct 29 09:46:14 2019 +0000
+++ b/net/dhcpcd-qt/Makefile    Tue Oct 29 12:39:13 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2018/03/12 11:17:18 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2019/10/29 12:39:13 kamil Exp $
 #
 
 PKGNAME=               dhcpcd-qt-${DHCPCD_UI_VERSION}
-PKGREVISION=           3
+PKGREVISION=           4
 CATEGORIES=            net
 
 COMMENT=               Qt system tray monitor for dhcpcd
@@ -14,15 +14,11 @@
 
 USE_LANGUAGES=         c99 c++
 CONFIGURE_ARGS+=       --with-qt
-# Until I can get KDE4 to install...
 CONFIGURE_ARGS+=       --disable-notification
 
 INSTALL_MAKE_FLAGS+=   INSTALL_ROOT=${DESTDIR:Q}
 
-BUILDLINK_DEPMETHOD.qt4-tools= build
-
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
-.include "../../x11/qt4-libs/buildlink3.mk"
-.include "../../x11/qt4-tools/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/PLIST
--- a/net/dhcpcd-qt/PLIST       Tue Oct 29 09:46:14 2019 +0000
+++ b/net/dhcpcd-qt/PLIST       Tue Oct 29 12:39:13 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2014/10/06 19:46:59 roy Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/10/29 12:39:13 kamil Exp $
 bin/dhcpcd-qt
 man/man8/dhcpcd-qt.8
 share/applications/dhcpcd-qt.desktop
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/distinfo
--- a/net/dhcpcd-qt/distinfo    Tue Oct 29 09:46:14 2019 +0000
+++ b/net/dhcpcd-qt/distinfo    Tue Oct 29 12:39:13 2019 +0000
@@ -1,6 +1,13 @@
-$NetBSD: distinfo,v 1.5 2015/11/04 00:34:57 agc Exp $
+$NetBSD: distinfo,v 1.6 2019/10/29 12:39:13 kamil Exp $
 
 SHA1 (dhcpcd-ui-0.7.5.tar.bz2) = 53a3f97043cd713f776970369fff0dcc3c3e8b89
 RMD160 (dhcpcd-ui-0.7.5.tar.bz2) = 85e279a85e9e141baff39f3db694a7d2dea6e461
 SHA512 (dhcpcd-ui-0.7.5.tar.bz2) = 78dba758f7cee825a1618c33b1fff9549c4e51e19fd5eebd1ae5d6a4686726ec8ad86dc1ec5384238b43589dd700979c694f48bc94e2844f1ef898292660a5d2
 Size (dhcpcd-ui-0.7.5.tar.bz2) = 209112 bytes
+SHA1 (patch-src_dhcpcd-qt_dhcpcd-preferences.cpp) = 6e60649922e10ab824199bbe83b20124f2c80e21
+SHA1 (patch-src_dhcpcd-qt_dhcpcd-qt.cpp) = f150d562cc95ebe2d76a484172517c4f6522052a
+SHA1 (patch-src_dhcpcd-qt_dhcpcd-qt.pro) = 6771c20993d6a9ba44d6132477d235919b848659
+SHA1 (patch-src_dhcpcd-qt_dhcpcd-ssid.cpp) = 7f6482362409057e76b9261510d275317e91c2a8
+SHA1 (patch-src_dhcpcd-qt_dhcpcd-ssidmenuwidget.cpp) = a0938125446fc85135d38cab6db68d089dd9de30
+SHA1 (patch-src_dhcpcd-qt_dhcpcd-wi.cpp) = f012b24528228c40465fd74a96b39a4fa845b144
+SHA1 (patch-src_dhcpcd-qt_main.cpp) = dc78ddf047f0c46f37517e59326aadb457137d4c
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-preferences.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-preferences.cpp  Tue Oct 29 12:39:13 2019 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-src_dhcpcd-qt_dhcpcd-preferences.cpp,v 1.1 2019/10/29 12:39:13 kamil Exp $
+
+Port to Qt5.
+
+--- src/dhcpcd-qt/dhcpcd-preferences.cpp.orig  2015-01-07 09:18:28.000000000 +0000
++++ src/dhcpcd-qt/dhcpcd-preferences.cpp
+@@ -182,10 +182,10 @@ void DhcpcdPreferences::listBlocks(const
+       blocks->disconnect(this);
+ 
+       free(eWhat);
+-      eWhat = strdup(txt.toLower().toAscii());
++      eWhat = strdup(txt.toLower().toLatin1());
+ 
+       list = dhcpcd_config_blocks(parent->getConnection(),
+-          txt.toLower().toAscii());
++          txt.toLower().toLatin1());
+ 
+       if (txt == "interface") {
+               char **ifaces, **i;
+@@ -294,7 +294,7 @@ const char *DhcpcdPreferences::getString
+ {
+       if (le->text().isEmpty())
+               return NULL;
+-      return le->text().trimmed().toAscii();
++      return le->text().trimmed().toLatin1();
+ }
+ 
+ bool DhcpcdPreferences::setOption(const char *opt, const char *val, bool *ret)
+@@ -405,7 +405,7 @@ void DhcpcdPreferences::showBlock(const 
+       if (txt.isEmpty())
+               eBlock = NULL;
+       else
+-              eBlock = strdup(txt.toAscii());
++              eBlock = strdup(txt.toLatin1());
+ 
+       dhcpcd_config_free(config);
+       iface = NULL;
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-qt.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-qt.cpp   Tue Oct 29 12:39:13 2019 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_dhcpcd-qt_dhcpcd-qt.cpp,v 1.1 2019/10/29 12:39:13 kamil Exp $
+
+Port to Qt5.
+
+--- src/dhcpcd-qt/dhcpcd-qt.cpp.orig   2015-01-07 09:18:28.000000000 +0000
++++ src/dhcpcd-qt/dhcpcd-qt.cpp
+@@ -226,9 +226,9 @@ void DhcpcdQt::updateOnline(bool showIf)
+                       if (showIf)
+                               qDebug() << msg;
+                       if (msgs.isEmpty())
+-                              msgs = QString::fromAscii(msg);
++                              msgs = QString::fromLatin1(msg);
+                       else
+-                              msgs += '\n' + QString::fromAscii(msg);
++                              msgs += '\n' + QString::fromLatin1(msg);
+                       free(msg);
+               } else if (showIf)
+                       qDebug() << i->ifname << i->reason;
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-qt.pro
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-qt.pro   Tue Oct 29 12:39:13 2019 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_dhcpcd-qt_dhcpcd-qt.pro,v 1.1 2019/10/29 12:39:13 kamil Exp $
+
+Port to Qt5.
+
+--- src/dhcpcd-qt/dhcpcd-qt.pro.orig   2015-01-07 09:18:28.000000000 +0000
++++ src/dhcpcd-qt/dhcpcd-qt.pro
+@@ -1,5 +1,6 @@
+ CONFIG+=              qt gui c++11 debug
+ QMAKE_CXXFLAGS+=      -std=c++11 -O2
++QT+=                  core gui widgets
+ 
+ HEADERS=              dhcpcd-qt.h dhcpcd-about.h dhcpcd-preferences.h \
+                       dhcpcd-wi.h dhcpcd-ifmenu.h \
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-ssid.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-ssid.cpp Tue Oct 29 12:39:13 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_dhcpcd-qt_dhcpcd-ssid.cpp,v 1.1 2019/10/29 12:39:13 kamil Exp $
+
+Fix compiler warning.
+
+--- src/dhcpcd-qt/dhcpcd-ssid.cpp.orig 2015-01-07 09:18:28.000000000 +0000
++++ src/dhcpcd-qt/dhcpcd-ssid.cpp
+@@ -74,8 +74,6 @@ DhcpcdSsid::DhcpcdSsid(DhcpcdWi *parent,
+ 
+ QString DhcpcdSsid::getPsk(bool *ok)
+ {
+-      int r;
+-
+       exec();
+       if (result() == QDialog::Rejected) {
+               if (ok)
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-ssidmenuwidget.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-ssidmenuwidget.cpp       Tue Oct 29 12:39:13 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_dhcpcd-qt_dhcpcd-ssidmenuwidget.cpp,v 1.1 2019/10/29 12:39:13 kamil Exp $
+
+Port to Qt5.
+
+--- src/dhcpcd-qt/dhcpcd-ssidmenuwidget.cpp.orig       2015-01-07 09:18:28.000000000 +0000
++++ src/dhcpcd-qt/dhcpcd-ssidmenuwidget.cpp
+@@ -115,7 +115,8 @@ void DhcpcdSsidMenuWidget::setScan(DHCPC
+               selicon->setPixmap(picon);
+               ssid->setStyleSheet("font:bold;");
+       } else {
+-              selicon->setPixmap(NULL);
++              QPixmap         emptyPixmap;
++              selicon->setPixmap(emptyPixmap);
+               ssid->setStyleSheet(NULL);
+       }
+       ssid->setText(scan->ssid);
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-wi.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_dhcpcd-wi.cpp   Tue Oct 29 12:39:13 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_dhcpcd-qt_dhcpcd-wi.cpp,v 1.1 2019/10/29 12:39:13 kamil Exp $
+
+Port to Qt5.
+
+--- src/dhcpcd-qt/dhcpcd-wi.cpp.orig   2015-01-07 09:18:28.000000000 +0000
++++ src/dhcpcd-qt/dhcpcd-wi.cpp
+@@ -300,7 +300,7 @@ void DhcpcdWi::connectSsid(DHCPCD_WI_SCA
+               if (pwd.isNull() || pwd.isEmpty())
+                       err = dhcpcd_wpa_select(wpa, &s);
+               else
+-                      err = dhcpcd_wpa_configure(wpa, &s, pwd.toAscii());
++                      err = dhcpcd_wpa_configure(wpa, &s, pwd.toLatin1());
+       } else
+               err = dhcpcd_wpa_configure(wpa, &s, NULL);
+ 
diff -r 305fe2d03629 -r 0c698c1dd95f net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_main.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dhcpcd-qt/patches/patch-src_dhcpcd-qt_main.cpp        Tue Oct 29 12:39:13 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_dhcpcd-qt_main.cpp,v 1.1 2019/10/29 12:39:13 kamil Exp $
+
+Port to Qt5.
+
+--- src/dhcpcd-qt/main.cpp.orig        2015-01-07 09:18:28.000000000 +0000
++++ src/dhcpcd-qt/main.cpp
+@@ -24,6 +24,7 @@
+  * SUCH DAMAGE.
+  */
+ 
++#include <QApplication>
+ #include <QtGui>
+ 
+ #include "dhcpcd-qt.h"



Home | Main Index | Thread Index | Old Index