diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2003-05-10 09:47:23 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2003-05-10 09:47:23 +0000 |
commit | 53f51ebdca8c86da2c7b7aefd05fdd04fdf3fedc (patch) | |
tree | 0d7d4bfb21343d35e3f93a08345123135b8ca9aa /chinese | |
parent | 379987359d7a0df41ac496175f6b832093be7c69 (diff) | |
download | ports-53f51ebdca8c86da2c7b7aefd05fdd04fdf3fedc.tar.gz ports-53f51ebdca8c86da2c7b7aefd05fdd04fdf3fedc.zip |
Notes
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/pyDict/Makefile | 12 | ||||
-rw-r--r-- | chinese/pyDict/distinfo | 2 | ||||
-rw-r--r-- | chinese/pyDict/files/patch-aa | 47 | ||||
-rw-r--r-- | chinese/pyDict/pkg-descr | 1 |
4 files changed, 10 insertions, 52 deletions
diff --git a/chinese/pyDict/Makefile b/chinese/pyDict/Makefile index d750f07c1d61..280a7080ae2f 100644 --- a/chinese/pyDict/Makefile +++ b/chinese/pyDict/Makefile @@ -6,11 +6,9 @@ # PORTNAME= pyDict -PORTVERSION= 0.2.5 -PORTREVISION= 1 +PORTVERSION= 0.2.6.3 CATEGORIES= chinese -MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/ -DISTNAME= pyDict-0.2.5.1 +MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/pyDict/ MAINTAINER= keith@FreeBSD.org COMMENT= A Chinese <-> English dictionary, under both console and X11 @@ -25,9 +23,15 @@ NO_BUILD= yes SHAREMODE= 644 DICTDIR= ${PREFIX}/lib/X11/pyDict DOCDIR= ${PREFIX}/share/doc/pyDict +USE_REINPLACE= yes .include <bsd.port.pre.mk> +do-patch: + ${REINPLACE_CMD} -e 's,/bin/grep,${GREP},g' \ + -e 's,--after-context=20,-A 20,g' \ + -e 's,/usr/X11R6,${PREFIX},g' ${WRKSRC}/dict.py + do-install: @${MKDIR} ${DICTDIR} @${INSTALL_DATA} ${WRKSRC}/[a-z].lib ${WRKSRC}/dict.xpm ${WRKSRC}/yaba.xpm ${WRKSRC}/HELP ${DICTDIR} diff --git a/chinese/pyDict/distinfo b/chinese/pyDict/distinfo index 447ca8e76ae2..83713034244d 100644 --- a/chinese/pyDict/distinfo +++ b/chinese/pyDict/distinfo @@ -1 +1 @@ -MD5 (pyDict-0.2.5.1.tar.gz) = ec92b0ed24ee48e483b1d4ea3713c012 +MD5 (pyDict-0.2.6.3.tar.gz) = 1f22abea9810aee0fc25962db64f92a9 diff --git a/chinese/pyDict/files/patch-aa b/chinese/pyDict/files/patch-aa deleted file mode 100644 index ae698c8365dd..000000000000 --- a/chinese/pyDict/files/patch-aa +++ /dev/null @@ -1,47 +0,0 @@ ---- dict.py.orig Mon Sep 18 07:31:48 2000 -+++ dict.py Sat Mar 17 02:23:23 2001 -@@ -252,7 +252,7 @@ - def execute(self,word): # English to Chinese - # move self.index to top - self.index = 0 -- command = g_command + ' --after-context=20 "^' + word + '.*=.*$" ' + dict_path + lower(word[0]) + '.lib' + '|awk "NR < 19 "' -+ command = g_command + ' -A 20 "^' + word + '.*=.*$" ' + dict_path + lower(word[0]) + '.lib' + '|awk "NR < 19 "' - result_lines = os.popen(command,'r').readlines() - #if result_lines: - if result_lines: -@@ -488,7 +488,7 @@ - - def console_e_dict(input=None): - #set up g_command -- g_command = '/bin/grep --ignore-case' -+ g_command = '/usr/bin/grep --ignore-case' - if input == None: - inp = raw_input('word:') - else: -@@ -503,7 +503,7 @@ - console_c_dict() - return - else: -- command = g_command + " '^" + inp + "=.*$' " + dict_path + lower(word[0]) + '.lib' -+ command = g_command + " '^" + inp + "=.*$' " + dict_path + lower(inp[0]) + '.lib' - result_line = os.popen(command,'r').readline() - #if result_lines: - if result_line: -@@ -532,7 +532,7 @@ - - def console_c_dict(input=None): - #set up g_command -- g_command = '/bin/grep ' -+ g_command = '/usr/bin/grep ' - if input == None: - inp = raw_input('word:') - else: -@@ -603,7 +603,7 @@ - print 'type -e to English-Chinese mode' - - # set up grep command -- g_command = '/bin/grep --ignore-case' -+ g_command = '/usr/bin/grep --ignore-case' - dict_path = '/usr/X11R6/lib/X11/pyDict/' - - # check if there is an DISPLAY environment variable diff --git a/chinese/pyDict/pkg-descr b/chinese/pyDict/pkg-descr index 33db46f5a03e..1d09fc6caca3 100644 --- a/chinese/pyDict/pkg-descr +++ b/chinese/pyDict/pkg-descr @@ -4,3 +4,4 @@ data is prepared by TurboLinux in simplified Chinese, then converted to traditional Chinese by CLE(Chinese Linux Extension) team. Author: Daniel Gau <plateau@pagic.net> +WWW: http://www.linux.org.tw/~plateau/linux_notes/ |