diff --git a/chinese/xcin/Makefile b/chinese/xcin/Makefile new file mode 100644 index 00000000000..e4b142ae944 --- /dev/null +++ b/chinese/xcin/Makefile @@ -0,0 +1,52 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2000/05/31 09:54:43 kevlo Exp $ + +DISTNAME= xcin-2.3.04-3 +PKGNAME= zh-xcin-2.3.04 +CATEGORIES= chinese +NEED_VERSION= 1.230 +MASTER_SITES= ftp://xcin.linux.org.tw/pub/xcin/xcin/old/ \ + ftp://ftp.ncu.edu.tw/OS/Linux/Chinese/xcin/xcin/ \ + ftp://linux.cis.nctu.edu.tw/packages/chinese/X/xcin/xcin/ + +MAINTAINER= kevlo@openbsd.org + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/chinese/taipei16.pcf.gz::chinese/taipeifonts + +HAS_CONFIGURE= Yes +CONFIGURE_ARGS= --os=OpenBSD --no-menu +FAKE= Yes + +CINS= cj.cin cj.tab cj.tab.rev phone.tab phone.cin phone.tab phone.tab.rev \ + pinyin.cin pinyin.tab pinyin.tab.rev array30.cin array30.tab \ + array30.tab.rev zmdbosh.cin zmdbosh.tab zmdbosh.tab.rev + +BINS= cin2tab et.kbm et26.kbm hsu.kbm lphrase phs_out pho.sel1st \ + pho.tab pin2tsin sample.phs.out tsa2d tsa2rel tsd2a \ + tsin tsin.idx tsin.rel tsin_pin.map tsin.rel.src tsin.src \ + voca.box zo.kbm + +HOWTOS= Boshiamy.HOWTO Xfonts.HOWTO cin2tab.HOWTO xcin.HOWTO + +post-configure: + @cp ${FILESDIR}/config.status ${WRKSRC} + +post-extract: + @cp ${FILESDIR}/OpenBSD ${WRKSRC}/script/os_def + +pre-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/xcin/docs + +post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/xcin ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/man/cin2tab.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/doc/man/xcin.1 ${PREFIX}/man/man1 + @for i in ${CINS} ; do cp $(WRKSRC)/input_tab/$$i ${PREFIX}/lib/xcin; done + @for i in ${BINS} ; do cp $(WRKSRC)/src/$$i ${PREFIX}/lib/xcin; done + @for i in ${HOWTOS} ; do cp $(WRKSRC)/doc/howto/$$i ${PREFIX}/lib/xcin/docs; done + +.include diff --git a/chinese/xcin/files/OpenBSD b/chinese/xcin/files/OpenBSD new file mode 100644 index 00000000000..1438d34a7f6 --- /dev/null +++ b/chinese/xcin/files/OpenBSD @@ -0,0 +1,5 @@ +OS=OpenBSD +CC=gcc +CFLAGS=-O2 +XINC=/usr/X11R6/include +XLIB=/usr/X11R6/lib diff --git a/chinese/xcin/files/config.status b/chinese/xcin/files/config.status new file mode 100644 index 00000000000..6070689388d --- /dev/null +++ b/chinese/xcin/files/config.status @@ -0,0 +1,31 @@ +OS=OpenBSD +CC=gcc +CFLAGS=-O2 +XINC=/usr/X11R6/include +XLIB=/usr/X11R6/lib + +INSTALL_XCIN=yes +INSTALL_INPTABS=yes +INSTALL_DOCS=no +INSTALL_UTILS=yes + +PATH_XCIN_PREFIX=/usr/local +PATH_XCIN_BIN=/usr/local/bin +PATH_XCIN_DIR=/usr/local/lib/xcin +PATH_XCIN_MAN=/usr/local/man + +OPT_XCIN_CFONT=-taipei-ming16-medium-r-normal-*-16-160-*-*-*-*-big5-0 +OPT_XCIN_EFONT=12x24 +OPT_UTIL_CIN2TAB=yes +OPT_UTIL_TSINTOOLS=yes +OPT_INPTAB_SRC=yes +OPT_INPTAB_PHONE=yes +OPT_INPTAB_PINYIN=yes +OPT_INPTAB_CJ=yes +OPT_INPTAB_ZBOSH=yes +OPT_INPTAB_CANTON=no +OPT_INPTAB_AR30=yes +INSTALL=/usr/bin/install -c +INSTALL_PROGRAM=$(INSTALL) +INSTALL_DATA=$(INSTALL) -m 644 +INSTALL_DIR=$(INSTALL) -d diff --git a/chinese/xcin/files/md5 b/chinese/xcin/files/md5 new file mode 100644 index 00000000000..40a4ce224ad --- /dev/null +++ b/chinese/xcin/files/md5 @@ -0,0 +1,3 @@ +MD5 (xcin-2.3.04-3.tar.gz) = 737a6ea93237b12903c3088a06730c63 +RMD160 (xcin-2.3.04-3.tar.gz) = 692ebdfa11c6324079f2c39e001f290f1ae4b6ab +SHA1 (xcin-2.3.04-3.tar.gz) = 235a3ab78a01d62b79bcc41eaab084580671e2c5 diff --git a/chinese/xcin/patches/patch-aa b/chinese/xcin/patches/patch-aa new file mode 100644 index 00000000000..61a31286c21 --- /dev/null +++ b/chinese/xcin/patches/patch-aa @@ -0,0 +1,11 @@ +--- script/configure.menu.orig Wed May 31 22:15:04 2000 ++++ script/configure.menu Wed May 31 22:16:17 2000 +@@ -266,7 +266,7 @@ + { + PATH_XCIN_PREFIX=$1 + PATH_XCIN_BIN=$PATH_XCIN_PREFIX/bin +- PATH_XCIN_DIR=$PATH_XCIN_PREFIX/lib/xcin ++ PATH_XCIN_DIR=$PATH_XCIN_PREFIX/lib/X11/xcin + PATH_XCIN_MAN=$PATH_XCIN_PREFIX/man + } + diff --git a/chinese/xcin/patches/patch-ab b/chinese/xcin/patches/patch-ab new file mode 100644 index 00000000000..2e344f32de9 --- /dev/null +++ b/chinese/xcin/patches/patch-ab @@ -0,0 +1,39 @@ +--- src/Makefile.in.orig Wed Feb 24 16:30:33 1999 ++++ src/Makefile.in Thu Jun 1 01:23:23 2000 +@@ -152,29 +152,29 @@ + + install_xcin: xcin $(KBMS) $(INPUT0) tsintab + if [ ! -d $(PATH_XCIN_BIN) ]; then $(INSTALL_DIR) $(PATH_XCIN_BIN); fi +- $(INSTALL) xcin $(PATH_XCIN_BIN) +- echo $(PATH_XCIN_BIN)/xcin >> filelist ++ $(INSTALL_PROGRAM) xcin $(DESTDIR)$(PATH_XCIN_BIN) ++ echo $(DESTDIR)$(PATH_XCIN_BIN)/xcin >> filelist + + if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi + for f in $(TSINTABS) $(KBMS) $(INPUT0) voca.box; do\ +- cp $$f $(PATH_XCIN_DIR); echo $(PATH_XCIN_DIR)/$$f >> filelist;\ ++ cp $$f $(DESTDIR)$(PATH_XCIN_DIR); echo $(DESTDIR)$(PATH_XCIN_DIR)/$$f >> filelist;\ + done + + install_cin2tab: cin2tab + if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi +- $(INSTALL) cin2tab $(PATH_XCIN_DIR) +- echo $(PATH_XCIN_DIR)/cin2tab >> filelist ++ $(INSTALL_PROGRAM) cin2tab $(DESTDIR)$(PATH_XCIN_DIR) ++ echo $(DESTDIR)$(PATH_XCIN_DIR)/cin2tab >> filelist + + install_tsintools: tsintools + if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi + for f in $(TSINTOOLS); do\ +- $(INSTALL) $$f $(PATH_XCIN_DIR); echo $(PATH_XCIN_DIR)/$$f >> filelist;\ ++ $(INSTALL_PROGRAM) $$f $(DESTDIR)$(PATH_XCIN_DIR); echo $(DESTDIR)$(PATH_XCIN_DIR)/$$f >> filelist;\ + done + + install_tsintabsrc: + if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi + for f in $(TSINTABSRC); do\ +- cp $$f $(PATH_XCIN_DIR); echo $(PATH_XCIN_DIR)/$$f >> filelist;\ ++ cp $$f $(DESTDIR)$(PATH_XCIN_DIR); echo $(DESTDIR)$(PATH_XCIN_DIR)/$$f >> filelist;\ + done + + clean: diff --git a/chinese/xcin/patches/patch-ac b/chinese/xcin/patches/patch-ac new file mode 100644 index 00000000000..376c02448fd --- /dev/null +++ b/chinese/xcin/patches/patch-ac @@ -0,0 +1,34 @@ +--- input_tab/Makefile.in.orig Wed May 31 22:42:23 2000 ++++ input_tab/Makefile.in Thu Jun 1 01:42:46 2000 +@@ -15,13 +15,28 @@ + (cd ../src; make cin2tab) + ln -s ../src/cin2tab . + +-%.tab: %.cin cin2tab +- ./cin2tab $(basename $<) ++phone.tab: cin2tab phone.cin ++ ./cin2tab phone ++ ++array30.tab: cin2tab array30.cin ++ ./cin2tab array30 ++ ++cj.tab: cin2tab cj.cin ++ ./cin2tab cj ++ ++cantonese.tab: cin2tab cantonese.cin ++ ./cin2tab cantonese ++ ++pinyin.tab: cin2tab pinyin.cin ++ ./cin2tab pinyin ++ ++zmdbosh.tab: cin2tab zmdbosh.cin ++ ./cin2tab zmdbosh + + install: all + if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi + for f in $(install_tabs); do\ +- cp $$f $(PATH_XCIN_DIR); echo $(PATH_XCIN_DIR)/$$f >> filelist;\ ++ cp $$f $(DESTDIR)$(PATH_XCIN_DIR); echo $(DESTDIR)$(PATH_XCIN_DIR)/$$f >> filelist;\ + done + + clean: diff --git a/chinese/xcin/patches/patch-ad b/chinese/xcin/patches/patch-ad new file mode 100644 index 00000000000..9d1a3d1d058 --- /dev/null +++ b/chinese/xcin/patches/patch-ad @@ -0,0 +1,38 @@ +--- doc/Makefile.in.orig Thu Jun 1 00:26:45 2000 ++++ doc/Makefile.in Thu Jun 1 00:27:10 2000 +@@ -1,8 +1,8 @@ + include ../config.status + + MANS = @INSTALLALL@ +-HOWTO = xcin.HOWTO cin2tab.HOWTO Boshiamy.HOWTO Xfonts.HOWTO +-MISC = README.xcin XCIN.client.doc ++#HOWTO = xcin.HOWTO cin2tab.HOWTO Boshiamy.HOWTO Xfonts.HOWTO ++#MISC = README.xcin XCIN.client.doc + + install: + if [ ! -d $(PATH_XCIN_MAN) ]; then $(INSTALL_DIR) $(PATH_XCIN_MAN); fi +@@ -11,15 +11,15 @@ + $(INSTALL_DATA) man/$$f $(PATH_XCIN_MAN)/man1; \ + echo $(PATH_XCIN_MAN)/man1/$$f >> filelist; \ + done +- if [ ! -d $(PATH_XCIN_DIR)/docs ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR)/docs; fi +- for f in $(HOWTO); do \ +- $(INSTALL_DATA) howto/$$f $(PATH_XCIN_DIR)/docs; \ +- echo $(PATH_XCIN_DIR)/docs/$$f >> filelist; \ +- done +- for f in $(MISC); do \ +- $(INSTALL_DATA) misc/$$f $(PATH_XCIN_DIR)/docs; \ +- echo $(PATH_XCIN_DIR)/docs/$$f >> filelist; \ +- done ++# if [ ! -d $(PATH_XCIN_DIR)/docs ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR)/docs; fi ++# for f in $(HOWTO); do \ ++# $(INSTALL_DATA) howto/$$f $(PATH_XCIN_DIR)/docs; \ ++# echo $(PATH_XCIN_DIR)/docs/$$f >> filelist; \ ++# done ++# for f in $(MISC); do \ ++# $(INSTALL_DATA) misc/$$f $(PATH_XCIN_DIR)/docs; \ ++# echo $(PATH_XCIN_DIR)/docs/$$f >> filelist; \ ++# done + + clean: + rm -f *.o core diff --git a/chinese/xcin/pkg/COMMENT b/chinese/xcin/pkg/COMMENT new file mode 100644 index 00000000000..e10f0f1209e --- /dev/null +++ b/chinese/xcin/pkg/COMMENT @@ -0,0 +1 @@ +A chinese input utility in X diff --git a/chinese/xcin/pkg/DESCR b/chinese/xcin/pkg/DESCR new file mode 100644 index 00000000000..bcb29198e73 --- /dev/null +++ b/chinese/xcin/pkg/DESCR @@ -0,0 +1,14 @@ +Thanks to Mr. Edward Der-Hua Liu and others who developed the xcin +system. With the wonderful program, we can do a lot of operations with +Chinese under the X Window System in the UN*X world. As time goes on, +more and more people use it, and more and more comments appear. The +package hs been upgraded with time but it seems that the install process +is not convenient and self-consistent. These confuse a lot of people, +especially for new users in the UN*X world. We often see the `Big FAQs' +about xcin such as `how can I install the Chinese fonts' or `the cj2cin +command not found' or `the crxvt terminal is too big!!' or something +appears in the newsgroup again and again. In fact, such problems are +easy to remedy. Because I really like this program and feel that I may +do something to improve this package, I try my best to re-write the +Makefiles and auto-configuration programs of this package to try to +solve these troubles. This comes the `xcin-2.3' project. diff --git a/chinese/xcin/pkg/PLIST b/chinese/xcin/pkg/PLIST new file mode 100644 index 00000000000..d903beedb71 --- /dev/null +++ b/chinese/xcin/pkg/PLIST @@ -0,0 +1,45 @@ +bin/xcin +lib/xcin/array30.cin +lib/xcin/array30.tab +lib/xcin/array30.tab.rev +lib/xcin/cin2tab +lib/xcin/cj.cin +lib/xcin/cj.tab +lib/xcin/cj.tab.rev +lib/xcin/et.kbm +lib/xcin/et26.kbm +lib/xcin/hsu.kbm +lib/xcin/lphrase +lib/xcin/phone.cin +lib/xcin/phone.tab +lib/xcin/phone.tab.rev +lib/xcin/phs_out +lib/xcin/pho.sel1st +lib/xcin/pho.tab +lib/xcin/pin2tsin +lib/xcin/pinyin.cin +lib/xcin/pinyin.tab +lib/xcin/pinyin.tab.rev +lib/xcin/sample.phs.out +lib/xcin/tsa2d +lib/xcin/tsa2rel +lib/xcin/tsd2a +lib/xcin/tsin +lib/xcin/tsin.idx +lib/xcin/tsin.rel +lib/xcin/tsin_pin.map +lib/xcin/tsin.rel.src +lib/xcin/tsin.src +lib/xcin/voca.box +lib/xcin/zmdbosh.cin +lib/xcin/zmdbosh.tab +lib/xcin/zmdbosh.tab.rev +lib/xcin/zo.kbm +lib/xcin/docs/Boshiamy.HOWTO +lib/xcin/docs/Xfonts.HOWTO +lib/xcin/docs/cin2tab.HOWTO +lib/xcin/docs/xcin.HOWTO +man/man1/cin2tab.1 +man/man1/xcin.1 +@dirrm lib/xcin/docs +@dirrm lib/xcin