ports/80651: [UPDATE] chinese/gcin: update to 0.9.3
chinsan
chinsan at mail2000.com.tw
Thu May 5 09:30:09 UTC 2005
>Number: 80651
>Category: ports
>Synopsis: [UPDATE] chinese/gcin: update to 0.9.3
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu May 05 09:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: chinsan
>Release: FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD chinsan.twbbs.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
- update to 0.9.3(which add ``simplex'' new input method)
- add pkg-message about gcin MINI-HOWTO
- add feedback URL into ``about'' dialog
- fix pkg-plist to make deinstall happy
- port maintainer(statue at freebsd.netlab.cse.yzu.edu.tw) is CC'd
>How-To-Repeat:
>Fix:
--- NEW.gcin.0.9.3.patch begins here ---
diff -ruN gcin.orig/Makefile gcin/Makefile
--- gcin.orig/Makefile Fri Apr 29 21:58:52 2005
+++ gcin/Makefile Thu May 5 12:16:10 2005
@@ -6,7 +6,7 @@
#
PORTNAME= gcin
-PORTVERSION= 0.9.2
+PORTVERSION= 0.9.3
CATEGORIES= chinese
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/
@@ -24,5 +24,11 @@
.if ${OSVERSION} <= 500034
USE_GCC= 3.4
.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO}
+ @${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
+ @${ECHO}
.include <bsd.port.post.mk>
diff -ruN gcin.orig/distinfo gcin/distinfo
--- gcin.orig/distinfo Fri Apr 29 21:58:52 2005
+++ gcin/distinfo Thu May 5 10:41:26 2005
@@ -1,2 +1,2 @@
-MD5 (gcin-0.9.2.tar.bz2) = d1b26b72f3fb6fbfb286cc64d5992ef9
-SIZE (gcin-0.9.2.tar.bz2) = 1109165
\ No newline at end of file
+MD5 (gcin-0.9.3.tar.bz2) = 6fc8be96ee415af8496fb4e4e5cfbaa0
+SIZE (gcin-0.9.3.tar.bz2) = 1168314
diff -ruN gcin.orig/files/patch-about.c gcin/files/patch-about.c
--- gcin.orig/files/patch-about.c Thu Jan 1 08:00:00 1970
+++ gcin/files/patch-about.c Thu May 5 11:42:04 2005
@@ -0,0 +1,20 @@
+--- about.c.orig Thu May 5 11:32:39 2005
++++ about.c Thu May 5 11:41:34 2005
+@@ -69,10 +69,16 @@
+ gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 3);
+
+ GtkWidget *separator = gtk_hseparator_new ();
++ GtkWidget *vseparator = gtk_vseparator_new ();
+ gtk_box_pack_start(GTK_BOX(vbox), separator, FALSE, FALSE, 3);
+
+- GtkWidget *label_sf = gtk_label_new ("http://www.csie.nctu.edu.tw/~cp76/gcin");
++ GtkWidget *label_sf = gtk_label_new ("gcin WWW:\nhttp://www.csie.nctu.edu.tw/~cp76/gcin");
++ gtk_misc_set_alignment (GTK_MISC (label_sf), 0, 0);
++ GtkWidget *label_FreeBSD = gtk_label_new ("FeeeBack:\nhttp://cle.linux.org.tw/gcin/");
++ gtk_misc_set_alignment (GTK_MISC (label_FreeBSD), 0, 0);
+ gtk_box_pack_start(GTK_BOX(vbox), label_sf, FALSE, FALSE, 0);
++ gtk_box_pack_start(GTK_BOX(vbox), vseparator, FALSE, FALSE, 3);
++ gtk_box_pack_start(GTK_BOX(vbox), label_FreeBSD, FALSE, FALSE, 0);
+
+
+ /* Now on to the image stuff */
diff -ruN gcin.orig/pkg-message gcin/pkg-message
--- gcin.orig/pkg-message Thu Jan 1 08:00:00 1970
+++ gcin/pkg-message Thu May 5 11:29:18 2005
@@ -0,0 +1,25 @@
+--------------------------------------------------------------------
+Remember to set environment varible:
+
+ (csh/tcsh) (sh/bash)
+ setenv XMODIFIERS @im=xcin export XMODIFIERS='@im=xcin'
+ setenv GTK_IM_MODULE xim export GTK_IM_MODULE=xim
+ setenv QT_IM_SWITCHER imsw-multi export QT_IM_SWITCHER=imsw-multi
+ setenv QT_IM_MODULE xim export QT_IM_MODULE=xim
+
+and set LANG, LC_CTYPE to one of zh_TW.UTF-8, zh_TW.Big5 value:
+ (csh/tcsh) (sh/bash)
+Big5: setenv LC_CTYPE zh_TW.Big5 export LC_CTYPE=zh_TW.Big5
+ setenv LANG zh_TW.Big5 export LANG=zh_TW.Big5
+or
+UTF-8:
+ setenv LC_CTYPE zh_TW.UTF-8 export LC_CTYPE=zh_TW.UTF-8
+ setenv LANG zh_TW.UTF-8 export LANG=zh_TW.UTF-8
+
+Finally, to start the GCIN input method daemon, use command:
+
+ exec gcin &
+
+If you get problem with gcin, please visit http://cle.linux.org.tw/gcin/
+Happy Gcining...:-)
+--------------------------------------------------------------------
diff -ruN gcin.orig/pkg-plist gcin/pkg-plist
--- gcin.orig/pkg-plist Fri Apr 22 23:55:09 2005
+++ gcin/pkg-plist Thu May 5 11:49:01 2005
@@ -25,9 +25,10 @@
%%DATADIR%%/table/hsu.kbm
%%DATADIR%%/table/ibm.kbm
%%DATADIR%%/table/jyutping.gtab
-%%DATADIR%%/table/phrase.table
-%%DATADIR%%/table/pho.tab
%%DATADIR%%/table/pho-huge.tab
+%%DATADIR%%/table/pho.tab
+%%DATADIR%%/table/phrase.table
+%%DATADIR%%/table/simplex.gtab
%%DATADIR%%/table/pinyin.gtab
%%DATADIR%%/table/symbol-table
%%DATADIR%%/table/tsin
@@ -41,11 +42,11 @@
share/icons/gcin.png
share/icons/gcin/pin-fixed24.png
share/icons/gcin/pin-float16.png
- at dirrm %%DOCSDIR%%
- at dirrm share/icons/gcin
+ at unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true
+ at unexec rmdir %D/share/icons/gcin 2>/dev/null || true
@unexec rmdir %D/share/applications 2>/dev/null || true
@unexec rmdir %D/share/icons 2>/dev/null || true
- at dirrm %%DATADIR%%/table
- at dirrm %%DATADIR%%/script
- at dirrm %%DATADIR%%
+ at unexec rmdir %D/%%DATADIR%%/table 2>/dev/null || true
+ at unexec rmdir %D/%%DATADIR%%/script 2>/dev/null || true
+ at unexec rmdir %D/%%DATADIR%% 2>/dev/null || true
@unexec rmdir %D/lib/gtk-2.0/immodules 2>/dev/null || true
--- NEW.gcin.0.9.3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list