ports/162466: New port: chinese/fcitx-sunpinyin
Zhihao Yuan
lichray at gmail.com
Fri Nov 11 09:00:20 UTC 2011
>Number: 162466
>Category: ports
>Synopsis: New port: chinese/fcitx-sunpinyin
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Nov 11 09:00:19 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Zhihao Yuan
>Release: FreeBSD 8.2-STABLE amd64
>Organization:
Northern Illinois University
>Environment:
System: FreeBSD elitebook.hp 8.2-STABLE FreeBSD 8.2-STABLE #3: Sun Oct 30 03:43:12 CDT 2011 lichray at elitebook.hp:/usr/obj/home/lichray/devel/freebsd-8/sys/HOUKAGO amd64
>Description:
Yes yes, finally. Welcome our first SunPinin front-end - fcitx-sunpinyin to FreeBSD. http://code.google.com/p/fcitx/
Note that this port does not pass `port test` but it's safe. It's an addon to fcitx and installs to where fcitx4 is. So its prefix is the same as fcitx.
This PR depends on ports/162465.
>How-To-Repeat:
>Fix:
I contacted the author to patch it for FreeBSD, and removed the noise messages on terminal.
--- fcitx-sunpinyin.shar begins here ---
# 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:
#
# fcitx-sunpinyin
# fcitx-sunpinyin/distinfo
# fcitx-sunpinyin/pkg-descr
# fcitx-sunpinyin/Makefile
# fcitx-sunpinyin/pkg-message
# fcitx-sunpinyin/files
# fcitx-sunpinyin/files/patch-src_eim.cpp
# fcitx-sunpinyin/files/patch-CMakeLists.txt
# fcitx-sunpinyin/pkg-plist
#
echo c - fcitx-sunpinyin
mkdir -p fcitx-sunpinyin > /dev/null 2>&1
echo x - fcitx-sunpinyin/distinfo
sed 's/^X//' >fcitx-sunpinyin/distinfo << '49878be87ae1f762a1d3ac08ebcf39d3'
XSHA256 (fcitx-sunpinyin-0.3.2.tar.bz2) = e22c6b64224ac7d50d62574980eaa180c9857f35c87b7450a185cd8e906a3577
XSIZE (fcitx-sunpinyin-0.3.2.tar.bz2) = 43008
49878be87ae1f762a1d3ac08ebcf39d3
echo x - fcitx-sunpinyin/pkg-descr
sed 's/^X//' >fcitx-sunpinyin/pkg-descr << 'b785de19cd55bdfa1fa31e124e3231ff'
XFcitx is a simple and fast Chinese XIM server. It comes with a script,
Xfcitx-configtool, which looks for this configure tool and invokes it.
X
XWWW: http://code.google.com/p/fcitx/
b785de19cd55bdfa1fa31e124e3231ff
echo x - fcitx-sunpinyin/Makefile
sed 's/^X//' >fcitx-sunpinyin/Makefile << '181227cc64702fde1c8e43bd8aebf986'
X# New ports collection makefile for: fcitx-sunpinyin
X# Date created: 10 Nov 2011
X# Whom: Zhihao Yuan <lichray at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= fcitx-sunpinyin
XPORTVERSION= 0.3.2
XCATEGORIES= chinese x11
XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
X
XMAINTAINER= lichray at gmail.com
XCOMMENT= SunPinyin support for Fcitx
X
XLIB_DEPENDS= fcitx-config.4:${PORTSDIR}/chinese/fcitx
X
XUSE_BZIP2= yes
XUSE_GNOME= gtk20 intltool gnomehack
XUSE_GETTEXT= yes
XUSE_CMAKE= yes
X
XPROJECTHOST= fcitx
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
181227cc64702fde1c8e43bd8aebf986
echo x - fcitx-sunpinyin/pkg-message
sed 's/^X//' >fcitx-sunpinyin/pkg-message << '92b6126d989cc3572e8bea931d2be675'
X************************************************************************
X
XYou probably need to remove the old configurations, i.e,
X rm -fr $HOME/.config/fcitx
Xbefore switching to the fcitx-sunpinyin back-end!
X
X************************************************************************
92b6126d989cc3572e8bea931d2be675
echo c - fcitx-sunpinyin/files
mkdir -p fcitx-sunpinyin/files > /dev/null 2>&1
echo x - fcitx-sunpinyin/files/patch-src_eim.cpp
sed 's/^X//' >fcitx-sunpinyin/files/patch-src_eim.cpp << '0acf9c2d7521676639ec71aafa504e9a'
X--- src/eim.cpp.orig 2011-09-29 01:58:59.000000000 -0500
X+++ src/eim.cpp 2011-11-11 02:25:11.839864988 -0600
X@@ -229,8 +229,6 @@ INPUT_RETURN_VALUE FcitxSunpinyinGetCand
X (ppd.size() - ppd.caret() + 1) * sizeof(TWCHAR));
X memcpy(sunpinyin->input_src, src, hzlen * sizeof(TWCHAR));
X
X- FcitxLog(INFO, "%d", ppd.candi_start());
X-
X sunpinyin->front_src[ppd.caret()] = 0;
X sunpinyin->end_src[ppd.size() - ppd.caret() + 1] = 0;
X sunpinyin->input_src[hzlen] = 0;
X@@ -396,6 +394,7 @@ void FcitxSunpinyinDestroy (void* arg)
X
X INPUT_RETURN_VALUE FcitxSunpinyinDeleteCandidate (FcitxSunpinyin* sunpinyin, CandidateWord* candWord)
X {
X+#if 0
X if (candWord->owner == sunpinyin)
X {
X CCandidateList pcl;
X@@ -406,6 +405,7 @@ INPUT_RETURN_VALUE FcitxSunpinyinDeleteC
X classicView->deleteCandidate(*index, mask);
X return IRV_DISPLAY_CANDWORDS;
X }
X+#endif
X return IRV_TO_PROCESS;
X }
X
0acf9c2d7521676639ec71aafa504e9a
echo x - fcitx-sunpinyin/files/patch-CMakeLists.txt
sed 's/^X//' >fcitx-sunpinyin/files/patch-CMakeLists.txt << '3b37fd04e371e20b3fae8770c731b58d'
X--- CMakeLists.txt~ 2011-09-29 01:58:59.000000000 -0500
X+++ CMakeLists.txt 2011-11-10 23:22:41.804644040 -0600
X@@ -10,7 +10,7 @@ FIND_PACKAGE(Libintl REQUIRED)
X FIND_PACKAGE(Gettext REQUIRED)
X FIND_PACKAGE(Fcitx 4.1.2 REQUIRED)
X
X-PKG_CHECK_MODULES(SUNPINYIN REQUIRED "sunpinyin-2.0 >= 2.0.4" )
X+PKG_CHECK_MODULES(SUNPINYIN REQUIRED "sunpinyin-2.0 >= 2.0.3" )
X
X # uninstall target
X configure_file(
3b37fd04e371e20b3fae8770c731b58d
echo x - fcitx-sunpinyin/pkg-plist
sed 's/^X//' >fcitx-sunpinyin/pkg-plist << '66985d256ea4f78bc4150579e91218a1'
Xlib/fcitx/fcitx-sunpinyin.so
Xshare/fcitx/addon/fcitx-sunpinyin.conf
Xshare/fcitx/configdesc/fcitx-sunpinyin.desc
Xshare/fcitx/skin/classic/sunpinyin.png
Xshare/fcitx/skin/dark/sunpinyin.png
Xshare/fcitx/skin/default/sunpinyin.png
Xshare/icons/hicolor/128x128/apps/fcitx-sunpinyin.png
Xshare/icons/hicolor/16x16/apps/fcitx-sunpinyin.png
Xshare/icons/hicolor/22x22/apps/fcitx-sunpinyin.png
Xshare/icons/hicolor/24x24/apps/fcitx-sunpinyin.png
Xshare/icons/hicolor/32x32/apps/fcitx-sunpinyin.png
Xshare/icons/hicolor/48x48/apps/fcitx-sunpinyin.png
Xshare/locale/zh_CN/LC_MESSAGES/fcitx-sunpinyin.mo
66985d256ea4f78bc4150579e91218a1
exit
--- fcitx-sunpinyin.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list