Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 2008 12:38:50 GMT
From:      "Denise H. G." <darcsis@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/124267: [New port] chinese/fqterm: a Chinese BBS client
Message-ID:  <200806041238.m54CcoQl035404@www.freebsd.org>
Resent-Message-ID: <200806041240.m54Ce3Xj032733@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124267
>Category:       ports
>Synopsis:       [New port] chinese/fqterm: a Chinese BBS client
>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:   Wed Jun 04 12:40:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Denise H. G.
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
>Environment:
FreeBSD pluton.xbsd.name 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat May 31 03:37:33 CST 2008     dhg@pluton.xbsd.name:/opt/obj/usr/src/sys/pluton-SMP-ULE  amd64
>Description:
FQterm is a BBS client based on Qt4 libraries, supports
Simplified and Traditional Chinese BBSs, and with full
SSH2 support.
>How-To-Repeat:

>Fix:


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:
#
#	fqterm
#	fqterm/files
#	fqterm/files/patch-src_ui-popwidget.cpp
#	fqterm/files/patch-src_ui-fqterm_tool_button.h
#	fqterm/files/patch-CMakeLists.txt.linux
#	fqterm/files/pkg-install.in
#	fqterm/files/pkg-deinstall.in
#	fqterm/files/fqterm.desktop.in
#	fqterm/Makefile
#	fqterm/distinfo
#	fqterm/pkg-descr
#	fqterm/pkg-message
#	fqterm/pkg-plist
#
echo c - fqterm
mkdir -p fqterm > /dev/null 2>&1
echo c - fqterm/files
mkdir -p fqterm/files > /dev/null 2>&1
echo x - fqterm/files/patch-src_ui-popwidget.cpp
sed 's/^X//' >fqterm/files/patch-src_ui-popwidget.cpp << 'END-of-fqterm/files/patch-src_ui-popwidget.cpp'
X--- src/ui/popwidget.cpp.orig	2008-06-01 21:57:53.000000000 +0800
X+++ src/ui/popwidget.cpp	2008-06-01 21:59:55.000000000 +0800
X@@ -20,13 +20,11 @@
X 
X #include "popwidget.h"
X 
X-#include <qpixmap.h>
X-#include <qapplication.h>
X-#if (QT_VERSION>=300)
X-#include <qdesktopwidget.h>
X-#endif
X-#include <qtimer.h>
X-#include <qlabel.h>
X+#include <QPixmap>
X+#include <QApplication>
X+#include <QDesktopWidget>
X+#include <QTimer>
X+#include <QLabel>
X 
X #include <QMouseEvent>
X #include <QPalette>
END-of-fqterm/files/patch-src_ui-popwidget.cpp
echo x - fqterm/files/patch-src_ui-fqterm_tool_button.h
sed 's/^X//' >fqterm/files/patch-src_ui-fqterm_tool_button.h << 'END-of-fqterm/files/patch-src_ui-fqterm_tool_button.h'
X--- src/ui/fqterm_tool_button.h.orig	2008-06-01 22:01:46.000000000 +0800
X+++ src/ui/fqterm_tool_button.h	2008-06-01 22:02:22.000000000 +0800
X@@ -21,7 +21,7 @@
X #ifndef FQTERM_TOOL_BUTTON_H
X #define FQTERM_TOOL_BUTTON_H
X 
X-#include <qtoolbutton.h>
X+#include <QToolButton>
X 
X namespace FQTerm {
X 
END-of-fqterm/files/patch-src_ui-fqterm_tool_button.h
echo x - fqterm/files/patch-CMakeLists.txt.linux
sed 's/^X//' >fqterm/files/patch-CMakeLists.txt.linux << 'END-of-fqterm/files/patch-CMakeLists.txt.linux'
X--- CMakeLists.txt.linux.orig	2008-05-19 17:36:29.000000000 +0800
X+++ CMakeLists.txt.linux	2008-06-04 14:28:39.000000000 +0800
X@@ -7,6 +7,7 @@
X endif(FQTERM_USE_STATIC_QT)
X 
X ADD_DEFINITIONS(-Wall)
X+ADD_DEFINITIONS(-D_OS_FREEBSD_)
X ADD_DEFINITIONS(-DFQTERM_VERSION_STRING="\\"${FQTERM_VERSION}\\"")
X 
X add_subdirectory(src)
X@@ -42,6 +43,18 @@
X   ${QT_PLUGINS_DIR}/codecs/libqtwcodecs.a
X   jpeg
X   )
X+else(FQTERM_USE_STATIC_QT)
X+  set(FQ_QT_SHARED_PLUGINS
X+  ${QT_PLUGINS_DIR}/imageformats/libqgif.so
X+  ${QT_PLUGINS_DIR}/imageformats/libqjpeg.so
X+  ${QT_PLUGINS_DIR}/imageformats/libqmng.so
X+  ${QT_PLUGINS_DIR}/imageformats/libqsvg.so
X+  ${QT_PLUGINS_DIR}/imageformats/libqtiff.so
X+  ${QT_PLUGINS_DIR}/codecs/libqcncodecs.so
X+  ${QT_PLUGINS_DIR}/codecs/libqjpcodecs.so
X+  ${QT_PLUGINS_DIR}/codecs/libqkrcodecs.so
X+  ${QT_PLUGINS_DIR}/codecs/libqtwcodecs.so
X+  )
X endif(FQTERM_USE_STATIC_QT)
X 
X target_link_libraries(fqterm.bin
X@@ -54,6 +67,7 @@
X   ${QT_QTNETWORK_LIBRARIES}
X   ${QT_QTSCRIPT_LIBRARIES}  
X   ${FQ_QT_STATIC_PLUGINS}
X+  ${FQ_QT_SHARED_PLUGINS}
X   ${QT_LIBRARIES}
X   ${OPENSSL_LIBRARIES}
X )
END-of-fqterm/files/patch-CMakeLists.txt.linux
echo x - fqterm/files/pkg-install.in
sed 's/^X//' >fqterm/files/pkg-install.in << 'END-of-fqterm/files/pkg-install.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
Xif [ "$2" != "POST-INSTALL" ]; then
X        exit 0
Xfi
X
Xfqterm_icon=%%DATADIR%%/pic/fqterm.png
Xfqterm_icon_128=%%DATADIR%%/pic/fqterm_128x128.png
Xfqterm_icon_64=%%DATADIR%%/pic/fqterm_64x64.png
Xfqterm_icon_48=%%DATADIR%%/pic/fqterm_48x48.png
Xfqterm_icon_32=%%DATADIR%%/pic/fqterm_32x32.png
Xfqterm_icon_16=%%DATADIR%%/pic/fqterm_16x16.png
X
XTARGET_DIR=%%PREFIX%%/share/icons/hicolor
X
X[ -f $fqterm_icon ] && ln -s $fqterm_icon %%PREFIX%%/share/pixmaps/
X[ -f $fqterm_icon_128 ] && ln -s $fqterm_icon_128 $TARGET_DIR/128x128/apps/
X[ -f $fqterm_icon_64 ] && ln -s $fqterm_icon_64 $TARGET_DIR/64x64/apps/
X[ -f $fqterm_icon_48 ] && ln -s $fqterm_icon_48 $TARGET_DIR/48x48/apps/
X[ -f $fqterm_icon_32 ] && ln -s $fqterm_icon_32 $TARGET_DIR/32x32/apps/
X[ -f $fqterm_icon_16 ] && ln -s $fqterm_icon_16 $TARGET_DIR/16x16/apps/
X
Xexit 0
END-of-fqterm/files/pkg-install.in
echo x - fqterm/files/pkg-deinstall.in
sed 's/^X//' >fqterm/files/pkg-deinstall.in << 'END-of-fqterm/files/pkg-deinstall.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
Xif [ "$2" != "POST-DEINSTALL" ]; then
X        exit 0
Xfi
X
XTARGET_DIR=%%PREFIX%%/share/icons/hicolor
X
Xfqterm_icon=%%PREFIX%%/share/pixmaps/fqterm.png
Xfqterm_icon_128=$TARGET_DIR/128x128/apps/fqterm_128x128.png
Xfqterm_icon_64=$TARGET_DIR/64x64/apps/fqterm_64x64.png
Xfqterm_icon_48=$TARGET_DIR/48x48/apps/fqterm_48x48.png
Xfqterm_icon_32=$TARGET_DIR/32x32/apps//fqterm_32x32.png
Xfqterm_icon_16=$TARGET_DIR/16x16/apps/fqterm_16x16.png
X
X
X
X[ -h $fqterm_icon ] && rm -f $fqterm_icon
X[ -h $fqterm_icon_128 ] && rm -f $fqterm_icon_128
X[ -h $fqterm_icon_64 ] && rm -f $fqterm_icon_64
X[ -h $fqterm_icon_48 ] && rm -f $fqterm_icon_48
X[ -h $fqterm_icon_32 ] && rm -f $fqterm_icon_32
X[ -h $fqterm_icon_16 ] && rm -f $fqterm_icon_16
X
Xexit 0
END-of-fqterm/files/pkg-deinstall.in
echo x - fqterm/files/fqterm.desktop.in
sed 's/^X//' >fqterm/files/fqterm.desktop.in << 'END-of-fqterm/files/fqterm.desktop.in'
X[Desktop Entry]
XCategories=Application;Network;
XEncoding=UTF-8
XType=Application
XName=FQTerm
XExec=fqterm -caption "%c" %i %m %u
XGenericName=BBS Client
XGenericName[zh_CN]=BBS
XGenericName[zh_TW]=BBS
XComment=BBS client based on Qt library in linux
XMimeTypes=
XTerminal=false
XIcon=%%PREFIX%%/share/pixmaps/fqterm.png
END-of-fqterm/files/fqterm.desktop.in
echo x - fqterm/Makefile
sed 's/^X//' >fqterm/Makefile << 'END-of-fqterm/Makefile'
X# New ports collection makefile for:	fqterm
X# Date created:					1 Jun 2008
X# Whom:							Denise H. G. <darcsis@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fqterm
XPORTVERSION=	0.9.3
XCATEGORIES=	chinese
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=	${PORTNAME}-${PORTVERSION}-src-r569${SUTRACT_SUFFIX}
XPKGNAMEPREFIX=	zh-
X
XMAINTAINER=	darcsis@gmail.com
XCOMMENT=	FQTerm is a BBS client for BSD/Linux
X
XPKGINSTALL=	${WRKDIR}/pkg-install
XPKGDEINSTALL=	${WRKDIR}/pkg-deinstall
XSUB_FILES=	pkg-install pkg-deinstall ${PORTNAME}.desktop
XUSE_XORG=	x11 ice xext xt xaw xpm xi xproto xextproto
XUSE_ZIP=	yes
XUSE_QT_VER=	4
XQT_COMPONENTS=	gui imageformats moc network qmake rcc uic \
X	codecs-cn codecs-tw codecs-jp codecs-kr
X
XHAS_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_CMAKE=	yes
XCMAKE_USE_PTHREAD=	yes
XCMAKE_INSTALL_PREFIX=	${PREFIX}
XCMAKE_ARGS=	-Wno-dev
X
XDATADIR=	${PREFIX}/share/FQTerm
X
XWRKSRC=	${WRKDIR}/${PORTNAME}
X
X.include <bsd.port.pre.mk>
X
Xdo-configure:
X	@cd ${WRKSRC} && ${MKDIR} build
X	@cd ${WRKSRC}/build && \
X		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${WRKSRC}
X
Xdo-build:
X	@cd ${WRKSRC}/build && ${GMAKE}
X
Xdo-install:
X	@cd ${WRKSRC}/build && ${GMAKE}	install/strip
X	@${MKDIR} ${PREFIX}/share/applications
X	@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop \
X		${PREFIX}/share/applications
X
Xpost-install:
X.if !defined(PACKAGE_BUILDING)
X	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-fqterm/Makefile
echo x - fqterm/distinfo
sed 's/^X//' >fqterm/distinfo << 'END-of-fqterm/distinfo'
XMD5 (fqterm-0.9.3-src-r569.zip) = c3a9956e0818c4f581aa83d9d2dff988
XSHA256 (fqterm-0.9.3-src-r569.zip) = 593107f8955e46eb7bffc109e2d0612f0bb3773e71d41a6bb028a62bf88c341d
XSIZE (fqterm-0.9.3-src-r569.zip) = 923120
END-of-fqterm/distinfo
echo x - fqterm/pkg-descr
sed 's/^X//' >fqterm/pkg-descr << 'END-of-fqterm/pkg-descr'
XFQTerm is a cross-platform terminal emulator program which supports
Xtelnet/ssh1/ssh2 protocols and can process ANSI control sequences. It
Xcan be used to login BBS sites or *NIX hosts.
X
XWWW: http://fqterm.googlecode.com/
END-of-fqterm/pkg-descr
echo x - fqterm/pkg-message
sed 's/^X//' >fqterm/pkg-message << 'END-of-fqterm/pkg-message'
X*************************************************************************
X  If you want to enable the IP location detection feature, please
X  download the IP location database file "QQWry.dat" and put a copy of
X  it under "$HOME/.fqterm". You can get "QQWry.dat" from this
X  project's home page or from other websites.
X*************************************************************************
END-of-fqterm/pkg-message
echo x - fqterm/pkg-plist
sed 's/^X//' >fqterm/pkg-plist << 'END-of-fqterm/pkg-plist'
Xbin/fqterm
Xbin/fqterm.bin
X%%DATADIR%%/credits
X%%DATADIR%%/cursor/end.xpm
X%%DATADIR%%/cursor/enter.xpm
X%%DATADIR%%/cursor/exit.xpm
X%%DATADIR%%/cursor/hand.xpm
X%%DATADIR%%/cursor/home.xpm
X%%DATADIR%%/cursor/mac_16x16/end.xpm
X%%DATADIR%%/cursor/mac_16x16/enter.xpm
X%%DATADIR%%/cursor/mac_16x16/exit.xpm
X%%DATADIR%%/cursor/mac_16x16/hand.xpm
X%%DATADIR%%/cursor/mac_16x16/home.xpm
X%%DATADIR%%/cursor/mac_16x16/next.xpm
X%%DATADIR%%/cursor/mac_16x16/pagedown.xpm
X%%DATADIR%%/cursor/mac_16x16/pageup.xpm
X%%DATADIR%%/cursor/mac_16x16/prev.xpm
X%%DATADIR%%/cursor/next.xpm
X%%DATADIR%%/cursor/pagedown.xpm
X%%DATADIR%%/cursor/pageup.xpm
X%%DATADIR%%/cursor/prev.xpm
X%%DATADIR%%/default_font.conf
X%%DATADIR%%/dict/fqterm_zh_CN.ts
X%%DATADIR%%/dict/ui_zh_CN.ts
X%%DATADIR%%/fqterm.desktop.in
X%%DATADIR%%/fqterm.icns
X%%DATADIR%%/fqterm.sh
X%%DATADIR%%/pic/address_book.png
X%%DATADIR%%/pic/ansi_color.png
X%%DATADIR%%/pic/anti_idle.png
X%%DATADIR%%/pic/auto_reconnect.png
X%%DATADIR%%/pic/auto_reply.png
X%%DATADIR%%/pic/beep.png
X%%DATADIR%%/pic/change_fonts.png
X%%DATADIR%%/pic/connect.png
X%%DATADIR%%/pic/copy.png
X%%DATADIR%%/pic/copy_with_color.png
X%%DATADIR%%/pic/disconnect.png
X%%DATADIR%%/pic/fqterm.png
X%%DATADIR%%/pic/fqterm_128x128.ico
X%%DATADIR%%/pic/fqterm_128x128.png
X%%DATADIR%%/pic/fqterm_16x16.ico
X%%DATADIR%%/pic/fqterm_16x16.png
X%%DATADIR%%/pic/fqterm_256x256.ico
X%%DATADIR%%/pic/fqterm_256x256.png
X%%DATADIR%%/pic/fqterm_32x32.ico
X%%DATADIR%%/pic/fqterm_32x32.png
X%%DATADIR%%/pic/fqterm_48x48.ico
X%%DATADIR%%/pic/fqterm_48x48.png
X%%DATADIR%%/pic/fqterm_64x64.ico
X%%DATADIR%%/pic/fqterm_64x64.png
X%%DATADIR%%/pic/fqterm_tray.png
X%%DATADIR%%/pic/get_article_fulltext.png
X%%DATADIR%%/pic/image_viewer.png
X%%DATADIR%%/pic/messagebox_critical.png
X%%DATADIR%%/pic/messagebox_info.png
X%%DATADIR%%/pic/messagebox_warning.png
X%%DATADIR%%/pic/mouse.png
X%%DATADIR%%/pic/paste.png
X%%DATADIR%%/pic/popwidget.png
X%%DATADIR%%/pic/preferences.png
X%%DATADIR%%/pic/quick_login.png
X%%DATADIR%%/pic/rectangle_selection.png
X%%DATADIR%%/pic/refresh.png
X%%DATADIR%%/pic/setup_shortcuts.png
X%%DATADIR%%/pic/shadow.png
X%%DATADIR%%/pic/tabpad.png
X%%DATADIR%%/pic/view_messages.png
X%%DATADIR%%/pic/ViewerButtons/adjustsize.png
X%%DATADIR%%/pic/ViewerButtons/next.png
X%%DATADIR%%/pic/ViewerButtons/open.png
X%%DATADIR%%/pic/ViewerButtons/prev.png
X%%DATADIR%%/pic/ViewerButtons/zoomin.png
X%%DATADIR%%/pic/ViewerButtons/zoomout.png
X%%DATADIR%%/schema/default.schema
X%%DATADIR%%/schema/Linux.schema
X%%DATADIR%%/schema/Softness.schema
X%%DATADIR%%/schema/VIM.schema
X%%DATADIR%%/schema/XTerm.schema
X%%DATADIR%%/skin/dpstyle/dpstyle.qss
X%%DATADIR%%/skin/dpstyle/image/checkbox_checked.png
X%%DATADIR%%/skin/dpstyle/image/checkbox_checked_hover.png
X%%DATADIR%%/skin/dpstyle/image/checkbox_checked_pressed.png
X%%DATADIR%%/skin/dpstyle/image/checkbox_unchecked.png
X%%DATADIR%%/skin/dpstyle/image/checkbox_unchecked_hover.png
X%%DATADIR%%/skin/dpstyle/image/checkbox_unchecked_pressed.png
X%%DATADIR%%/skin/dpstyle/image/down_arrow.png
X%%DATADIR%%/skin/dpstyle/image/down_arrow_disabled.png
X%%DATADIR%%/skin/dpstyle/image/frame.png
X%%DATADIR%%/skin/dpstyle/image/pagefold.png
X%%DATADIR%%/skin/dpstyle/image/pushbutton.png
X%%DATADIR%%/skin/dpstyle/image/pushbutton_hover.png
X%%DATADIR%%/skin/dpstyle/image/pushbutton_pressed.png
X%%DATADIR%%/skin/dpstyle/image/radiobutton_checked.png
X%%DATADIR%%/skin/dpstyle/image/radiobutton_checked_hover.png
X%%DATADIR%%/skin/dpstyle/image/radiobutton_checked_pressed.png
X%%DATADIR%%/skin/dpstyle/image/radiobutton_unchecked.png
X%%DATADIR%%/skin/dpstyle/image/radiobutton_unchecked_hover.png
X%%DATADIR%%/skin/dpstyle/image/radiobutton_unchecked_pressed.png
X%%DATADIR%%/skin/dpstyle/image/sizegrip.png
X%%DATADIR%%/skin/dpstyle/image/spindown.png
X%%DATADIR%%/skin/dpstyle/image/spindown_hover.png
X%%DATADIR%%/skin/dpstyle/image/spindown_off.png
X%%DATADIR%%/skin/dpstyle/image/spindown_pressed.png
X%%DATADIR%%/skin/dpstyle/image/spinup.png
X%%DATADIR%%/skin/dpstyle/image/spinup_hover.png
X%%DATADIR%%/skin/dpstyle/image/spinup_off.png
X%%DATADIR%%/skin/dpstyle/image/spinup_pressed.png
X%%DATADIR%%/skin/dpstyle/image/up_arrow.png
X%%DATADIR%%/skin/dpstyle/image/up_arrow_disabled.png
X%%DATADIR%%/skin/dpstyle/ReadMe.txt
X%%DATADIR%%/userconf/address.cfg.orig
X%%DATADIR%%/userconf/fqterm.cfg.orig
X%%DATADIR%%/userconf/language.cfg.orig
X%%DATADIR%%/userconf/README.txt
X%%DATADIR%%/dict/fqterm_zh_CN.qm
X%%DATADIR%%/dict/ui_zh_CN.qm
Xshare/applications/fqterm.desktop
X@dirrm %%DATADIR%%/cursor/mac_16x16
X@dirrm %%DATADIR%%/cursor
X@dirrm %%DATADIR%%/dict
X@dirrm %%DATADIR%%/pic/ViewerButtons
X@dirrm %%DATADIR%%/pic
X@dirrm %%DATADIR%%/schema
X@dirrm %%DATADIR%%/skin/dpstyle/image
X@dirrm %%DATADIR%%/skin/dpstyle
X@dirrm %%DATADIR%%/skin
X@dirrm %%DATADIR%%/userconf
X@dirrm %%DATADIR%%/
END-of-fqterm/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806041238.m54CcoQl035404>