Date: Mon, 15 Oct 2012 20:06:07 -0700 (PDT) From: Zhihao Yuan <lichray@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/172751: New ports: chinese/librime and chinese/fcitx-rime Message-ID: <507ccf1f.e92e320a.4ea8.3a98@mx.google.com> Resent-Message-ID: <201210160310.q9G3A3Gr094098@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172751 >Category: ports >Synopsis: New ports: chinese/librime and chinese/fcitx-rime >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Oct 16 03:10:02 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Zhihao Yuan >Release: FreeBSD 8.3-STABLE amd64 >Organization: Northern Illinois University >Environment: System: FreeBSD elitebook.hp 8.3-STABLE FreeBSD 8.3-STABLE #4 r240363: Tue Sep 11 10:40:15 CDT 2012 lichray@elitebook.hp:/usr/obj/usr/src/sys/HOUKAGO amd64 >Description: Port the RIME input method engine (along with the fcitx-rime front-end): https://code.google.com/p/rimeime/ This PR depends on ports/172737 , or libyaml-cpp can't be detected. I also recommend ports/172735 to be committed first. The chinese/rime port contains both the engine and the data. The chinese/fcitx-rime port contains a patch to install the imicon. The upstream will do the same thing in the next release. >How-To-Repeat: >Fix: --- librime.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # librime # librime/Makefile # librime/distinfo # librime/pkg-plist # librime/pkg-descr # echo c - librime mkdir -p librime > /dev/null 2>&1 echo x - librime/Makefile sed 's/^X//' >librime/Makefile << 'a986b8653198841afa31954a3736c79e' X# New ports collection makefile for: librime X# Date created: 15 Oct 2012 X# Whom: Zhihao Yuan <lichray@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= librime XPORTVERSION= 0.9.4 XCATEGORIES= chinese textproc XMASTER_SITES= GOOGLE_CODE XDISTFILES= ${DISTNAME}${EXTRACT_SUFX} brise-${DATA_VER}.tar.gz X XMAINTAINER= lichray@gmail.com XCOMMENT= Rime Input Method Engine X XLICENSE= GPLv3 X XLIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs \ X glog:${PORTSDIR}/devel/glog \ X kyotocabinet:${PORTSDIR}/databases/kyotocabinet \ X opencc:${PORTSDIR}/chinese/opencc \ X yaml-cpp:${PORTSDIR}/devel/yaml-cpp X XUSE_CMAKE= yes XUSE_GETTEXT= yes XUSE_GNOME= pkgconfig XUSE_LDCONFIG= yes XLDFLAGS+= -lintl X Xpost-patch: .SILENT X ${REINPLACE_CMD} 's|$${LIB_INSTALL_DIR}/pkgconfig|$${prefix}/libdata/pkgconfig|' \ X ${WRKSRC}/CMakeLists.txt X Xpost-build: X @echo "building rime data." X @${MKDIR} ${DATASRC} X @(cd ${WRKDIR}/brise; ${CP} \ X default.yaml essay.kct supplement/*.yaml preset/*.yaml ${DATASRC}) X ${WRKSRC}/bin/rime_deployer --build ${DATASRC} X Xpost-install: X ${MKDIR} ${DATADIR}/data X ${INSTALL_DATA} ${DATASRC}/*.kct ${DATASRC}/*.bin ${DATADIR}/data/ X XPROJECTHOST= rimeime XDATA_VER= 0.13 XWRKSRC= ${WRKDIR}/${PORTNAME} XDATASRC= ${WRKDIR}/tmp XDATADIR= ${PREFIX}/share/rime X X.include <bsd.port.mk> a986b8653198841afa31954a3736c79e echo x - librime/distinfo sed 's/^X//' >librime/distinfo << 'faae626f43d8b2d1a415985def0f7af4' XSHA256 (librime-0.9.4.tar.gz) = 626082f5a2954686059445e414786691ee568777104ce8e093fbfd47c0095795 XSIZE (librime-0.9.4.tar.gz) = 2300407 XSHA256 (brise-0.13.tar.gz) = 72c7ea43b5baf972a1d9a6cccce5f860b73924b36e2b3f68822ac8329d1c11f3 XSIZE (brise-0.13.tar.gz) = 5368874 faae626f43d8b2d1a415985def0f7af4 echo x - librime/pkg-plist sed 's/^X//' >librime/pkg-plist << '970b12180250265399d84efc9947820c' Xbin/rime_deployer Xbin/rime_dict_manager Xinclude/rime_api.h Xlib/librime.so Xlib/librime.so.0 Xlib/librime.so.0.9.4 Xlibdata/pkgconfig/rime.pc Xshare/cmake/rime/RimeConfig.cmake Xshare/rime/data/cangjie5.prism.bin Xshare/rime/data/cangjie5.reverse.bin Xshare/rime/data/cangjie5.table.bin Xshare/rime/data/essay.kct Xshare/rime/data/luna_pinyin.prism.bin Xshare/rime/data/luna_pinyin.reverse.bin Xshare/rime/data/luna_pinyin.table.bin Xshare/rime/data/luna_pinyin_fluency.prism.bin Xshare/rime/data/luna_pinyin_simp.prism.bin X@dirrmtry share/rime/data X@dirrmtry share/rime X@dirrm share/cmake/rime 970b12180250265399d84efc9947820c echo x - librime/pkg-descr sed 's/^X//' >librime/pkg-descr << '13bb923c94fce5e70df61136cbe22d79' XRime Input Method Engine is a customizable and dialect-friendly intelligent XChinese input method. X XWWW: http://code.google.com/p/rimeime/ 13bb923c94fce5e70df61136cbe22d79 exit --- librime.shar ends here --- --- fcitx-rime.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # fcitx-rime # fcitx-rime/Makefile # fcitx-rime/pkg-plist # fcitx-rime/files # fcitx-rime/files/patch-data_CMakeLists.txt # fcitx-rime/distinfo # fcitx-rime/pkg-descr # echo c - fcitx-rime mkdir -p fcitx-rime > /dev/null 2>&1 echo x - fcitx-rime/Makefile sed 's/^X//' >fcitx-rime/Makefile << '0b228620ed3a9f13c1d9f25925f0741a' X# New ports collection makefile for: fcitx-rime X# Date created: 15 Oct 2012 X# Whom: Zhihao Yuan <lichray@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= fcitx-rime XPORTVERSION= 0.1.2 XCATEGORIES= chinese XMASTER_SITES= GOOGLE_CODE XDIST_SUBDIR= fcitx X XMAINTAINER= lichray@gmail.com XCOMMENT= RIME support for Fcitx X XLIB_DEPENDS= fcitx-config:${PORTSDIR}/chinese/fcitx \ X rime:${PORTSDIR}/chinese/librime X XUSE_LDCONFIG= ${PREFIX}/lib/fcitx/ XUSE_XZ= yes XUSE_GETTEXT= yes XUSE_CMAKE= yes XUSE_GNOME= intltool XINSTALLS_ICONS= yes X XPROJECTHOST= fcitx X X.include <bsd.port.mk> 0b228620ed3a9f13c1d9f25925f0741a echo x - fcitx-rime/pkg-plist sed 's/^X//' >fcitx-rime/pkg-plist << '57381c4919a0605999d2177d23fc6c84' Xlib/fcitx/fcitx-rime.so Xshare/fcitx/addon/fcitx-rime.conf Xshare/fcitx/inputmethod/rime.conf Xshare/fcitx/imicon/rime.png Xshare/fcitx/skin/classic/rime.png Xshare/fcitx/skin/dark/rime.png Xshare/fcitx/skin/default/rime.png Xshare/icons/hicolor/48x48/apps/fcitx-rime.png 57381c4919a0605999d2177d23fc6c84 echo c - fcitx-rime/files mkdir -p fcitx-rime/files > /dev/null 2>&1 echo x - fcitx-rime/files/patch-data_CMakeLists.txt sed 's/^X//' >fcitx-rime/files/patch-data_CMakeLists.txt << '6b42f3b36e764ba2688b292db5b18bfa' X--- data/CMakeLists.txt~ 2012-10-04 07:34:39.000000000 -0500 X+++ data/CMakeLists.txt 2012-10-15 21:46:56.932232905 -0500 X@@ -2,3 +2,4 @@ install(FILES zhung.png RENAME rime.png X install(FILES zhung.png RENAME rime.png DESTINATION ${FCITX4_PREFIX}/share/fcitx/skin/dark) X install(FILES zhung.png RENAME rime.png DESTINATION ${FCITX4_PREFIX}/share/fcitx/skin/classic) X install(FILES zhung.png RENAME fcitx-rime.png DESTINATION share/icons/hicolor/48x48/apps) X+install(FILES zhung.png RENAME rime.png DESTINATION share/fcitx/imicon) 6b42f3b36e764ba2688b292db5b18bfa echo x - fcitx-rime/distinfo sed 's/^X//' >fcitx-rime/distinfo << 'f251210b936dd9c8a39fd7b248033259' XSHA256 (fcitx/fcitx-rime-0.1.2.tar.xz) = 528472c13adb050543ba0402077d2e2b37258cb494f7d7900411cfd8c1ad9048 XSIZE (fcitx/fcitx-rime-0.1.2.tar.xz) = 7356 f251210b936dd9c8a39fd7b248033259 echo x - fcitx-rime/pkg-descr sed 's/^X//' >fcitx-rime/pkg-descr << 'b86b21922fcc6f1d7ddaa2b6c1aeedc6' Xfcitx-rime provides RIME, a dialect-friendly intelligent Chinese input method Xengine, as a back-end to the Fcitx IM framework. X XWWW: http://code.google.com/p/fcitx/ b86b21922fcc6f1d7ddaa2b6c1aeedc6 exit --- fcitx-rime.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?507ccf1f.e92e320a.4ea8.3a98>