summaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 12:52:43 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 12:52:43 +0800
commit39dfaca9d7337b5cbfac644953a106f2d4ea18a8 (patch)
tree4e6e4508d09d0b3fa1dcf7d0e16fe9b694eb419f /chinese
parent41e3fece19dcd8b76033eb5a9f28e398d8ddca42 (diff)
downloadmarcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar
marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.gz
marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.bz2
marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.lz
marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.xz
marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.zst
marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.zip
-USE_X_PREFIX -> USE_XLIB, chase gtk20/gnome's new home.
-Bump the PORTREVISION. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7398 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'chinese')
-rw-r--r--chinese/gcin/Makefile80
-rw-r--r--chinese/gcin/distinfo6
-rw-r--r--chinese/gcin/files/patch-menu21
-rw-r--r--chinese/gcin/pkg-descr4
-rw-r--r--chinese/gcin/pkg-message11
-rw-r--r--chinese/gcin/pkg-plist70
6 files changed, 192 insertions, 0 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile
new file mode 100644
index 000000000..12e33ee53
--- /dev/null
+++ b/chinese/gcin/Makefile
@@ -0,0 +1,80 @@
+# New ports collection makefile for: gcin
+# Date created: Feb 18 2004
+# Whom: Shen Chuan-Hsing
+#
+# $FreeBSD$
+#
+
+PORTNAME= gcin
+PORTVERSION= 1.2.6
+PORTREVISION= 1
+CATEGORIES= chinese textproc gnome
+MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/:main
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main
+EXTRACT_ONLY= gcin-${PORTVERSION}.tar.bz2
+
+MAINTAINER= chinsan.tw@gmail.com
+COMMENT= A traditional chinese input utility in X
+
+USE_XLIB= YES
+USE_BZIP2= YES
+GNU_CONFIGURE= YES
+USE_GNOME= gtk20
+USE_GMAKE= YES
+USE_GCC= 3.4+
+INSTALLS_ICONS= YES
+USE_LDCONFIG= YES
+OPTIONS= BOSHIAMY "enable Boshiamy Input Method" off
+
+CONFIGURE_ENV+= "--new_gtk_im=Y"
+
+MAN1= gcin.1 gcin2tab.1
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_BOSHIAMY)
+MASTER_SITES+= http://edt1023.sayya.org/misc/:boshiamy
+DISTFILES+= noseeing-6.tar.gz:boshiamy
+post-extract:
+ @${TAR} -C ${WRKSRC}/data/ -zxf ${DISTDIR}/noseeing-6.tar.gz \
+ noseeing.cin
+ @${REINPLACE_CMD} -e 's,cj.gtab,cj.gtab noseeing.gtab,' \
+ ${WRKSRC}/data/Makefile
+.endif
+
+pre-patch:
+ @${REINPLACE_CMD} -e 's,gcin.png,${PREFIX}/share/icons/gcin.png,' \
+ ${WRKSRC}/menu/gcin-setup.desktop
+ @${REINPLACE_CMD} -e 's/&//; s/bash/sh/; \
+ s/QT_IM_DIR=\/usr/QT_IM_DIR=$$prefix/; \
+ s/mandir=$$datadir/mandir=$$prefix/; \
+ s/\/usr\/share/$$prefix\/share/; \
+ 109,110 s/control-center-2\.0/gnome\/control-center-2\.0/; \
+ s/gcc/$$CC/; s/gcin-$$GCIN_VERSION/gcin/' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's/qsort/mergesort/' ${WRKSRC}/gcin2tab.c
+ @${REINPLACE_CMD} -e 's/modify-XIM //; 8,10 d' ${WRKSRC}/scripts/Makefile
+ @${REINPLACE_CMD} -e 's/bash/sh/;' ${WRKSRC}/scripts/gcin-user-setup
+ @${REINPLACE_CMD} -e 's/bash/sh/; s/&//; s/opt\/gnome/usr\/X11R6/;' \
+ ${WRKSRC}/scripts/utf8-edit
+ @${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,' \
+ ${WRKSRC}/gtk-im/gtkimcontextgcin.c
+
+.if defined(WITH_BOSHIAMY)
+post-patch:
+PLIST_SUB+= BOSHIAMY=""
+.else
+PLIST_SUB+= BOSHIAMY="@comment "
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in Changelog README
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+ @gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
+
+.include <bsd.port.post.mk>
diff --git a/chinese/gcin/distinfo b/chinese/gcin/distinfo
new file mode 100644
index 000000000..d11042e14
--- /dev/null
+++ b/chinese/gcin/distinfo
@@ -0,0 +1,6 @@
+MD5 (gcin-1.2.6.tar.bz2) = c3ac7d5114c27ea20e60263890f05b13
+SHA256 (gcin-1.2.6.tar.bz2) = 6b047fb3831c8d007939b0f6b0ca28014c9591b21dfcf9477069139e3651a9f0
+SIZE (gcin-1.2.6.tar.bz2) = 1536223
+MD5 (noseeing-6.tar.gz) = c67e5c85b2805f12bb2f092dfa1814b7
+SHA256 (noseeing-6.tar.gz) = 2f240c8dbb15c2249dff74102842bbccfe307a721cf2c092c75dc6234e470f9b
+SIZE (noseeing-6.tar.gz) = 400429
diff --git a/chinese/gcin/files/patch-menu b/chinese/gcin/files/patch-menu
new file mode 100644
index 000000000..2acd2a1f3
--- /dev/null
+++ b/chinese/gcin/files/patch-menu
@@ -0,0 +1,21 @@
+--- menu/Makefile.orig Mon Aug 29 09:40:32 2005
++++ menu/Makefile Thu Sep 15 11:53:49 2005
+@@ -12,12 +12,12 @@
+ install -m 644 $(MENUS) /usr/lib/menu; \
+ which update-menus >& /dev/null && update-menus || exit 0; \
+ else \
+- install -d $(libdir)/menu; \
+- install -m 644 $(MENUS) $(libdir)/menu; \
+- install -d $(GCIN_SETUP_DESKTOP_rpm); \
+- install -m 644 gcin-setup.desktop $(GCIN_SETUP_DESKTOP_rpm); \
+- install -d $(datadir)/applications; \
+- install -m 644 gcin-setup.desktop $(datadir)/applications; \
++ install -d $(prefix)/share/applications; \
++ install -m 644 $(MENUS) $(prefix)/share/applications; \
++ echo "install Gnome's control center panel ..."; \
++ install -d $(datadir)/gnome/control-center-2.0/capplets; \
++ install -m 644 gcin-setup.desktop $(datadir)/gnome/control-center-2.0/capplets; \
++ echo "installing Other common wm(ie:xfce4)'s menu panel ..."; \
+ fi
+ clean:
+ rm -f $(MENUS) *~
diff --git a/chinese/gcin/pkg-descr b/chinese/gcin/pkg-descr
new file mode 100644
index 000000000..a4f4aaff2
--- /dev/null
+++ b/chinese/gcin/pkg-descr
@@ -0,0 +1,4 @@
+gcin is a Gtk Chinese INput application in X, well support in Traditional
+Chinese(Big5) charsets.
+
+WWW: http://www.csie.nctu.edu.tw/~cp76/gcin/
diff --git a/chinese/gcin/pkg-message b/chinese/gcin/pkg-message
new file mode 100644
index 000000000..553c1c4cb
--- /dev/null
+++ b/chinese/gcin/pkg-message
@@ -0,0 +1,11 @@
+--------------------------------------------------------------------
+Remember to set environment varible:
+
+ (csh/tcsh) (sh/bash)
+ setenv XMODIFIERS @im=gcin export XMODIFIERS='@im=gcin'
+
+Finally, to start the GCIN input method daemon, use command:
+
+ exec gcin &
+
+--------------------------------------------------------------------
diff --git a/chinese/gcin/pkg-plist b/chinese/gcin/pkg-plist
new file mode 100644
index 000000000..5efeae00f
--- /dev/null
+++ b/chinese/gcin/pkg-plist
@@ -0,0 +1,70 @@
+bin/gcin
+bin/gcin-gb-toggle
+bin/gcin-setup
+bin/gcin2tab
+bin/juyin-learn
+bin/phoa2d
+bin/phod2a
+bin/sim2trad
+bin/trad2sim
+bin/tsa2d32
+bin/tsd2a
+bin/tsd2a32
+bin/tslearn
+include/gcin-im-client.h
+lib/gtk-2.0/immodules/im-gcin.so
+lib/libgcin-im-client.so
+%%DATADIR%%/script/gcin-user-setup
+%%DATADIR%%/script/utf8-edit
+%%DATADIR%%/table/ar30.gtab
+%%DATADIR%%/table/cj-punc.gtab
+%%DATADIR%%/table/cj.gtab
+%%DATADIR%%/table/cj5.gtab
+%%DATADIR%%/table/dayi3.gtab
+%%DATADIR%%/table/et-asdf.kbm
+%%DATADIR%%/table/et.kbm
+%%DATADIR%%/table/et26-asdf.kbm
+%%DATADIR%%/table/et26.kbm
+%%DATADIR%%/table/greek.gtab
+%%DATADIR%%/table/gtab.list
+%%DATADIR%%/table/hsu.kbm
+%%DATADIR%%/table/ibm.kbm
+%%DATADIR%%/table/jyutping.gtab
+%%DATADIR%%/table/kana-nippon.gtab
+%%DATADIR%%/table/latin-letters.gtab
+%%BOSHIAMY%%%%DATADIR%%/table/noseeing.gtab
+%%DATADIR%%/table/pho-huge.tab
+%%DATADIR%%/table/pho.tab
+%%DATADIR%%/table/phrase.table
+%%DATADIR%%/table/pinyin.gtab
+%%DATADIR%%/table/simplex.gtab
+%%DATADIR%%/table/symbol-table
+%%DATADIR%%/table/tsin-1.src
+%%DATADIR%%/table/tsin32
+%%DATADIR%%/table/tsin32.idx
+%%DATADIR%%/table/zo.kbm
+%%DATADIR%%/table/zo-asdf.kbm
+%%PORTDOCS%%%%DOCSDIR%%/Changelog
+%%PORTDOCS%%%%DOCSDIR%%/README
+share/applications/gcin
+share/applications/gcin-setup
+share/gnome/control-center-2.0/capplets/gcin-setup.desktop
+share/icons/gcin/gcin-tray.png
+share/icons/gcin/greek.png
+share/icons/gcin/tsin.png
+share/icons/gcin.png
+share/icons/gcin/pin-fixed24.png
+share/icons/gcin/pin-float16.png
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry share/icons/gcin
+@dirrmtry share/icons
+@dirrmtry share/gnome/control-center-2.0/capplets
+@dirrmtry share/gnome/control-center-2.0
+@dirrmtry share/gnome
+@dirrmtry share/applications
+@dirrmtry %%DATADIR%%/table
+@dirrmtry %%DATADIR%%/script
+@dirrmtry %%DATADIR%%
+@dirrmtry lib/gtk-2.0/immodules
+@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
+@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules