aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
Diffstat (limited to 'chinese')
-rw-r--r--chinese/hanzim/Makefile9
-rw-r--r--chinese/hanzim/files/patch-hanzim.c6
2 files changed, 9 insertions, 6 deletions
diff --git a/chinese/hanzim/Makefile b/chinese/hanzim/Makefile
index 90d1db012f16..9553bdd6b69c 100644
--- a/chinese/hanzim/Makefile
+++ b/chinese/hanzim/Makefile
@@ -8,13 +8,16 @@
PORTNAME= hanzim
PORTVERSION= 1.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= chinese tk84
-MASTER_SITES= http://kamares.ucsd.edu/~arobert/Files/Chinese/
+MASTER_SITES= http://kamares.ucsd.edu/~arobert/Files/Chinese/ \
+ http://www.525183.com/freebsd/hanzim/ \
+ http://www.chinatinco.com/freebsd/hanzim/ \
+ http://525183.serverbox.org/freebsd/hanzim/
MASTER_SITE_SUBDIR= . Old
EXTRACT_SUFX= .tgz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= sunrychen@gmail.com
COMMENT= A Chinese character learning-aid program
BUILD_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84
diff --git a/chinese/hanzim/files/patch-hanzim.c b/chinese/hanzim/files/patch-hanzim.c
index ff0a88cbfde6..55ad0c3a701e 100644
--- a/chinese/hanzim/files/patch-hanzim.c
+++ b/chinese/hanzim/files/patch-hanzim.c
@@ -1,11 +1,11 @@
---- hanzim.c.orig Wed Mar 20 01:34:31 2002
-+++ hanzim.c Sat Jun 14 09:20:04 2003
+--- ./hanzim.c.orig 2002-03-20 14:34:31.000000000 +0800
++++ ./hanzim.c 2007-11-08 16:33:14.000000000 +0800
@@ -204,6 +204,16 @@
main(int argc, char *argv[]) {
Tcl_Interp *interp;
+/* hanzim need a running XFree to do its initial setup, rectify */
-+ if (!(strcmp(argv[1], "-port-install")))
++ if (argc>1 && !(strcmp(argv[1], "-port-install")))
+ {
+ char *portdatadir = "%%PREFIX%%/lib/hanzim";
+ init_vars(portdatadir);