diff options
author | Xin LI <delphij@FreeBSD.org> | 2014-07-08 00:52:37 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2014-07-08 00:52:37 +0000 |
commit | 511be198a1eea1f0eef8cb2037e668767d6a9661 (patch) | |
tree | 4607fc1445323a115a809449323f3a350096f2db /chinese/ibus-pinyin | |
parent | c634b98f203cf1af79f666b327d26c951591e810 (diff) | |
download | ports-511be198a1eea1f0eef8cb2037e668767d6a9661.tar.gz ports-511be198a1eea1f0eef8cb2037e668767d6a9661.zip |
Notes
Diffstat (limited to 'chinese/ibus-pinyin')
-rw-r--r-- | chinese/ibus-pinyin/Makefile | 60 | ||||
-rw-r--r-- | chinese/ibus-pinyin/distinfo | 6 | ||||
-rw-r--r-- | chinese/ibus-pinyin/files/patch-init-config | 12 | ||||
-rw-r--r-- | chinese/ibus-pinyin/pkg-plist | 21 |
4 files changed, 34 insertions, 65 deletions
diff --git a/chinese/ibus-pinyin/Makefile b/chinese/ibus-pinyin/Makefile index 0b6e9e2771bb..10829c1de06c 100644 --- a/chinese/ibus-pinyin/Makefile +++ b/chinese/ibus-pinyin/Makefile @@ -2,79 +2,43 @@ # $FreeBSD$ PORTNAME= ibus-pinyin -PORTVERSION= 1.4.0 -PORTREVISION= 4 +PORTVERSION= 1.5.0 CATEGORIES= chinese MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} -EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= henry.hu.sh@gmail.com COMMENT= PinYin engine for IBus -BUILD_DEPENDS= ibus-daemon:${PORTSDIR}/textproc/ibus \ - ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 -RUN_DEPENDS= ibus-daemon:${PORTSDIR}/textproc/ibus \ - ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 +LICENSE= GPLv2 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xdg>0:${PORTSDIR}/devel/py-xdg \ + ${LOCALBASE}/share/gir-1.0/IBus-1.0.gir:${PORTSDIR}/textproc/ibus +LIB_DEPENDS= libpyzy-1.0.so:${PORTSDIR}/chinese/pyzy \ + libibus-1.0.so:${PORTSDIR}/textproc/ibus \ + libsqlite3.so:${PORTSDIR}/databases/sqlite3 USE_PYTHON= yes -USE_GNOME= pygtk2 -USES= gmake pkgconfig compiler:c++0x +USES= gmake pkgconfig compiler:c++11-lib GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-dependency-tracking --disable-lua-extension PROJECTHOST= ibus -OPTIONS_DEFINE= ANDROID_DB OPENPHRASE_DB OPENCC NLS -OPTIONS_DEFAULT= ANDROID_DB -ANDROID_DB_DESC= Build Android DB -OPENPHRASE_DB_DESC= Build Open Phrase DB -OPENCC_DESC= Use opencc +OPTIONS_DEFINE= NLS +OPTIONS_DEFAULT= NLS -NO_STAGE= yes .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MANDROID_DB} -CONFIGURE_ARGS+= --enable-db-android -PLIST_SUB+= ANDROID_DB="" -.else -CONFIGURE_ARGS+= --disable-db-android -PLIST_SUB+= ANDROID_DB="@comment " -.endif - -OPENPHRASE_DBVER= 1.2.99 -OPENPHRASE_DBFILE= pinyin-database-${OPENPHRASE_DBVER}.tar.bz2 - -.if ${PORT_OPTIONS:MOPENPHRASE_DB} -CONFIGURE_ARGS+= --enable-db-open-phrase -DISTFILES+= ${OPENPHRASE_DBFILE} -PLIST_SUB+= OPENPHRASE_DB="" -.else -CONFIGURE_ARGS+= --disable-db-open-phrase -PLIST_SUB+= OPENPHRASE_DB="@comment " -.endif - -.if ${PORT_OPTIONS:MOPENCC} -CONFIGURE_ARGS+= --enable-opencc -LIB_DEPENDS+= libopencc.so:${PORTSDIR}/chinese/opencc -.else -CONFIGURE_ARGS+= --disable-opencc -.endif - .if ${PORT_OPTIONS:MNLS} USES+= gettext +USE_GNOME+= intltool PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " .endif -post-extract: -.if ${PORT_OPTIONS:MOPENPHRASE_DB} - @${CP} ${DISTDIR}/${OPENPHRASE_DBFILE} ${WRKSRC}/data/db/open-phrase -.endif - post-patch: @${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' ${WRKSRC}/configure diff --git a/chinese/ibus-pinyin/distinfo b/chinese/ibus-pinyin/distinfo index 6963464cb67d..7f38f44e9693 100644 --- a/chinese/ibus-pinyin/distinfo +++ b/chinese/ibus-pinyin/distinfo @@ -1,4 +1,2 @@ -SHA256 (ibus-pinyin-1.4.0.tar.gz) = 4fcaef6ac0533945c7feb4cb36fc72c102aae63b3fb4cbf338cdcc816182c24a -SIZE (ibus-pinyin-1.4.0.tar.gz) = 1813003 -SHA256 (pinyin-database-1.2.99.tar.bz2) = 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 -SIZE (pinyin-database-1.2.99.tar.bz2) = 9977983 +SHA256 (ibus-pinyin-1.5.0.tar.gz) = a85d458dcc51ea9fd65849e63002428b3fcb3b39adcbea9214b5cb4a4cbdbc96 +SIZE (ibus-pinyin-1.5.0.tar.gz) = 692516 diff --git a/chinese/ibus-pinyin/files/patch-init-config b/chinese/ibus-pinyin/files/patch-init-config new file mode 100644 index 000000000000..7e70422cb132 --- /dev/null +++ b/chinese/ibus-pinyin/files/patch-init-config @@ -0,0 +1,12 @@ +diff --git a/src/PYConfig.cc b/src/PYConfig.cc +index 7e24b2c..1ef0b99 100644 +--- src/PYConfig.cc ++++ src/PYConfig.cc +@@ -114,6 +114,7 @@ Config::initDefaultValues (void) + m_init_full_punct = TRUE; + m_init_simp_chinese = TRUE; + m_special_phrases = TRUE; ++ m_double_pinyin = FALSE; + updateContext (PyZy::InputContext::PROPERTY_SPECIAL_PHRASE, + PyZy::Variant::fromBool (m_special_phrases)); + } diff --git a/chinese/ibus-pinyin/pkg-plist b/chinese/ibus-pinyin/pkg-plist index 548576016f07..8230a05c6de9 100644 --- a/chinese/ibus-pinyin/pkg-plist +++ b/chinese/ibus-pinyin/pkg-plist @@ -1,13 +1,8 @@ -%%NLS%%share/locale/ru/LC_MESSAGES/ibus-pinyin.mo -%%NLS%%share/locale/zh_CN/LC_MESSAGES/ibus-pinyin.mo -%%NLS%%share/locale/zh_HK/LC_MESSAGES/ibus-pinyin.mo -%%NLS%%share/locale/zh_TW/LC_MESSAGES/ibus-pinyin.mo libexec/ibus-engine-pinyin libexec/ibus-setup-pinyin -%%ANDROID_DB%%%%DATADIR%%/db/android.db -%%OPENPHRASE_DB%%%%DATADIR%%/db/open-phrase.db +share/applications/ibus-setup-bopomofo.desktop +share/applications/ibus-setup-pinyin.desktop %%DATADIR%%/db/english.db -%%DATADIR%%/db/create_index.sql %%DATADIR%%/icons/chinese.svg %%DATADIR%%/icons/english.svg %%DATADIR%%/icons/full-punct.svg @@ -27,14 +22,14 @@ libexec/ibus-setup-pinyin %%DATADIR%%/setup/version.pyc %%DATADIR%%/setup/version.pyo share/ibus/component/pinyin.xml -%%NLS%%@dirrmtry share/locale/zh_CN/LC_MESSAGES -%%NLS%%@dirrmtry share/locale/zh_CN -%%NLS%%@dirrmtry share/locale/ru/LC_MESSAGES -%%NLS%%@dirrmtry share/locale/ru -%%NLS%%@dirrmtry share/locale +%%NLS%%share/locale/fr/LC_MESSAGES/ibus-pinyin.mo +%%NLS%%share/locale/ru/LC_MESSAGES/ibus-pinyin.mo +%%NLS%%share/locale/zh_CN/LC_MESSAGES/ibus-pinyin.mo +%%NLS%%share/locale/zh_HK/LC_MESSAGES/ibus-pinyin.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/ibus-pinyin.mo @dirrmtry share/ibus/component @dirrmtry share/ibus @dirrm %%DATADIR%%/setup @dirrm %%DATADIR%%/icons -@dirrmtry %%DATADIR%%/db +@dirrm %%DATADIR%%/db @dirrm %%DATADIR%% |