diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-22 22:14:22 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-22 22:14:22 +0800 |
commit | 0f11bad2a2bc34a971c9fc5686a65771e9413489 (patch) | |
tree | 3d68c2254176821f442fc9613996bc7256d73c07 /chinese | |
parent | 6e44213eaea74ca172673698cca0724052af16e8 (diff) | |
download | marcuscom-ports-0f11bad2a2bc34a971c9fc5686a65771e9413489.tar marcuscom-ports-0f11bad2a2bc34a971c9fc5686a65771e9413489.tar.gz marcuscom-ports-0f11bad2a2bc34a971c9fc5686a65771e9413489.tar.bz2 marcuscom-ports-0f11bad2a2bc34a971c9fc5686a65771e9413489.tar.lz marcuscom-ports-0f11bad2a2bc34a971c9fc5686a65771e9413489.tar.xz marcuscom-ports-0f11bad2a2bc34a971c9fc5686a65771e9413489.tar.zst marcuscom-ports-0f11bad2a2bc34a971c9fc5686a65771e9413489.zip |
share/gnome -> share
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8910 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/srecite/Makefile | 35 | ||||
-rw-r--r-- | chinese/srecite/distinfo | 6 | ||||
-rw-r--r-- | chinese/srecite/files/patch-minidict.c | 58 | ||||
-rw-r--r-- | chinese/srecite/files/patch-readword.c | 58 | ||||
-rw-r--r-- | chinese/srecite/files/patch-sentencewin.c | 12 | ||||
-rw-r--r-- | chinese/srecite/files/patch-testgame.c | 48 | ||||
-rw-r--r-- | chinese/srecite/files/patch-wordfile.c | 37 | ||||
-rw-r--r-- | chinese/srecite/files/srecite.desktop | 12 | ||||
-rw-r--r-- | chinese/srecite/pkg-descr | 7 | ||||
-rw-r--r-- | chinese/srecite/pkg-plist | 124 |
10 files changed, 397 insertions, 0 deletions
diff --git a/chinese/srecite/Makefile b/chinese/srecite/Makefile new file mode 100644 index 000000000..0607eb17e --- /dev/null +++ b/chinese/srecite/Makefile @@ -0,0 +1,35 @@ +# Ports collection makefile for: srecite +# Date created: 28 Oct 2004 +# Whom: hamigua <hamigua@cuc.cn> +# +# $FreeBSD$ +# + +PORTNAME= srecite +PORTVERSION= 0.6.2 +PORTREVISION= 5 +CATEGORIES= chinese textproc +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ + wordbooks-utf8.tar.gz +EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ + wordbooks-utf8.tar.gz + +MAINTAINER= liu_yinghong@yahoo.com.cn +COMMENT= A tool for the Chinese people to study foreign language + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" +USE_GMAKE= yes +USE_X_PREFIX= yes +USE_GNOME= gnomehack gnomeprefix libgnomeui + +WORDBOOKS_PATH= ${PREFIX}/share/${PORTNAME}/wordbooks + +post-install: + cd ${WRKDIR}/wordbooks && ${INSTALL_DATA} * ${WORDBOOKS_PATH} + ${INSTALL_DATA} ${FILESDIR}/srecite.desktop ${PREFIX}/share/applications + +.include <bsd.port.mk> diff --git a/chinese/srecite/distinfo b/chinese/srecite/distinfo new file mode 100644 index 000000000..9770172ea --- /dev/null +++ b/chinese/srecite/distinfo @@ -0,0 +1,6 @@ +MD5 (srecite-0.6.2.tar.gz) = 5b6a67b6bced25994f67f526be632991 +SHA256 (srecite-0.6.2.tar.gz) = ac1a94b1d2fb08173f5bcf22a3a62940818328f113eee5e1ce1151ceac6832dd +SIZE (srecite-0.6.2.tar.gz) = 424119 +MD5 (wordbooks-utf8.tar.gz) = 16b153d6cefc6fc6f2161ea2513d5184 +SHA256 (wordbooks-utf8.tar.gz) = 0da54659739a5a5deb1a328154a5e7f6e623708e66784d3cf340612cf84afb2a +SIZE (wordbooks-utf8.tar.gz) = 1562506 diff --git a/chinese/srecite/files/patch-minidict.c b/chinese/srecite/files/patch-minidict.c new file mode 100644 index 000000000..d96b7e9b0 --- /dev/null +++ b/chinese/srecite/files/patch-minidict.c @@ -0,0 +1,58 @@ +--- src/minidict.c~ Sun Nov 21 20:58:43 2004 ++++ src/minidict.c Sun Nov 21 21:00:12 2004 +@@ -195,12 +195,12 @@ + int do_CH_search(gchar word[256],int begin,int end) + { + +- g_print("CH search \n"); + int i ; + int flag=0; + + //init 0 + CH_line_index = 0; ++ g_print("CH search \n"); + + for(i=begin;i<=end;i++) + { +@@ -228,12 +228,12 @@ + //search EN successfully,show result + void dict_show_EN_success() + { +- g_print("search successfully !\n"); + gchar result_str[256]; + gchar ps1_str[256]; + gchar ps2_str[256]; + gchar ps3_str[256]; + ++ g_print("search successfully !\n"); + strcpy(result_str,""); + strcpy(ps1_str,""); + strcpy(ps2_str,""); +@@ -260,13 +260,13 @@ + //search CH successfully,show result + void dict_show_CH_success() + { +- g_print("search successfully !\n"); + int i; + struct line_st myline; + + gchar result_str[256]; + gchar ps1_str[256]; + ++ g_print("search successfully !\n"); + strcpy(result_str,""); + strcpy(ps1_str,""); + +@@ -315,11 +315,10 @@ + //search dict + static void dict_search() + { +- g_print("dict search!!\n"); + gchar word[256]; + int flag; + +- ++ g_print("dict search!!\n"); + strcpy(word,gtk_entry_get_text(GTK_ENTRY(input_entry))); + + if( (word[0] & 0x80) == 0x80 ) diff --git a/chinese/srecite/files/patch-readword.c b/chinese/srecite/files/patch-readword.c new file mode 100644 index 000000000..0d1467af7 --- /dev/null +++ b/chinese/srecite/files/patch-readword.c @@ -0,0 +1,58 @@ +--- src/readword.c~ Sun Nov 21 20:55:42 2004 ++++ src/readword.c Sun Nov 21 20:58:22 2004 +@@ -26,13 +26,14 @@ + + gboolean return_val = 0; + +- int n,i; ++ int n=0,i; + + + if(have_data_file && word && g_ascii_isalpha(word[0])) + { +- n=strlen(word); + gchar *lowerword = (gchar *)g_malloc(n+1); ++ gchar *filename; ++ n=strlen(word); + + for (i=0;i < n;i++) + { +@@ -40,7 +41,7 @@ + } + lowerword[n] = '\0'; + +- gchar *filename = g_strdup_printf( ++ filename = g_strdup_printf( + RP_TTS_DIR"%c/%s.wav", + lowerword[0],lowerword); + +@@ -61,9 +62,11 @@ + int n,i; + if (word && g_ascii_isalpha(word[0])) + { +- n=strlen(word); + + gchar *lowerword = (gchar *)g_malloc(n+1); ++ gchar *filename; ++ int fd; ++ n=strlen(word); + + for (i=0;i < n;i++) + { +@@ -72,15 +75,12 @@ + + lowerword[n] = '\0'; + +- +- gchar *filename; +- + filename = g_strdup_printf( + RP_TTS_DIR"%c/%s.wav", + lowerword[0],lowerword); + + //gnome_sound_play(filename); +- int fd = esd_open_sound(NULL); ++ fd = esd_open_sound(NULL); + if (fd >= 0) + { + esd_play_file(NULL,filename, 0); diff --git a/chinese/srecite/files/patch-sentencewin.c b/chinese/srecite/files/patch-sentencewin.c new file mode 100644 index 000000000..9a6f4b3ed --- /dev/null +++ b/chinese/srecite/files/patch-sentencewin.c @@ -0,0 +1,12 @@ +--- src/sentencewin.c~ Sun Nov 21 20:55:21 2004 ++++ src/sentencewin.c Sun Nov 21 20:55:28 2004 +@@ -114,8 +114,8 @@ + //sentence read aloudly + static void sentence_read() + { +- g_print("sentence read!!\n"); + gchar word[256]; ++ g_print("sentence read!!\n"); + + strcpy(word,gtk_entry_get_text(GTK_ENTRY(input_entry))); + diff --git a/chinese/srecite/files/patch-testgame.c b/chinese/srecite/files/patch-testgame.c new file mode 100644 index 000000000..84e0e3eab --- /dev/null +++ b/chinese/srecite/files/patch-testgame.c @@ -0,0 +1,48 @@ +--- src/testgame.c~ Sun Nov 21 21:00:23 2004 ++++ src/testgame.c Sun Nov 21 21:01:21 2004 +@@ -42,14 +42,12 @@ + { + GtkWidget *vbox,*hbox,*h_line; + GtkWidget *text_label,*xpm_label; ++ gchar temp[10]; + + // init + r_num=0;w_num=0;t_num=0; + counter = S_conf.test_counter; + +- gchar temp[10]; +- +- + /* test window */ + test_win = gtk_window_new(GTK_WINDOW_TOPLEVEL); + gtk_window_set_title(GTK_WINDOW(test_win),"Test Game"); +@@ -262,7 +260,6 @@ + //test start + static void test_start() + { +- g_print("start button clicked!\n"); + + // clean up + //gtk_entry_set_text(GTK_ENTRY(input_entry),""); +@@ -271,6 +268,7 @@ + //gchar temp[10]; + gchar prompt_str[256]; + ++ g_print("start button clicked!\n"); + randnum = rand() % word_count;// 0< random num < word_count + S_state.word_index = randnum; + +@@ -391,12 +389,12 @@ + //test counter over,show result + static void test_over() + { +- g_print("counter over!\n"); + + gchar str[256]; + gchar temp[256]; + float percent; + ++ g_print("counter over!\n"); + if(t_num == 0) + percent = 0.0000; + else diff --git a/chinese/srecite/files/patch-wordfile.c b/chinese/srecite/files/patch-wordfile.c new file mode 100644 index 000000000..32e250610 --- /dev/null +++ b/chinese/srecite/files/patch-wordfile.c @@ -0,0 +1,37 @@ +--- src/wordfile.c~ Sun Nov 21 21:01:43 2004 ++++ src/wordfile.c Sun Nov 21 21:02:37 2004 +@@ -44,12 +44,11 @@ + //read wordfile to wordbook[][],10000 words limition + void init_wordbook() + { ++ gchar * strtemp;//temp string ++ gchar str[256];//temp string + word_count = 0; + S_state.word_index = 0; + +- gchar * strtemp;//temp string +- gchar str[256];//temp string +- + g_print("init wordbook!\n"); + + //open word file +@@ -91,16 +90,14 @@ + //get S_line from wordfile + void read_line() + { ++ gchar line[256],EN_word[256],TK_word[256],CH_word[256],*p; ++ gint n;// count for line ++ + if(S_state.word_index <= 0 ) + gtk_widget_set_sensitive(back_button,0); + else + gtk_widget_set_sensitive(back_button,1); + +- +- gchar line[256],EN_word[256],TK_word[256],CH_word[256],*p; +- +- gint n;// count for line +- + // '#' is special char defined by me,to show TK_word is end + TK_word[0]='#'; + diff --git a/chinese/srecite/files/srecite.desktop b/chinese/srecite/files/srecite.desktop new file mode 100644 index 000000000..6803c6453 --- /dev/null +++ b/chinese/srecite/files/srecite.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=SRecite +Name[zh_CN]=SRecite +Comment=SRecite +Comment[zh_CN]=SRecite +Exec=srecite +Terminal=0 +Type=Application +Icon=srecite.png +StartupNotify=true +Categories=GNOME;Application;Utility; diff --git a/chinese/srecite/pkg-descr b/chinese/srecite/pkg-descr new file mode 100644 index 000000000..f9b1cc9b7 --- /dev/null +++ b/chinese/srecite/pkg-descr @@ -0,0 +1,7 @@ +SRecite is a special and smart Tool for the Chinese people to study +foreign language, especially English.A little window displays on +top.You can recite words and increase your vocabulary at any moment. + +WWW: http://sourceforge.net/projects/srecite/ + http://mail.ustc.edu.cn/~lufang/SRecite/ + http://srecite.sourceforge.net diff --git a/chinese/srecite/pkg-plist b/chinese/srecite/pkg-plist new file mode 100644 index 000000000..7bf9d99a4 --- /dev/null +++ b/chinese/srecite/pkg-plist @@ -0,0 +1,124 @@ +bin/srecite +share/applications/srecite.desktop +share/srecite/srecite.rc +share/srecite/icon/STAR_TRANSP.png +share/srecite/icon/about.png +share/srecite/icon/attach.png +share/srecite/icon/back.png +share/srecite/icon/check.png +share/srecite/icon/configure.png +share/srecite/icon/dict.png +share/srecite/icon/dot.png +share/srecite/icon/edit.png +share/srecite/icon/edit_add.png +share/srecite/icon/exit.png +share/srecite/icon/exits.png +share/srecite/icon/goto.png +share/srecite/icon/hide.png +share/srecite/icon/line.png +share/srecite/icon/load.png +share/srecite/icon/next.png +share/srecite/icon/open.png +share/srecite/icon/over.png +share/srecite/icon/pencil.png +share/srecite/icon/play.png +share/srecite/icon/random.png +share/srecite/icon/read.png +share/srecite/icon/reset.png +share/srecite/icon/right.png +share/srecite/icon/save.png +share/srecite/icon/search.png +share/srecite/icon/sound.png +share/srecite/icon/srecites.png +share/srecite/icon/stop.png +share/srecite/icon/style.png +share/srecite/icon/test.png +share/srecite/icon/wrong.png +share/srecite/wordbooks/0.wrd +share/srecite/wordbooks/1.wrd +share/srecite/wordbooks/10.wrd +share/srecite/wordbooks/11.wrd +share/srecite/wordbooks/12.wrd +share/srecite/wordbooks/13.wrd +share/srecite/wordbooks/14.wrd +share/srecite/wordbooks/15.wrd +share/srecite/wordbooks/16.wrd +share/srecite/wordbooks/17.wrd +share/srecite/wordbooks/18.wrd +share/srecite/wordbooks/19.wrd +share/srecite/wordbooks/2.wrd +share/srecite/wordbooks/20.wrd +share/srecite/wordbooks/21.wrd +share/srecite/wordbooks/22.wrd +share/srecite/wordbooks/23.wrd +share/srecite/wordbooks/24.wrd +share/srecite/wordbooks/25.wrd +share/srecite/wordbooks/26.wrd +share/srecite/wordbooks/27.wrd +share/srecite/wordbooks/28.wrd +share/srecite/wordbooks/29.wrd +share/srecite/wordbooks/3.wrd +share/srecite/wordbooks/30.wrd +share/srecite/wordbooks/31.wrd +share/srecite/wordbooks/32.wrd +share/srecite/wordbooks/33.wrd +share/srecite/wordbooks/34.wrd +share/srecite/wordbooks/35.wrd +share/srecite/wordbooks/36.wrd +share/srecite/wordbooks/37.wrd +share/srecite/wordbooks/38.wrd +share/srecite/wordbooks/39.wrd +share/srecite/wordbooks/4.wrd +share/srecite/wordbooks/40.wrd +share/srecite/wordbooks/41.wrd +share/srecite/wordbooks/42.wrd +share/srecite/wordbooks/43.wrd +share/srecite/wordbooks/44.wrd +share/srecite/wordbooks/45.wrd +share/srecite/wordbooks/46.wrd +share/srecite/wordbooks/47.wrd +share/srecite/wordbooks/48.wrd +share/srecite/wordbooks/49.wrd +share/srecite/wordbooks/5.wrd +share/srecite/wordbooks/50.wrd +share/srecite/wordbooks/51.wrd +share/srecite/wordbooks/52.wrd +share/srecite/wordbooks/53.wrd +share/srecite/wordbooks/54.wrd +share/srecite/wordbooks/55.wrd +share/srecite/wordbooks/56.wrd +share/srecite/wordbooks/57.wrd +share/srecite/wordbooks/58.wrd +share/srecite/wordbooks/59.wrd +share/srecite/wordbooks/6.wrd +share/srecite/wordbooks/60.wrd +share/srecite/wordbooks/61.wrd +share/srecite/wordbooks/62.wrd +share/srecite/wordbooks/63.wrd +share/srecite/wordbooks/64.wrd +share/srecite/wordbooks/65.wrd +share/srecite/wordbooks/66.wrd +share/srecite/wordbooks/67.wrd +share/srecite/wordbooks/68.wrd +share/srecite/wordbooks/69.wrd +share/srecite/wordbooks/7.wrd +share/srecite/wordbooks/70.wrd +share/srecite/wordbooks/71.wrd +share/srecite/wordbooks/72.wrd +share/srecite/wordbooks/73.wrd +share/srecite/wordbooks/74.wrd +share/srecite/wordbooks/75.wrd +share/srecite/wordbooks/76.wrd +share/srecite/wordbooks/77.wrd +share/srecite/wordbooks/78.wrd +share/srecite/wordbooks/8.wrd +share/srecite/wordbooks/9.wrd +share/srecite/wordbooks/README +share/srecite/wordbooks/com +share/srecite/wordbooks/index.txt +share/srecite/wordbooks/readme-book.txt +share/srecite/wordbooks/tf.wrd +share/icons/srecite.png +@dirrm share/srecite/icon +@dirrm share/srecite/wordbooks +@dirrm share/srecite |