[54864] trunk/dports/comms

ryandesign at macports.org ryandesign at macports.org
Mon Aug 3 01:05:52 PDT 2009


Revision: 54864
          http://trac.macports.org/changeset/54864
Author:   ryandesign at macports.org
Date:     2009-08-03 01:05:50 -0700 (Mon, 03 Aug 2009)
Log Message:
-----------
cutecom-qt4-mac: new port, version 0.20.0; closes #19341

Added Paths:
-----------
    trunk/dports/comms/cutecom-qt4-mac/
    trunk/dports/comms/cutecom-qt4-mac/Portfile
    trunk/dports/comms/cutecom-qt4-mac/files/
    trunk/dports/comms/cutecom-qt4-mac/files/patch-cutecommdlg.ui
    trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.cpp
    trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.h

Added: trunk/dports/comms/cutecom-qt4-mac/Portfile
===================================================================
--- trunk/dports/comms/cutecom-qt4-mac/Portfile	                        (rev 0)
+++ trunk/dports/comms/cutecom-qt4-mac/Portfile	2009-08-03 08:05:50 UTC (rev 54864)
@@ -0,0 +1,43 @@
+# $Id$
+
+PortSystem          1.0
+
+name                cutecom-qt4-mac
+version             0.20.0
+categories          comms
+maintainers         jwbacon at tds.net
+distname            cutecom-${version}
+description         Graphical serial terminal
+long_description    CuteCom is a graphical serial terminal, like minicom. \
+		    It is aimed mainly at hardware developers or other \
+		    people who need a terminal to talk to their devices.
+
+master_sites        http://cutecom.sourceforge.net/
+
+homepage            http://cutecom.sourceforge.net
+
+platforms           darwin
+depends_build       port:cmake
+depends_lib         port:qt4-mac
+
+patchfiles          patch-qcppdialogimpl.cpp \
+		    patch-qcppdialogimpl.h \
+		    patch-cutecommdlg.ui
+
+checksums           md5     a42394c3a29a2dc30edab721469f5eee \
+                    sha1    36d430ab25e7f53128c27f39f67a0fe9a2dd18af \
+                    rmd160  e8e3caf133ac19b320f66a898069f4c0698ad0a0
+
+build.env   QTDIR=${prefix}/libexec/qt4-mac
+configure.env	QTDIR=${prefix}/libexec/qt4-mac
+
+configure {
+	system "cmake -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake ."
+}
+
+destroot    {
+	xinstall ${worksrcpath}/cutecom ${destroot}${prefix}/bin
+	xinstall -d ${destroot}${prefix}/share/applnk/Utilities
+	xinstall ${worksrcpath}/cutecom.desktop ${destroot}${prefix}/share/applnk/Utilities
+}
+


Property changes on: trunk/dports/comms/cutecom-qt4-mac/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/comms/cutecom-qt4-mac/files/patch-cutecommdlg.ui
===================================================================
--- trunk/dports/comms/cutecom-qt4-mac/files/patch-cutecommdlg.ui	                        (rev 0)
+++ trunk/dports/comms/cutecom-qt4-mac/files/patch-cutecommdlg.ui	2009-08-03 08:05:50 UTC (rev 54864)
@@ -0,0 +1,24 @@
+--- cutecommdlg.ui.orig	2009-03-28 12:36:33.000000000 -0500
++++ cutecommdlg.ui	2009-03-28 12:36:48.000000000 -0500
+@@ -213,21 +213,6 @@
+          <string>230400</string>
+         </property>
+        </item>
+-       <item>
+-        <property name="text" >
+-         <string>460800</string>
+-        </property>
+-       </item>
+-       <item>
+-        <property name="text" >
+-         <string>576000</string>
+-        </property>
+-       </item>
+-       <item>
+-        <property name="text" >
+-         <string>921600</string>
+-        </property>
+-       </item>
+       </widget>
+      </item>
+      <item rowspan="4" row="0" column="3" >

Added: trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.cpp
===================================================================
--- trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.cpp	                        (rev 0)
+++ trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.cpp	2009-08-03 08:05:50 UTC (rev 54864)
@@ -0,0 +1,41 @@
+--- qcppdialogimpl.cpp.orig	2008-03-12 16:09:50.000000000 -0500
++++ qcppdialogimpl.cpp	2009-03-28 10:13:13.000000000 -0500
+@@ -243,11 +243,10 @@
+    bool entryFound=false;
+    QStringList devices=settings.readListEntry("/cutecom/AllDevices", &entryFound);
+    if (!entryFound)
+-      devices<<"/dev/ttyS0"<<"/dev/ttyS1"<<"/dev/ttyS2"<<"/dev/ttyS3";
++      devices<<DEVLIST;
+ 
+    m_deviceCb->insertStringList(devices);
+-
+-   m_deviceCb->setCurrentText(settings.readEntry("/cutecom/CurrentDevice", "/dev/ttyS0"));
++   m_deviceCb->setCurrentText(settings.readEntry("/cutecom/CurrentDevice", DEFAULT_DEV));
+ 
+    QStringList history=settings.readListEntry("/cutecom/History");
+ 
+@@ -929,15 +928,15 @@
+    case 230400:
+       _baud=B230400;
+       break;
+-   case 460800:
+-      _baud=B460800;
+-      break;
+-   case 576000:
+-      _baud=B576000;
+-      break;
+-   case 921600:
+-      _baud=B921600;
+-      break;
++//   case 460800:
++//      _baud=B460800;
++//      break;
++//   case 576000:
++//      _baud=B576000;
++//      break;
++//   case 921600:
++//      _baud=B921600;
++//      break;
+ //   case 128000:
+ //      _baud=B128000;
+ //      break;

Added: trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.h
===================================================================
--- trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.h	                        (rev 0)
+++ trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.h	2009-08-03 08:05:50 UTC (rev 54864)
@@ -0,0 +1,24 @@
+--- qcppdialogimpl.h.orig	2008-03-12 16:09:50.000000000 -0500
++++ qcppdialogimpl.h	2009-03-28 09:05:42.000000000 -0500
+@@ -103,4 +103,21 @@
+ 
+ };
+ 
++#if defined(__FreeBSD__)
++
++#define	DEVLIST	"/dev/cuaU0"<<"/dev/cuaU1"<<"/dev/cuad0"<<"/dev/cuad1";
++#define DEFAULT_DEV "/dev/cuaU0"
++
++#elif defined(__APPLE__)
++
++#define	DEVLIST	"/dev/cu.usbserial"<<"/dev/cu.KeySerial1";
++#define DEFAULT_DEV "/dev/cu.usbserial"
++
++#else	// Default to Linux devices.
++
++#define	DEVLIST	"/dev/ttyS0"<<"/dev/ttyS1"<<"/dev/ttyS2"<<"/dev/ttyS3";
++#define DEFAULT_DEV "/dev/ttyS0"
++
++#endif
++
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090803/89bc7032/attachment.html>


More information about the macports-changes mailing list