diff options
author | delphij <delphij@FreeBSD.org> | 2015-03-31 15:08:00 +0800 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-03-31 15:08:00 +0800 |
commit | d99aaf142743e32671285f8831f8472090451c35 (patch) | |
tree | 78917bf49ceac628433c2677aa29dda7b28d1619 /chinese/fcitx-libpinyin | |
parent | cf8ba76fd0d6653c6f77f2a5b31d2cd481ab5572 (diff) | |
download | freebsd-ports-gnome-d99aaf142743e32671285f8831f8472090451c35.tar.gz freebsd-ports-gnome-d99aaf142743e32671285f8831f8472090451c35.tar.zst freebsd-ports-gnome-d99aaf142743e32671285f8831f8472090451c35.zip |
Major update to libpinyin, fcitx and their add ons:
- New port: chinese/brise Rime schema repository
- Update chinese/fcitx to 4.2.8.5.
- Update chinese/fcitx-chewing to 0.2.2.
- Update chinese/fcitx-cloudpinyin to 0.3.4.
- Update chinese/fcitx-configtool to 0.4.8.
- Update chinese/fcitx-libpinyin to 0.3.1.
- Update chinese/fcitx-rime to 0.3.1.
- Update chinese/fcitx-sunpinyin to 0.4.1.
- Update chinese/fcitx-table-extra to 0.3.7.
- Add LICENSE and update website (mainly move off Google Code)
for various ports.
- Update chinese/libpinyin to 1.1.0.
- Update chinese/librime to 1.1.
- Update chinese/opencc to 0.4.3.
- Update japanese/fcitx-anthy to 0.2.1.
- New port: japanese/fcitx-skk SKK support for Fcitx
- Update korean/fcitx-hangul to 0.3.0.
- Update textproc/fcitx-m17n to 0.2.3.
PR: ports/198743
Submitted by: maintainer, hiroto.kagotani@gmail.com, delphij
Diffstat (limited to 'chinese/fcitx-libpinyin')
-rw-r--r-- | chinese/fcitx-libpinyin/Makefile | 38 | ||||
-rw-r--r-- | chinese/fcitx-libpinyin/distinfo | 8 | ||||
-rw-r--r-- | chinese/fcitx-libpinyin/files/patch-CMakeLists.txt | 10 | ||||
-rw-r--r-- | chinese/fcitx-libpinyin/files/patch-dictmanager__CMakeLists.txt | 11 | ||||
-rw-r--r-- | chinese/fcitx-libpinyin/files/patch-src__CMakeLists.txt | 10 | ||||
-rw-r--r-- | chinese/fcitx-libpinyin/pkg-descr | 2 | ||||
-rw-r--r-- | chinese/fcitx-libpinyin/pkg-plist | 20 |
7 files changed, 73 insertions, 26 deletions
diff --git a/chinese/fcitx-libpinyin/Makefile b/chinese/fcitx-libpinyin/Makefile index 13d4da3d2f81..75d46bcf2797 100644 --- a/chinese/fcitx-libpinyin/Makefile +++ b/chinese/fcitx-libpinyin/Makefile @@ -2,29 +2,45 @@ # $FreeBSD$ PORTNAME= fcitx-libpinyin -PORTVERSION= 0.2.1 +PORTVERSION= 0.3.1 CATEGORIES= chinese -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \ - http://cloud.github.com/downloads/fcitx/fcitx-libpinyin/:libpinyin -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} model.text.${MDVER}.tar.gz:libpinyin +MASTER_SITES= http://download.fcitx-im.org/${PORTNAME}/:body \ + http://download.fcitx-im.org/data/:data +DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:body \ + model.text.${_MODEL_VER}.tar.gz:data DIST_SUBDIR= fcitx EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= lichray@gmail.com -COMMENT= The libpinyin support for Fcitx +COMMENT= Libpinyin support for Fcitx + +LICENSE= GPLv2 LIB_DEPENDS= libfcitx-config.so:${PORTSDIR}/chinese/fcitx \ libpinyin.so:${PORTSDIR}/chinese/libpinyin -USE_LDCONFIG= ${PREFIX}/lib/fcitx/ USES= tar:xz cmake gettext pkgconfig -USE_GNOME= intltool INSTALLS_ICONS= yes -post-patch: - @${LN} -s ${_DISTDIR}/model.text.${MDVER}.tar.gz ${WRKSRC}/data +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +_MODEL_VER= 20130308 + +OPTIONS_DEFINE= QT4 +OPTIONS_DEFAULT=QT4 +QT4_DESC= Enable Qt4 for dictmanager -PROJECTHOST= fcitx -MDVER= 20120921 +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MQT4} +USE_QT4= qmake_build moc_build rcc_build uic_build gui webkit +USE_LDCONFIG= ${PREFIX}/lib/fcitx/qt +PLIST_SUB+= QT4="" +.else +CMAKE_ARGS+= -DENABLE_QT=OFF +PLIST_SUB+= QT4="@comment " +.endif + +post-patch: + @${CP} ${_DISTDIR}/model.text.${_MODEL_VER}.tar.gz ${WRKSRC}/data/. .include <bsd.port.mk> diff --git a/chinese/fcitx-libpinyin/distinfo b/chinese/fcitx-libpinyin/distinfo index 3b54d009ff38..e535172c4bfa 100644 --- a/chinese/fcitx-libpinyin/distinfo +++ b/chinese/fcitx-libpinyin/distinfo @@ -1,4 +1,4 @@ -SHA256 (fcitx/fcitx-libpinyin-0.2.1.tar.xz) = 6a5c9f7c7009a893b4beba85d6ee361253ca1211ce954da0e752c01a528c8c09 -SIZE (fcitx/fcitx-libpinyin-0.2.1.tar.xz) = 24468 -SHA256 (fcitx/model.text.20120921.tar.gz) = 84f086a8eb56a4a8ddab7d95ce1b386dfe292561a3271132e3aa6e85ba4ed339 -SIZE (fcitx/model.text.20120921.tar.gz) = 9980454 +SHA256 (fcitx/fcitx-libpinyin-0.3.1.tar.xz) = 11112c29579af01c38b5af6069c6433c22ee538ebaad55577e5737d3e4fa9158 +SIZE (fcitx/fcitx-libpinyin-0.3.1.tar.xz) = 41520 +SHA256 (fcitx/model.text.20130308.tar.gz) = 4595b5832ec1f81e93a37ec5841a57898c68f6024ef0593b8de127d1e3571a69 +SIZE (fcitx/model.text.20130308.tar.gz) = 15100062 diff --git a/chinese/fcitx-libpinyin/files/patch-CMakeLists.txt b/chinese/fcitx-libpinyin/files/patch-CMakeLists.txt deleted file mode 100644 index 24ef080cbe95..000000000000 --- a/chinese/fcitx-libpinyin/files/patch-CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ ---- CMakeLists.txt~ 2012-07-05 04:14:59.000000000 -0500 -+++ CMakeLists.txt 2012-09-04 16:36:28.118990420 -0500 -@@ -9,7 +9,6 @@ FIND_PACKAGE(Gettext REQUIRED) - FIND_PACKAGE(Fcitx 4.2.0 REQUIRED) - find_package(GLIB2 REQUIRED) - find_package(Libpinyin REQUIRED) --find_program(WGET wget REQUIRED) - find_program(TAR tar REQUIRED) - - # uninstall target diff --git a/chinese/fcitx-libpinyin/files/patch-dictmanager__CMakeLists.txt b/chinese/fcitx-libpinyin/files/patch-dictmanager__CMakeLists.txt new file mode 100644 index 000000000000..deb57f9f5940 --- /dev/null +++ b/chinese/fcitx-libpinyin/files/patch-dictmanager__CMakeLists.txt @@ -0,0 +1,11 @@ +--- ./dictmanager/CMakeLists.txt.orig 2013-07-16 05:34:05.000000000 +0900 ++++ ./dictmanager/CMakeLists.txt 2014-03-19 15:52:24.000000000 +0900 +@@ -60,6 +60,7 @@ + ${FCITX_QT_LIBRARIES} + ${FCITX4_FCITX_UTILS_LIBRARIES} + ${FCITX4_FCITX_CONFIG_LIBRARIES} ++${LIBINTL_LIBRARIES} + ) + +-install(TARGETS fcitx-libpinyin-dictmanager DESTINATION ${FCITX4_ADDON_INSTALL_DIR}/qt) ++install(TARGETS fcitx-libpinyin-dictmanager DESTINATION ${FCITX4_ADDON_INSTALL_DESTDIR}/qt) diff --git a/chinese/fcitx-libpinyin/files/patch-src__CMakeLists.txt b/chinese/fcitx-libpinyin/files/patch-src__CMakeLists.txt new file mode 100644 index 000000000000..5a1d19c76611 --- /dev/null +++ b/chinese/fcitx-libpinyin/files/patch-src__CMakeLists.txt @@ -0,0 +1,10 @@ +--- ./src/CMakeLists.txt.orig 2013-07-16 05:34:05.000000000 +0900 ++++ ./src/CMakeLists.txt 2014-03-19 15:51:24.000000000 +0900 +@@ -22,6 +22,7 @@ + ) + + add_definitions( -DLOCALEDIR=\"${CMAKE_INSTALL_PREFIX}/share/locale\" ) ++add_definitions( -D_WITH_GETLINE ) + + fcitx_add_addon_full(libpinyin DESC + SOURCES ${fcitx_libpinyin_sources} diff --git a/chinese/fcitx-libpinyin/pkg-descr b/chinese/fcitx-libpinyin/pkg-descr index 877472a5e6fa..ba2dc2c0f935 100644 --- a/chinese/fcitx-libpinyin/pkg-descr +++ b/chinese/fcitx-libpinyin/pkg-descr @@ -1,4 +1,4 @@ fcitx-libpinyin provides libpinyin, a Chinese pinyin input method algorithm collection, as a back-end to the Fcitx IM framework. -WWW: http://code.google.com/p/fcitx/ +WWW: https://fcitx-im.org/wiki/Fcitx diff --git a/chinese/fcitx-libpinyin/pkg-plist b/chinese/fcitx-libpinyin/pkg-plist index 718b286689a4..7d92023a47c0 100644 --- a/chinese/fcitx-libpinyin/pkg-plist +++ b/chinese/fcitx-libpinyin/pkg-plist @@ -1,14 +1,34 @@ lib/fcitx/fcitx-libpinyin.so +%%QT4%%lib/fcitx/qt/libfcitx-libpinyin-dictmanager.so share/fcitx/addon/fcitx-libpinyin.conf share/fcitx/configdesc/fcitx-libpinyin.desc +share/fcitx/imicon/bopomofo.png +share/fcitx/imicon/pinyin-libpinyin.png +share/fcitx/imicon/shuangpin-libpinyin.png share/fcitx/inputmethod/pinyin-libpinyin.conf share/fcitx/inputmethod/shuangpin-libpinyin.conf share/fcitx/inputmethod/zhuyin-libpinyin.conf +share/fcitx/libpinyin/zhuyin_data/art.bin share/fcitx/libpinyin/zhuyin_data/bigram.db +share/fcitx/libpinyin/zhuyin_data/culture.bin +share/fcitx/libpinyin/zhuyin_data/economy.bin share/fcitx/libpinyin/zhuyin_data/gb_char.bin share/fcitx/libpinyin/zhuyin_data/gbk_char.bin +share/fcitx/libpinyin/zhuyin_data/geology.bin +share/fcitx/libpinyin/zhuyin_data/history.bin +share/fcitx/libpinyin/zhuyin_data/life.bin +share/fcitx/libpinyin/zhuyin_data/merged.bin +share/fcitx/libpinyin/zhuyin_data/nature.bin share/fcitx/libpinyin/zhuyin_data/phrase_index.bin share/fcitx/libpinyin/zhuyin_data/pinyin_index.bin +share/fcitx/libpinyin/zhuyin_data/scitech.bin +share/fcitx/libpinyin/zhuyin_data/society.bin +share/fcitx/libpinyin/zhuyin_data/sport.bin +share/fcitx/libpinyin/zhuyin_data/table.conf share/icons/hicolor/48x48/status/fcitx-bopomofo.png +share/icons/hicolor/48x48/status/fcitx-pinyin-libpinyin.png +share/icons/hicolor/48x48/status/fcitx-shuangpin-libpinyin.png +share/locale/de/LC_MESSAGES/fcitx-libpinyin.mo +share/locale/ja/LC_MESSAGES/fcitx-libpinyin.mo share/locale/zh_CN/LC_MESSAGES/fcitx-libpinyin.mo share/locale/zh_TW/LC_MESSAGES/fcitx-libpinyin.mo |