summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorshell <shell@pkgsrc.org>2002-06-15 09:21:43 +0000
committershell <shell@pkgsrc.org>2002-06-15 09:21:43 +0000
commitcd58b39db02bd199da5b2abfcd69b996a48d276f (patch)
tree2177685c7f9c325e671d68f944a5167d0c6858bd /textproc
parentfbb67319c0e16d6d6f254dd073f56e74221e2324 (diff)
downloadpkgsrc-cd58b39db02bd199da5b2abfcd69b996a48d276f.tar.gz
Initial import of stardic-1.31
(PR#16410 by Rui-Xiang Guo <rxg@netbsd.org>) English-Chinese dictionary --- * an English-Chinese dictionary software for Unix; * about 50000 words, some have phonetic symbols; * rule match; * fetch word from screen; * no Chinese environment needed;
Diffstat (limited to 'textproc')
-rw-r--r--textproc/stardic/DESCR8
-rw-r--r--textproc/stardic/Makefile24
-rw-r--r--textproc/stardic/PLIST25
-rw-r--r--textproc/stardic/distinfo6
-rw-r--r--textproc/stardic/patches/patch-aa49
-rw-r--r--textproc/stardic/patches/patch-ab24
6 files changed, 136 insertions, 0 deletions
diff --git a/textproc/stardic/DESCR b/textproc/stardic/DESCR
new file mode 100644
index 00000000000..6363620a76a
--- /dev/null
+++ b/textproc/stardic/DESCR
@@ -0,0 +1,8 @@
+* an English-Chinese dictionary software for Unix;
+* about 50000 words, some have phonetic symbols;
+* rule match;
+* fetch word from screen;
+* no Chinese environment needed;
+
+If you want to start stardic with traditional Chinese font, type
+'stardic -ft'.
diff --git a/textproc/stardic/Makefile b/textproc/stardic/Makefile
new file mode 100644
index 00000000000..cc1c88abf56
--- /dev/null
+++ b/textproc/stardic/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/06/15 09:21:43 shell Exp $
+
+DISTNAME= dic
+PKGNAME= stardic-1.31
+CATEGORIES= textproc
+MASTER_SITES= http://download.linuxbyte.net/Chinese/dictionary/
+
+MAINTAINER= rxg@netbsd.org
+COMMENT= English-Chinese dictionary
+
+DIST_SUBDIR= ${PKGNAME}
+
+MAKEFILE= makefile
+
+post-patch:
+ ${MV} ${WRKSRC}/hzfont/fonts.dir ${WRKSRC}/hzfont/fonts.dir.orig
+ ${ECHO} '3' > ${WRKSRC}/hzfont/fonts.dir
+ ${ECHO} 'hz16.pcf.gz hz16' >> ${WRKSRC}/hzfont/fonts.dir
+ ${ECHO} 'hz16ft.pcf.gz hz16ft' >> ${WRKSRC}/hzfont/fonts.dir
+ ${ECHO} 'yb10x20.pcf.gz yb10x20' >> ${WRKSRC}/hzfont/fonts.dir
+
+.include "../../mk/motif.buildlink.mk"
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/stardic/PLIST b/textproc/stardic/PLIST
new file mode 100644
index 00000000000..831e191dd34
--- /dev/null
+++ b/textproc/stardic/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/15 09:21:43 shell Exp $
+bin/stardic
+share/stardic/back.gif
+share/stardic/chinabyte.gif
+share/stardic/exitmask.xbm
+share/stardic/help.gif
+share/stardic/helpmask.xbm
+share/stardic/hzfont/fonts.dir
+share/stardic/hzfont/hz16.pcf.gz
+share/stardic/hzfont/hz16ft.pcf.gz
+share/stardic/hzfont/yb10x20.pcf.gz
+share/stardic/icon.gif
+share/stardic/iconmask.xbm
+share/stardic/joyo.gif
+share/stardic/last.gif
+share/stardic/lastmask.xbm
+share/stardic/next.gif
+share/stardic/nextmask.xbm
+share/stardic/sina.gif
+share/stardic/transdic
+share/stardic/wri.gif
+share/stardic/wuhan.gif
+share/stardic/yblib
+@dirrm share/stardic/hzfont
+@dirrm share/stardic
diff --git a/textproc/stardic/distinfo b/textproc/stardic/distinfo
new file mode 100644
index 00000000000..799b3017c09
--- /dev/null
+++ b/textproc/stardic/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/06/15 09:21:43 shell Exp $
+
+SHA1 (stardic-1.31/dic.tar.gz) = 89a4edcbac415232627c98680a9817f2a7676f48
+Size (stardic-1.31/dic.tar.gz) = 1800940 bytes
+SHA1 (patch-aa) = 79fda2fc17b7af8dc5ebadbf34df46f77f8410e4
+SHA1 (patch-ab) = 1389a4a616315da0f9dbd430939f472452e15064
diff --git a/textproc/stardic/patches/patch-aa b/textproc/stardic/patches/patch-aa
new file mode 100644
index 00000000000..bd30359a002
--- /dev/null
+++ b/textproc/stardic/patches/patch-aa
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/06/15 09:21:43 shell Exp $
+
+--- makefile.orig Sat Jan 29 12:07:34 2000
++++ makefile
+@@ -1,15 +1,16 @@
+ TRANSOBJ= trans.o image.o regdef.o
++TRANSDIR= $(PREFIX)/share/stardic
+
+ # modify those variables for yourself
+
+ # for linux
+-LDFLAGS= -L/usr/X11/lib -lXm -lXt -lXext -lX11
++LDFLAGS+= -L/usr/X11/lib -lXm -lXt -lXext -lX11
+
+ # for solaris
+ # LDFLAGS= -lXm -lXt -lXext -lX11
+
+ # for linux
+-CPPFLAGS= -I/usr/X11/include
++CPPFLAGS+= -I/usr/X11/include -DTRANSHOME=\"$(TRANSDIR)\"
+
+ # for solaris
+ #CPPFLAGS= -I/usr/dt/include -I/usr/openwin/include
+@@ -18,14 +19,22 @@
+ #CFLAGS= +w -DNDEBUG
+
+ # for g++
+-CFLAGS= -Wall -DNDEBUG
++CFLAGS+= -Wall -DNDEBUG
+
+-CC= g++
++CC= $(CXX)
+ #CC= CC
+
+ .KEEP_STATE:
+-stardic:$(TRANSOBJ)
++all: $(TRANSOBJ)
+ $(LINK.c) -o stardic $(TRANSOBJ)
++ gzip hzfont/*.pcf
+
+ .cc.o:
+ $(COMPILE.c) $<
++
++install:
++ $(BSD_INSTALL_PROGRAM) stardic $(PREFIX)/bin
++ $(BSD_INSTALL_DATA_DIR) $(TRANSDIR)
++ $(BSD_INSTALL_DATA) transdic yblib *.gif *.xbm $(TRANSDIR)
++ $(BSD_INSTALL_DATA_DIR) $(TRANSDIR)/hzfont
++ $(BSD_INSTALL_DATA) hzfont/fonts.dir hzfont/*.pcf.gz $(TRANSDIR)/hzfont
diff --git a/textproc/stardic/patches/patch-ab b/textproc/stardic/patches/patch-ab
new file mode 100644
index 00000000000..14f9f711fc7
--- /dev/null
+++ b/textproc/stardic/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/06/15 09:21:44 shell Exp $
+
+--- trans.cc.orig Sat Jan 29 11:34:27 2000
++++ trans.cc
+@@ -103,6 +103,7 @@
+ char sHomeDir[MAX_STR_LEN+1];
+ PixmapClass *poBackImage;
+ char* asSearchDirs[]={
++ TRANSHOME,
+ "/opt/dic",
+ "/usr/local/dic",
+ "/dic",
+@@ -2468,6 +2469,11 @@
+ void AppFrame::vInit(int argc,char **argv)
+ {
+ Atom DELETE_WIN;
++ int i;
++
++ for (i = 1; i < argc; i++)
++ if (strcmp("-ft", argv[i]) == 0)
++ fallback[10] = "*fontList:9x15bold=English,hz16ft=Chinese,yb10x20=YB";
+
+ wToplevel=XtVaAppInitialize(&app,"transrc",
+ NULL,0,&argc,argv,fallback,