pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/hanzim Initial import hanzim-1.3.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/94bbd85548b1
branches:  trunk
changeset: 506453:94bbd85548b1
user:      rxg <rxg%pkgsrc.org@localhost>
date:      Mon Jan 16 13:18:29 2006 +0000

description:
Initial import hanzim-1.3.
Hanzim is a program designed to help you memorize characters by helping you
internalize their various systematicities.  It displays lists of characters
with the same radicals, same remaining parts, and same pronunciations.  Along
with the characters it displays pin-yin pronunciations and lists of compounds.

Oked by wiz & closed pkg/17408.

diffstat:

 misc/hanzim/DESCR            |   4 ++
 misc/hanzim/Makefile         |  29 ++++++++++++++++
 misc/hanzim/PLIST            |  15 ++++++++
 misc/hanzim/distinfo         |   7 +++
 misc/hanzim/patches/patch-aa |  79 ++++++++++++++++++++++++++++++++++++++++++++
 misc/hanzim/patches/patch-ab |  18 ++++++++++
 6 files changed, 152 insertions(+), 0 deletions(-)

diffs (176 lines):

diff -r 1dd3092d90de -r 94bbd85548b1 misc/hanzim/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hanzim/DESCR Mon Jan 16 13:18:29 2006 +0000
@@ -0,0 +1,4 @@
+Hanzim is a program designed to help you memorize characters by helping you
+internalize their various systematicities.  It displays lists of characters
+with the same radicals, same remaining parts, and same pronunciations.  Along
+with the characters it displays pin-yin pronunciations and lists of compounds.
diff -r 1dd3092d90de -r 94bbd85548b1 misc/hanzim/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hanzim/Makefile      Mon Jan 16 13:18:29 2006 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/16 13:18:29 rxg Exp $
+#
+
+DISTNAME=      hanzim-1.3
+CATEGORIES=    misc
+MASTER_SITES=  http://kamares.ucsd.edu/~arobert/Files/Chinese/
+EXTRACT_SUFX=  .tgz
+
+MAINTAINER=    rxg%NetBSD.org@localhost
+HOMEPAGE=      http://zakros.ucsd.edu/~arobert/hanzim.html
+COMMENT=       Chinese character learning-aid program
+
+WRKSRC=                ${WRKDIR}/Hanzim
+
+BUILD_TARGET=  hanzim
+
+pre-install:
+       @if [ "$$DISPLAY" = "" ]; then \
+               ${ECHO} "${DISTNAME} can only be installed under X11."; \
+               exit 1; \
+        else \
+               ${SETENV} SHELL=${SH:Q}; export LC_CTYPE=en_US.ISO8859-1; \
+        fi
+
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../x11/tk/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/x11.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1dd3092d90de -r 94bbd85548b1 misc/hanzim/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hanzim/PLIST Mon Jan 16 13:18:29 2006 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/16 13:18:29 rxg Exp $
+bin/hanzim
+lib/hanzim/bushou.gb
+lib/hanzim/cidianf.gb
+lib/hanzim/fonts.unix
+lib/hanzim/hanwin.tcl
+lib/hanzim/hcompound.dat
+lib/hanzim/parts.gb
+lib/hanzim/sanzicidianf.gb
+lib/hanzim/zidianf.gb
+lib/hanzim/zidianfl.b5
+man/man1/hanzim.1
+share/doc/hanzim/hanzim.doc
+@dirrm share/doc/hanzim
+@dirrm lib/hanzim
diff -r 1dd3092d90de -r 94bbd85548b1 misc/hanzim/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hanzim/distinfo      Mon Jan 16 13:18:29 2006 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/01/16 13:18:29 rxg Exp $
+
+SHA1 (hanzim-1.3.tgz) = f81cc5a5b382520f4304815f2e59488731cae9a6
+RMD160 (hanzim-1.3.tgz) = 650b65017fdb271554995f886fa79f60586b3de8
+Size (hanzim-1.3.tgz) = 570776 bytes
+SHA1 (patch-aa) = f47a47be817f6e3d4a7a40f3d217de0aa8b30f93
+SHA1 (patch-ab) = cbbf10a46d6c2267074e30bf1684f7332f847d50
diff -r 1dd3092d90de -r 94bbd85548b1 misc/hanzim/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hanzim/patches/patch-aa      Mon Jan 16 13:18:29 2006 +0000
@@ -0,0 +1,79 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/01/16 13:18:29 rxg Exp $
+
+--- Makefile.orig      2002-03-20 13:59:19.000000000 +0800
++++ Makefile
+@@ -6,11 +6,11 @@
+ 
+ # set INSTALLROOT to the installation base; it is used to set the
+ # other directory variables below
+-INSTALLROOT = /usr/local
++INSTALLROOT = $(PREFIX)
+ #INSTALLROOT = /usr
+ 
+ # set LIBDIR to where you will keep the datafiles, fontspecs, and "hanwin.tcl"
+-LIBDIR = $(INSTALLROOT)/lib/Hanzim
++LIBDIR = $(INSTALLROOT)/lib/hanzim
+ #LIBDIR = /usr/local/lib/Hanzim
+ # for debugging
+ #LIBDIR = ./Data
+@@ -24,7 +24,7 @@ MANDIR = $(INSTALLROOT)/man
+ #MANDIR = /usr/local/man
+ 
+ # set DOCDIR to where you want the documentation files to reside
+-DOCDIR = $(INSTALLROOT)/doc
++DOCDIR = $(INSTALLROOT)/share/doc/hanzim
+ #DOCDIR = $(INSTALLROOT)/share/doc
+ #DOCDIR = /usr/local/share/doc
+ #DOCDIR = /usr/share/doc
+@@ -41,13 +41,13 @@ OS=UNIX
+ #OS=WINDOWS
+ 
+ # location of Tcl and Tk libraries
+-LIBTCLDIR = -L /usr/lib
++#LIBTCLDIR = -L /usr/lib
+ 
+ # location of x library
+-LIBXDIR = -L /usr/X11/lib
++#LIBXDIR = -L /usr/X11/lib
+ 
+ # you might need to change "libtcl" and "libtk" to "libtcl8.x" and "libtk8.x"
+-LIBS = $(LIBXDIR) $(LIBTCLDIR) -ltk -ltcl -lX11 -lm -ldl
++LIBS = $(LIBXDIR) $(LIBTCLDIR) -ltk -ltcl -lX11 -lm -lpthread
+ 
+ INSTALL = install
+ RM = rm -f
+@@ -55,11 +55,11 @@ RM = rm -f
+ # End of configuration.
+ ###############################################################################
+ 
+-CC = cc
++#CC = cc
+ DEFINES = -D$(OS) -DLIBDIR=\"$(LIBDIR)\"
+-CFLAGS = -O2 $(DEFINES)
++CFLAGS += $(DEFINES)
+ #CFLAGS = -O2 -Wall -pedantic -ansi $(DEFINES)
+-LFLAGS = $(LIBS)  -s
++LFLAGS = $(LIBS) $(LDFLAGS)
+ 
+ DIST_FILES = Hanzim/hanzim.h Hanzim/hgb_utf.h \
+               Hanzim/hanzim.c Hanzim/hanwin.c Hanzim/hinit.c Hanzim/hutil.c \
+@@ -87,13 +87,13 @@ DIST_FILES = Hanzim/hanzim.h Hanzim/hgb_
+               $(CC) $(CFLAGS) -c hutil.c
+ 
+      install : hanzim
+-      $(INSTALL) -s hanzim $(BINDIR)
+-      $(INSTALL) -m 0644 hanzim.man $(MANDIR)/man1/hanzim.1
+-      $(INSTALL) -m 0755 -d $(DOCDIR)
+-      $(INSTALL) -m 0644 hanzim.doc $(DOCDIR)
+-      $(INSTALL) -m 0755 -d $(LIBDIR)
++      $(BSD_INSTALL_PROGRAM) hanzim $(BINDIR)
++      $(BSD_INSTALL_MAN) hanzim.man $(MANDIR)/man1/hanzim.1
++      $(BSD_INSTALL_DATA_DIR) $(DOCDIR)
++      $(BSD_INSTALL_DATA) hanzim.doc $(DOCDIR)
++      $(BSD_INSTALL_DATA_DIR) $(LIBDIR)
+       cd Data ; \
+-      $(INSTALL) -m 0644 hanwin.tcl fonts.unix fonts.windows \
++      $(BSD_INSTALL_DATA) hanwin.tcl fonts.unix \
+                          zidianf.gb zidianfl.b5 bushou.gb \
+                          cidianf.gb sanzicidianf.gb parts.gb $(LIBDIR)
+       $(BINDIR)/hanzim -buildDB
diff -r 1dd3092d90de -r 94bbd85548b1 misc/hanzim/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hanzim/patches/patch-ab      Mon Jan 16 13:18:29 2006 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/01/16 13:18:29 rxg Exp $
+
+--- hanzim.c.orig      Wed Jun 26 17:26:48 2002
++++ hanzim.c
+@@ -460,10 +460,10 @@
+   struct _timeb tp;
+   _ftime(&tp);
+ #else
+-  struct timeb        tp;
+-  ftime(&tp);
++  time_t      t;
++  time(&t);
+ #endif
+-  srand(tp.millitm);
++  srand(t);
+ 
+   if (!quiet) {
+     printf("\n\nWelcome to Hanzi Master, where YOU will master the hanzi.\n");



Home | Main Index | Thread Index | Old Index