ports/133788: New port: comms/cutecom-qt4 QT-based serial terminal
Jason Bacon
jwbacon at tds.net
Thu Apr 16 18:50:02 UTC 2009
>Number: 133788
>Category: ports
>Synopsis: New port: comms/cutecom-qt4 QT-based serial terminal
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 16 18:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Jason Bacon
>Release: 7.1-RELEASE
>Organization:
Acadix Consulting, LLC
>Environment:
FreeBSD sculpin.jbacon.dyndns.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
This is the newer version of cutecom, which requires QT4. The existing cutecom port is QT3 based, and no longer maintained. Cutecom is a simple, clean terminal emulator ideally suited for embedded programming/robotics.
>How-To-Repeat:
>Fix:
See attached shar.
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# comms/cutecom-qt4
# comms/cutecom-qt4/files
# comms/cutecom-qt4/files/patch-qcppdialogimpl.cpp
# comms/cutecom-qt4/files/patch-qcppdialogimpl.h
# comms/cutecom-qt4/files/patch-cutecommdlg.ui
# comms/cutecom-qt4/Makefile
# comms/cutecom-qt4/distinfo
# comms/cutecom-qt4/pkg-descr
#
echo c - comms/cutecom-qt4
mkdir -p comms/cutecom-qt4 > /dev/null 2>&1
echo c - comms/cutecom-qt4/files
mkdir -p comms/cutecom-qt4/files > /dev/null 2>&1
echo x - comms/cutecom-qt4/files/patch-qcppdialogimpl.cpp
sed 's/^X//' >comms/cutecom-qt4/files/patch-qcppdialogimpl.cpp << 'd2146afc58cebf46f54cb61ee78879bd'
X--- qcppdialogimpl.cpp.orig 2009-03-28 12:42:56.000000000 -0500
X+++ qcppdialogimpl.cpp 2009-03-28 12:44:32.000000000 -0500
X@@ -243,11 +243,10 @@
X bool entryFound=false;
X QStringList devices=settings.readListEntry("/cutecom/AllDevices", &entryFound);
X if (!entryFound)
X- devices<<"/dev/ttyS0"<<"/dev/ttyS1"<<"/dev/ttyS2"<<"/dev/ttyS3";
X+ devices<<DEVLIST;
X
X m_deviceCb->insertStringList(devices);
X-
X- m_deviceCb->setCurrentText(settings.readEntry("/cutecom/CurrentDevice", "/dev/ttyS0"));
X+ m_deviceCb->setCurrentText(settings.readEntry("/cutecom/CurrentDevice", DEFAULT_DEV));
X
X QStringList history=settings.readListEntry("/cutecom/History");
X
X@@ -932,9 +931,9 @@
X case 460800:
X _baud=B460800;
X break;
X- case 576000:
X- _baud=B576000;
X- break;
X+// case 576000:
X+// _baud=B576000;
X+// break;
X case 921600:
X _baud=B921600;
X break;
d2146afc58cebf46f54cb61ee78879bd
echo x - comms/cutecom-qt4/files/patch-qcppdialogimpl.h
sed 's/^X//' >comms/cutecom-qt4/files/patch-qcppdialogimpl.h << 'e64e871defe38895e79ccba7854c8ce0'
X--- qcppdialogimpl.h.orig 2008-03-12 16:09:50.000000000 -0500
X+++ qcppdialogimpl.h 2009-03-28 09:05:42.000000000 -0500
X@@ -103,4 +103,21 @@
X
X };
X
X+#if defined(__FreeBSD__)
X+
X+#define DEVLIST "/dev/cuaU0"<<"/dev/cuaU1"<<"/dev/cuad0"<<"/dev/cuad1";
X+#define DEFAULT_DEV "/dev/cuaU0"
X+
X+#elif defined(__APPLE__)
X+
X+#define DEVLIST "/dev/cu.usbserial"<<"/dev/cu.KeySerial1";
X+#define DEFAULT_DEV "/dev/cu.usbserial"
X+
X+#else // Default to Linux devices.
X+
X+#define DEVLIST "/dev/ttyS0"<<"/dev/ttyS1"<<"/dev/ttyS2"<<"/dev/ttyS3";
X+#define DEFAULT_DEV "/dev/ttyS0"
X+
X+#endif
X+
X #endif
e64e871defe38895e79ccba7854c8ce0
echo x - comms/cutecom-qt4/files/patch-cutecommdlg.ui
sed 's/^X//' >comms/cutecom-qt4/files/patch-cutecommdlg.ui << '28cf1d4bd04fdecf538e493d3b84806f'
X--- cutecommdlg.ui.orig 2008-03-12 16:09:50.000000000 -0500
X+++ cutecommdlg.ui 2009-03-28 12:46:04.000000000 -0500
X@@ -220,11 +220,6 @@
X </item>
X <item>
X <property name="text" >
X- <string>576000</string>
X- </property>
X- </item>
X- <item>
X- <property name="text" >
X <string>921600</string>
X </property>
X </item>
28cf1d4bd04fdecf538e493d3b84806f
echo x - comms/cutecom-qt4/Makefile
sed 's/^X//' >comms/cutecom-qt4/Makefile << '19bc780c61bcb45f74214ef9661511c4'
X# New ports collection makefile for: cutecom-qt4
X# Date created: 2009-02-28
X# Whom: Jason Bacon <jwbacon at tds.net>
X#
X# $FreeBSD$
X
XPORTNAME= cutecom
XPORTVERSION= 0.20.0
XCATEGORIES= comms
XMASTER_SITES= http://cutecom.sourceforge.net/ \
X http://personalpages.tds.net/~jwbacon/Ports/distfiles/
XPKGNAMESUFFIX= -qt4
X
XMAINTAINER= jwbacon at tds.net
XCOMMENT= Graphical serial terminal for embedded programming/robotics
X
XBUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake \
X cmake:${PORTSDIR}/devel/cmake
XRUN_DEPENDS= lsz:${PORTSDIR}/comms/lrzsz
X
XUSE_QT_VER= 4
XUSE_GMAKE= yes
X
XMAKE_ENV+= QTDIR="${QT_PREFIX}"
X
XPLIST_FILES= bin/cutecom share/applications/cutecom.desktop
X
Xdo-configure:
X cd ${WRKSRC} && cmake ${MAKE_ENV} .
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/cutecom ${PREFIX}/bin
X ${MKDIR} ${PREFIX}/share/applications
X ${INSTALL_DATA} ${WRKSRC}/cutecom.desktop ${PREFIX}/share/applications
X
X.include <bsd.port.mk>
19bc780c61bcb45f74214ef9661511c4
echo x - comms/cutecom-qt4/distinfo
sed 's/^X//' >comms/cutecom-qt4/distinfo << '6a5554cc568f99806100b3c098aa87ba'
XMD5 (cutecom-0.20.0.tar.gz) = a42394c3a29a2dc30edab721469f5eee
XSHA256 (cutecom-0.20.0.tar.gz) = 44bf6c3a827b5d3b3a2b201010215faebde6af42dc16f5e0f877c858c6e19fe0
XSIZE (cutecom-0.20.0.tar.gz) = 22217
6a5554cc568f99806100b3c098aa87ba
echo x - comms/cutecom-qt4/pkg-descr
sed 's/^X//' >comms/cutecom-qt4/pkg-descr << 'b150d4a2eb9a33ef763d45074e76dc89'
XCuteCom is a QT-based graphical serial terminal ideally suited to embedded
Xprogramming and robotics.
X
XWWW: http://cutecom.sourceforge.net/
b150d4a2eb9a33ef763d45074e76dc89
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list