summaryrefslogtreecommitdiffstats
path: root/chinese/scim-pinyin
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 11:46:46 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 11:46:46 +0800
commit570b8345a61414a4f5e8a1651acd54b8410d88db (patch)
treef4ce181414f8ddbcbd5f41d47fe49f007a6696b4 /chinese/scim-pinyin
parenta556168f0817afcb2300bbdffc6ef52b24056c7b (diff)
downloadmarcuscom-ports-570b8345a61414a4f5e8a1651acd54b8410d88db.tar
marcuscom-ports-570b8345a61414a4f5e8a1651acd54b8410d88db.tar.gz
marcuscom-ports-570b8345a61414a4f5e8a1651acd54b8410d88db.tar.bz2
marcuscom-ports-570b8345a61414a4f5e8a1651acd54b8410d88db.tar.lz
marcuscom-ports-570b8345a61414a4f5e8a1651acd54b8410d88db.tar.xz
marcuscom-ports-570b8345a61414a4f5e8a1651acd54b8410d88db.tar.zst
marcuscom-ports-570b8345a61414a4f5e8a1651acd54b8410d88db.zip
- Move to LOCALBASE
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7390 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'chinese/scim-pinyin')
-rw-r--r--chinese/scim-pinyin/Makefile68
-rw-r--r--chinese/scim-pinyin/distinfo3
-rw-r--r--chinese/scim-pinyin/files/patch-skim-setupui-smartpinyinui.ui23
-rw-r--r--chinese/scim-pinyin/pkg-descr7
-rw-r--r--chinese/scim-pinyin/pkg-message20
-rw-r--r--chinese/scim-pinyin/pkg-plist37
6 files changed, 158 insertions, 0 deletions
diff --git a/chinese/scim-pinyin/Makefile b/chinese/scim-pinyin/Makefile
new file mode 100644
index 000000000..ce2a1b43e
--- /dev/null
+++ b/chinese/scim-pinyin/Makefile
@@ -0,0 +1,68 @@
+# New ports collection makefile for: zh-scim-chinese
+# Date created: 20 May 2004
+# Whom: Jie Gao <gaoj@cpsc.ucalgary.ca>
+#
+# $FreeBSD$
+#
+
+PORTNAME= scim-pinyin
+PORTVERSION= 0.5.91
+PORTREVISION= 2
+CATEGORIES= chinese
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=scim
+
+MAINTAINER= gaoj@cpsc.ucalgary.ca
+COMMENT= SCIM Chinese Smart Pinyin input method
+
+BUILD_DEPENDS= scim:${PORTSDIR}/textproc/scim
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+USE_GNOME= gnomehack lthack
+USE_ICONV= yes
+USE_GMAKE= yes
+USE_AUTOTOOLS= libtool:15
+
+CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
+RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/stlport" \
+ LDFLAGS="-L${LOCALBASE}/lib -lstlport_gcc -lintl ${PTHREAD_LIBS}"
+.else
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -D__STDC_ISO_10646__" \
+ LDFLAGS="-L${LOCALBASE}/lib -lintl"
+.endif
+
+PLIST_SUB= SKIM="@comment "
+
+pre-fetch:
+.if exists(${LOCALBASE}/bin/skim)
+ @${ECHO_MSG} "===> Skim is detected, support enabled."
+.else
+ @${ECHO_MSG} "Define WITH_SKIM to enable skim support."
+.endif
+
+.if exists(${LOCALBASE}/bin/skim)
+WITH_SKIM= yes
+.endif
+
+.if !defined(WITH_SKIM)
+CONFIGURE_ARGS+=--disable-skim-support
+.else
+BUILD_DEPENDS+= skim:${PORTSDIR}/textproc/skim
+CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
+PLIST_SUB= SKIM="" PREFIX="${PREFIX}"
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO}
+ @${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
+ @${ECHO}
+
+.include <bsd.port.post.mk>
diff --git a/chinese/scim-pinyin/distinfo b/chinese/scim-pinyin/distinfo
new file mode 100644
index 000000000..0fe21026b
--- /dev/null
+++ b/chinese/scim-pinyin/distinfo
@@ -0,0 +1,3 @@
+MD5 (scim-pinyin-0.5.91.tar.gz) = fb96d3545090d7681ea03edaced4eccb
+SHA256 (scim-pinyin-0.5.91.tar.gz) = 9b6b24af841cbf0353b919df7f56be931850fccf3b914172af7a39b6db726653
+SIZE (scim-pinyin-0.5.91.tar.gz) = 5492055
diff --git a/chinese/scim-pinyin/files/patch-skim-setupui-smartpinyinui.ui b/chinese/scim-pinyin/files/patch-skim-setupui-smartpinyinui.ui
new file mode 100644
index 000000000..44d6e2b45
--- /dev/null
+++ b/chinese/scim-pinyin/files/patch-skim-setupui-smartpinyinui.ui
@@ -0,0 +1,23 @@
+--- skim/setupui/smartpinyinui.ui~ Wed Mar 23 11:45:03 2005
++++ skim/setupui/smartpinyinui.ui Fri Feb 10 21:05:09 2006
+@@ -863,20 +863,4 @@
+ <tabstop>kcfg__IMEngine_Pinyin_DisablePhraseKey</tabstop>
+ </tabstops>
+ <layoutdefaults spacing="6" margin="11"/>
+-<includehints>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+-</includehints>
+ </UI>
diff --git a/chinese/scim-pinyin/pkg-descr b/chinese/scim-pinyin/pkg-descr
new file mode 100644
index 000000000..453c9feab
--- /dev/null
+++ b/chinese/scim-pinyin/pkg-descr
@@ -0,0 +1,7 @@
+SCIM Chinese Smart Pinyin input method
+
+Smart Common Input Method platform, in short SCIM, is a development platform to
+make Input Method developers live easier. It has very clear architecture and
+very simple programming interface.
+
+WWW: http://www.scim-im.org
diff --git a/chinese/scim-pinyin/pkg-message b/chinese/scim-pinyin/pkg-message
new file mode 100644
index 000000000..9e61f11cd
--- /dev/null
+++ b/chinese/scim-pinyin/pkg-message
@@ -0,0 +1,20 @@
+--------------------------------------------------------------------
+Remember to set environment variable XMODIFIERS:
+
+ csh/tcsh: setenv XMODIFIERS @im=SCIM
+ sh/bash: export XMODIFIERS='@im=SCIM'
+
+and set LANG, LC_CTYPE to one of the following values:
+
+ Simplified Chinese:
+ zh_CN.UTF-8, zh_CN.GB18030, zh_CN.GBK, zh_CN.GB2312, zh_CN.eucCN
+
+ Traditional Chinese:
+ zh_TW.UTF-8, zh_TW.Big5
+ zh_HK.UTF-8, zh_HK.Big5-HKSCS
+
+To start the SCIM input method daemon, use command:
+
+ scim -d
+
+--------------------------------------------------------------------
diff --git a/chinese/scim-pinyin/pkg-plist b/chinese/scim-pinyin/pkg-plist
new file mode 100644
index 000000000..71917778a
--- /dev/null
+++ b/chinese/scim-pinyin/pkg-plist
@@ -0,0 +1,37 @@
+lib/scim-1.0/IMEngine/pinyin.a
+lib/scim-1.0/IMEngine/pinyin.la
+lib/scim-1.0/IMEngine/pinyin.so
+lib/scim-1.0/SetupUI/pinyin-imengine-setup.a
+lib/scim-1.0/SetupUI/pinyin-imengine-setup.la
+lib/scim-1.0/SetupUI/pinyin-imengine-setup.so
+share/locale/de/LC_MESSAGES/scim-pinyin.mo
+share/locale/fr/LC_MESSAGES/scim-pinyin.mo
+share/locale/ko/LC_MESSAGES/scim-pinyin.mo
+share/locale/it/LC_MESSAGES/scim-pinyin.mo
+share/locale/ja/LC_MESSAGES/scim-pinyin.mo
+share/locale/zh_CN/LC_MESSAGES/scim-pinyin.mo
+share/locale/zh_TW/LC_MESSAGES/scim-pinyin.mo
+share/scim/pinyin/phrase_lib
+share/scim/pinyin/pinyin_phrase_index
+share/scim/pinyin/pinyin_phrase_lib
+share/scim/pinyin/pinyin_table
+share/scim/pinyin/special_table
+share/scim/icons/smart-pinyin.png
+%%SKIM%%@cwd %%LOCALBASE%%
+%%SKIM%%lib/kde3/kcm_skimplugin_scim_smartpinyin.a
+%%SKIM%%lib/kde3/kcm_skimplugin_scim_smartpinyin.la
+%%SKIM%%lib/kde3/kcm_skimplugin_scim_smartpinyin.so
+%%SKIM%%share/services/skimconfiguredialog/skimplugin_scim_smartpinyin_config.desktop
+%%SKIM%%share/config.kcfg/smartpinyin.kcfg
+%%SKIM%%share/locale/zh_CN/LC_MESSAGES/skim-scim-pinyin.mo
+%%SKIM%%share/locale/zh_TW/LC_MESSAGES/skim-scim-pinyin.mo
+%%SKIM%%share/locale/de/LC_MESSAGES/skim-scim-pinyin.mo
+%%SKIM%%share/locale/fr/LC_MESSAGES/skim-scim-pinyin.mo
+%%SKIM%%share/locale/ja/LC_MESSAGES/skim-scim-pinyin.mo
+%%SKIM%%share/locale/it/LC_MESSAGES/skim-scim-pinyin.mo
+%%SKIM%%share/locale/ko/LC_MESSAGES/skim-scim-pinyin.mo
+%%SKIM%%share/apps/skim/pics/smart-pinyin.png
+%%SKIM%%@cwd %%PREFIX%%
+@dirrmtry lib/scim-1.0/IMEngine
+@dirrmtry lib/scim-1.0/SetupUI
+@dirrm share/scim/pinyin