1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Upgrade to 0.9.5.

PR:		ports/80923
Submitted by:	chinsan <chinsan@mail2000.com.tw>
Approved by:	maintainer
This commit is contained in:
Vanilla I. Shu 2005-05-12 06:51:20 +00:00
parent 9b04af568b
commit d2880d27ba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135110
18 changed files with 224 additions and 70 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= gcin
PORTVERSION= 0.9.3
PORTVERSION= 0.9.5
CATEGORIES= chinese
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/
@ -26,9 +26,14 @@ USE_GCC= 3.4
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in Changelog README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules
@${CAT} ${PKGMESSAGE}
@${ECHO}
@${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
@${ECHO}
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (gcin-0.9.3.tar.bz2) = 6fc8be96ee415af8496fb4e4e5cfbaa0
SIZE (gcin-0.9.3.tar.bz2) = 1168314
MD5 (gcin-0.9.5.tar.bz2) = b3d5be7313894957fc49b0593197e553
SIZE (gcin-0.9.5.tar.bz2) = 1166960

View File

@ -0,0 +1,46 @@
--- gcin-setup-pho.c.orig Thu May 12 09:56:35 2005
+++ gcin-setup-pho.c Thu May 12 10:28:40 2005
@@ -42,8 +42,8 @@
{"?¸æ????å­?", TSIN_SPACE_OPT_SELECT_CHAR},
{"???編輯?????�", TSIN_SPACE_OPT_FLUSH_BUFFER},
};
-int tsin_space_optionsN = sizeof(tsin_space_options) / sizeof(tsin_space_options[0]);
+int tsin_space_optionsN = sizeof(tsin_space_options) / sizeof(tsin_space_options[0]);
static int kbm_selN = sizeof(kbm_sel) / sizeof(kbm_sel[0]);
@@ -245,6 +245,16 @@
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
}
+ GtkWidget *frame_phonetic_char_dynamic_sequence = gtk_frame_new("注é?ä¾?½¿?¨é???ª¿?´é ??");
+ gtk_box_pack_start (GTK_BOX (vbox_top), frame_phonetic_char_dynamic_sequence , TRUE, TRUE, 0);
+ gtk_container_set_border_width (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), 3);
+ check_button_phonetic_char_dynamic_sequence = gtk_check_button_new ();
+ gtk_container_add (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence),
+ check_button_phonetic_char_dynamic_sequence);
+ gtk_toggle_button_set_active(
+ GTK_TOGGLE_BUTTON(check_button_phonetic_char_dynamic_sequence),
+ phonetic_char_dynamic_sequence);
+
GtkWidget *frame_tsin_sw = gtk_frame_new("è©??輸å?[ä¸?/?±]???");
gtk_box_pack_start (GTK_BOX (vbox_top), frame_tsin_sw, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (frame_tsin_sw), 3);
@@ -306,16 +316,6 @@
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_button_phrase_pre_select),
tsin_phrase_pre_select);
-
- GtkWidget *frame_phonetic_char_dynamic_sequence = gtk_frame_new("注é?ä¾?½¿?¨é???ª¿?´é ??");
- gtk_box_pack_start (GTK_BOX (vbox_top), frame_phonetic_char_dynamic_sequence , TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), 3);
- check_button_phonetic_char_dynamic_sequence = gtk_check_button_new ();
- gtk_container_add (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence),
- check_button_phonetic_char_dynamic_sequence);
- gtk_toggle_button_set_active(
- GTK_TOGGLE_BUTTON(check_button_phonetic_char_dynamic_sequence),
- phonetic_char_dynamic_sequence);
GtkWidget *frame_tsin_disp_status_row = gtk_frame_new("�?顯示?????(�?�?)");
gtk_box_pack_start (GTK_BOX (vbox_top), frame_tsin_disp_status_row , TRUE, TRUE, 0);

View File

@ -0,0 +1,11 @@
--- tsin.c.orig Thu May 12 04:08:09 2005
+++ tsin.c Thu May 12 04:08:45 2005
@@ -1107,7 +1107,7 @@
static gboolean pre_punctuation(KeySym xkey)
{
static char shift_punc[]="<>?:\"{}!";
- static char chars[]="ï¼????ï¼???????";
+ static char chars[]="ï¼????ï¼???????";
char *p;

View File

@ -1,5 +1,5 @@
--- about.c.orig Thu May 5 11:32:39 2005
+++ about.c Thu May 5 11:41:34 2005
--- about.c.orig Sat Feb 26 21:42:00 2005
+++ about.c Thu May 12 04:02:17 2005
@@ -69,10 +69,16 @@
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 3);
@ -10,7 +10,7 @@
- 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/");
+ GtkWidget *label_FreeBSD = gtk_label_new ("Feedback:\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);

View File

@ -1,11 +0,0 @@
--- im-client/gcin-im-client.c.orig Fri Mar 25 16:52:27 2005
+++ im-client/gcin-im-client.c Sat Apr 23 21:43:56 2005
@@ -71,7 +71,7 @@
#if FREEBSD
setgrp();
#else
- setpgrp();
+ setpgrp(0, getpid());
#endif
execl(execbin, "gcin", NULL);
} else {

View File

@ -0,0 +1,39 @@
--- gcin-setup.c.orig Thu May 12 14:38:04 2005
+++ gcin-setup.c Thu May 12 14:39:09 2005
@@ -609,22 +609,21 @@
GtkWidget *vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (main_window), vbox);
- GtkWidget *button_kbm = gtk_button_new_with_label("gcin 注音/詞音設定");
- gtk_box_pack_start (GTK_BOX (vbox), button_kbm, TRUE, TRUE, 0);
- g_signal_connect (G_OBJECT (button_kbm), "clicked",
- G_CALLBACK (cb_kbm), NULL);
-
GtkWidget *button_appearance_conf = gtk_button_new_with_label("外觀設定");
gtk_box_pack_start (GTK_BOX (vbox), button_appearance_conf, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button_appearance_conf), "clicked",
G_CALLBACK (cb_appearance_conf), NULL);
+ GtkWidget *button_kbm = gtk_button_new_with_label("gcin 注音/詞音設定");
+ gtk_box_pack_start (GTK_BOX (vbox), button_kbm, TRUE, TRUE, 0);
+ g_signal_connect (G_OBJECT (button_kbm), "clicked",
+ G_CALLBACK (cb_kbm), NULL);
+
GtkWidget *button_gtab_conf = gtk_button_new_with_label("倉頡/行列/嘸蝦米/大易設定");
gtk_box_pack_start (GTK_BOX (vbox), button_gtab_conf, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button_gtab_conf), "clicked",
G_CALLBACK (cb_gtab_conf), NULL);
-
GtkWidget *button_default_input_method = gtk_button_new_with_label("內定輸入法 & 開啟/關閉");
gtk_box_pack_start (GTK_BOX (vbox), button_default_input_method, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button_default_input_method), "clicked",
@@ -655,7 +654,7 @@
g_signal_connect (G_OBJECT (button_ts_import_sys), "clicked",
G_CALLBACK (cb_ts_import_sys), NULL);
- GtkWidget *button_alt_shift = gtk_button_new_with_label("alt-shift 片語編輯");
+ GtkWidget *button_alt_shift = gtk_button_new_with_label("Alt-Shift 片語編輯");
gtk_box_pack_start (GTK_BOX (vbox), button_alt_shift, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button_alt_shift), "clicked",
G_CALLBACK (cb_alt_shift), NULL);

View File

@ -1,15 +0,0 @@
--- im-srv/im-srv.c.orig Thu Apr 7 09:11:24 2005
+++ im-srv/im-srv.c Thu Apr 7 09:11:01 2005
@@ -121,7 +121,12 @@
char sock_path[128];
get_gcin_im_srv_sock_path(sock_path, sizeof(sock_path));
strcpy(serv_addr.sun_path, sock_path);
+
+#ifdef SUN_LEN
+ servlen = SUN_LEN (&serv_addr);
+#else
servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
+#endif
dbg("-- %s\n",serv_addr.sun_path);
struct stat st;

View File

@ -35,8 +35,8 @@ lib/libgcin-im-client.so
%%DATADIR%%/table/tsin.idx
%%DATADIR%%/table/zo.kbm
%%DATADIR%%/table/zo-asdf.kbm
%%DOCSDIR%%/README
%%DOCSDIR%%/Changelog
%%DOCSDIR%%/README
share/applications/gcin.desktop
share/applications/gcin-setup.desktop
share/icons/gcin.png
@ -50,3 +50,5 @@ share/icons/gcin/pin-float16.png
@unexec rmdir %D/%%DATADIR%%/script 2>/dev/null || true
@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true
@unexec rmdir %D/lib/gtk-2.0/immodules 2>/dev/null || true
@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules

View File

@ -6,7 +6,7 @@
#
PORTNAME= gcin
PORTVERSION= 0.9.3
PORTVERSION= 0.9.5
CATEGORIES= chinese
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/
@ -26,9 +26,14 @@ USE_GCC= 3.4
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in Changelog README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules
@${CAT} ${PKGMESSAGE}
@${ECHO}
@${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
@${ECHO}
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (gcin-0.9.3.tar.bz2) = 6fc8be96ee415af8496fb4e4e5cfbaa0
SIZE (gcin-0.9.3.tar.bz2) = 1168314
MD5 (gcin-0.9.5.tar.bz2) = b3d5be7313894957fc49b0593197e553
SIZE (gcin-0.9.5.tar.bz2) = 1166960

View File

@ -0,0 +1,46 @@
--- gcin-setup-pho.c.orig Thu May 12 09:56:35 2005
+++ gcin-setup-pho.c Thu May 12 10:28:40 2005
@@ -42,8 +42,8 @@
{"?¸æ????å­?", TSIN_SPACE_OPT_SELECT_CHAR},
{"???編輯?????�", TSIN_SPACE_OPT_FLUSH_BUFFER},
};
-int tsin_space_optionsN = sizeof(tsin_space_options) / sizeof(tsin_space_options[0]);
+int tsin_space_optionsN = sizeof(tsin_space_options) / sizeof(tsin_space_options[0]);
static int kbm_selN = sizeof(kbm_sel) / sizeof(kbm_sel[0]);
@@ -245,6 +245,16 @@
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
}
+ GtkWidget *frame_phonetic_char_dynamic_sequence = gtk_frame_new("注é?ä¾?½¿?¨é???ª¿?´é ??");
+ gtk_box_pack_start (GTK_BOX (vbox_top), frame_phonetic_char_dynamic_sequence , TRUE, TRUE, 0);
+ gtk_container_set_border_width (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), 3);
+ check_button_phonetic_char_dynamic_sequence = gtk_check_button_new ();
+ gtk_container_add (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence),
+ check_button_phonetic_char_dynamic_sequence);
+ gtk_toggle_button_set_active(
+ GTK_TOGGLE_BUTTON(check_button_phonetic_char_dynamic_sequence),
+ phonetic_char_dynamic_sequence);
+
GtkWidget *frame_tsin_sw = gtk_frame_new("è©??輸å?[ä¸?/?±]???");
gtk_box_pack_start (GTK_BOX (vbox_top), frame_tsin_sw, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (frame_tsin_sw), 3);
@@ -306,16 +316,6 @@
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_button_phrase_pre_select),
tsin_phrase_pre_select);
-
- GtkWidget *frame_phonetic_char_dynamic_sequence = gtk_frame_new("注é?ä¾?½¿?¨é???ª¿?´é ??");
- gtk_box_pack_start (GTK_BOX (vbox_top), frame_phonetic_char_dynamic_sequence , TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), 3);
- check_button_phonetic_char_dynamic_sequence = gtk_check_button_new ();
- gtk_container_add (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence),
- check_button_phonetic_char_dynamic_sequence);
- gtk_toggle_button_set_active(
- GTK_TOGGLE_BUTTON(check_button_phonetic_char_dynamic_sequence),
- phonetic_char_dynamic_sequence);
GtkWidget *frame_tsin_disp_status_row = gtk_frame_new("�?顯示?????(�?�?)");
gtk_box_pack_start (GTK_BOX (vbox_top), frame_tsin_disp_status_row , TRUE, TRUE, 0);

View File

@ -0,0 +1,11 @@
--- tsin.c.orig Thu May 12 04:08:09 2005
+++ tsin.c Thu May 12 04:08:45 2005
@@ -1107,7 +1107,7 @@
static gboolean pre_punctuation(KeySym xkey)
{
static char shift_punc[]="<>?:\"{}!";
- static char chars[]="ï¼????ï¼???????";
+ static char chars[]="ï¼????ï¼???????";
char *p;

View File

@ -1,5 +1,5 @@
--- about.c.orig Thu May 5 11:32:39 2005
+++ about.c Thu May 5 11:41:34 2005
--- about.c.orig Sat Feb 26 21:42:00 2005
+++ about.c Thu May 12 04:02:17 2005
@@ -69,10 +69,16 @@
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 3);
@ -10,7 +10,7 @@
- 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/");
+ GtkWidget *label_FreeBSD = gtk_label_new ("Feedback:\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);

View File

@ -1,11 +0,0 @@
--- im-client/gcin-im-client.c.orig Fri Mar 25 16:52:27 2005
+++ im-client/gcin-im-client.c Sat Apr 23 21:43:56 2005
@@ -71,7 +71,7 @@
#if FREEBSD
setgrp();
#else
- setpgrp();
+ setpgrp(0, getpid());
#endif
execl(execbin, "gcin", NULL);
} else {

View File

@ -0,0 +1,39 @@
--- gcin-setup.c.orig Thu May 12 14:38:04 2005
+++ gcin-setup.c Thu May 12 14:39:09 2005
@@ -609,22 +609,21 @@
GtkWidget *vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (main_window), vbox);
- GtkWidget *button_kbm = gtk_button_new_with_label("gcin 注音/詞音設定");
- gtk_box_pack_start (GTK_BOX (vbox), button_kbm, TRUE, TRUE, 0);
- g_signal_connect (G_OBJECT (button_kbm), "clicked",
- G_CALLBACK (cb_kbm), NULL);
-
GtkWidget *button_appearance_conf = gtk_button_new_with_label("外觀設定");
gtk_box_pack_start (GTK_BOX (vbox), button_appearance_conf, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button_appearance_conf), "clicked",
G_CALLBACK (cb_appearance_conf), NULL);
+ GtkWidget *button_kbm = gtk_button_new_with_label("gcin 注音/詞音設定");
+ gtk_box_pack_start (GTK_BOX (vbox), button_kbm, TRUE, TRUE, 0);
+ g_signal_connect (G_OBJECT (button_kbm), "clicked",
+ G_CALLBACK (cb_kbm), NULL);
+
GtkWidget *button_gtab_conf = gtk_button_new_with_label("倉頡/行列/嘸蝦米/大易設定");
gtk_box_pack_start (GTK_BOX (vbox), button_gtab_conf, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button_gtab_conf), "clicked",
G_CALLBACK (cb_gtab_conf), NULL);
-
GtkWidget *button_default_input_method = gtk_button_new_with_label("內定輸入法 & 開啟/關閉");
gtk_box_pack_start (GTK_BOX (vbox), button_default_input_method, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button_default_input_method), "clicked",
@@ -655,7 +654,7 @@
g_signal_connect (G_OBJECT (button_ts_import_sys), "clicked",
G_CALLBACK (cb_ts_import_sys), NULL);
- GtkWidget *button_alt_shift = gtk_button_new_with_label("alt-shift 片語編輯");
+ GtkWidget *button_alt_shift = gtk_button_new_with_label("Alt-Shift 片語編輯");
gtk_box_pack_start (GTK_BOX (vbox), button_alt_shift, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button_alt_shift), "clicked",
G_CALLBACK (cb_alt_shift), NULL);

View File

@ -1,15 +0,0 @@
--- im-srv/im-srv.c.orig Thu Apr 7 09:11:24 2005
+++ im-srv/im-srv.c Thu Apr 7 09:11:01 2005
@@ -121,7 +121,12 @@
char sock_path[128];
get_gcin_im_srv_sock_path(sock_path, sizeof(sock_path));
strcpy(serv_addr.sun_path, sock_path);
+
+#ifdef SUN_LEN
+ servlen = SUN_LEN (&serv_addr);
+#else
servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
+#endif
dbg("-- %s\n",serv_addr.sun_path);
struct stat st;

View File

@ -35,8 +35,8 @@ lib/libgcin-im-client.so
%%DATADIR%%/table/tsin.idx
%%DATADIR%%/table/zo.kbm
%%DATADIR%%/table/zo-asdf.kbm
%%DOCSDIR%%/README
%%DOCSDIR%%/Changelog
%%DOCSDIR%%/README
share/applications/gcin.desktop
share/applications/gcin-setup.desktop
share/icons/gcin.png
@ -50,3 +50,5 @@ share/icons/gcin/pin-float16.png
@unexec rmdir %D/%%DATADIR%%/script 2>/dev/null || true
@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true
@unexec rmdir %D/lib/gtk-2.0/immodules 2>/dev/null || true
@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules