Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2015 21:06:48 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382867 - in head/chinese: . ibus-libpinyin
Message-ID:  <201503312106.t2VL6mUs012446@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Mar 31 21:06:47 2015
New Revision: 382867
URL: https://svnweb.freebsd.org/changeset/ports/382867
QAT: https://qat.redports.org/buildarchive/r382867/

Log:
  Add ibus-libpinyin 1.7.1, intelligent Pinyin engine based on libpinyin
  for IBus.
  
  This is based on an old version of ibus-libpinyin submitted by Henry
  Hu <henry.hu.sh gmail com> with updates from myself.
  
  PR:		197116

Added:
  head/chinese/ibus-libpinyin/
  head/chinese/ibus-libpinyin/Makefile   (contents, props changed)
  head/chinese/ibus-libpinyin/distinfo   (contents, props changed)
  head/chinese/ibus-libpinyin/pkg-descr   (contents, props changed)
  head/chinese/ibus-libpinyin/pkg-plist   (contents, props changed)
Modified:
  head/chinese/Makefile

Modified: head/chinese/Makefile
==============================================================================
--- head/chinese/Makefile	Tue Mar 31 21:05:22 2015	(r382866)
+++ head/chinese/Makefile	Tue Mar 31 21:06:47 2015	(r382867)
@@ -56,6 +56,7 @@
     SUBDIR += gugod-clean
     SUBDIR += hc
     SUBDIR += ibus-chewing
+    SUBDIR += ibus-libpinyin
     SUBDIR += ibus-pinyin
     SUBDIR += ibus-table-chinese
     SUBDIR += irssi

Added: head/chinese/ibus-libpinyin/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/ibus-libpinyin/Makefile	Tue Mar 31 21:06:47 2015	(r382867)
@@ -0,0 +1,71 @@
+# Created by: Henry Hu <henry.hu.sh@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	ibus-libpinyin
+PORTVERSION=	1.7.1
+CATEGORIES=	chinese
+MASTER_SITES=	SF/libpinyin/${PORTNAME}
+
+MAINTAINER=	henry.hu.sh@gmail.com
+COMMENT=	Intelligent Pinyin engine based on libpinyin for IBus
+
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
+		libibus-1.0.so:${PORTSDIR}/textproc/ibus \
+		libpinyin.so:${PORTSDIR}/chinese/libpinyin
+
+USES=		compiler:c++0x gmake python pkgconfig gettext
+USE_GNOME=	glib20
+
+WRKSRC=	${WRKDIR}/${DISTNAME}
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-dependency-tracking --disable-boost \
+				--disable-lua-extension
+
+OPTIONS_DEFINE=		ENGLISH STROKE OPENCC NLS
+OPTIONS_DEFAULT=	ENGLISH STROKE NLS
+ENGLISH_DESC=		Enable English input mode
+STROKE_DESC=		Enable stroke input mode
+OPENCC_DESC=		Use opencc for simplified and traditional Chinese conversion
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MENGLISH}
+CONFIGURE_ARGS+=	--enable-english-input-mode
+PLIST_SUB+=	ENGLISH=""
+.else
+CONFIGURE_ARGS+=	--disable-english-input-mode
+PLIST_SUB+=	ENGLISH="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MSTROKE}
+CONFIGURE_ARGS+=	--enable-stroke-input-mode
+PLIST_SUB+=	STROKE=""
+.else
+CONFIGURE_ARGS+=	--disable-stroke-input-mode
+PLIST_SUB+=	STROKE="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MOPENCC}
+BROKEN=			Requires newer OpenCC
+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-configure:
+	@${REINPLACE_CMD} -e 's|DATADIRNAME = lib|DATADIRNAME = share|' ${WRKSRC}/po/Makefile
+
+.include <bsd.port.post.mk>

Added: head/chinese/ibus-libpinyin/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/ibus-libpinyin/distinfo	Tue Mar 31 21:06:47 2015	(r382867)
@@ -0,0 +1,2 @@
+SHA256 (ibus-libpinyin-1.7.1.tar.gz) = 81e9dc953b53bf5aff3b66c61d63180dc109eb645ab3cbcc1b733393f6c78afb
+SIZE (ibus-libpinyin-1.7.1.tar.gz) = 1043569

Added: head/chinese/ibus-libpinyin/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/ibus-libpinyin/pkg-descr	Tue Mar 31 21:06:47 2015	(r382867)
@@ -0,0 +1,6 @@
+Intelligent Pinyin engine based on libpinyin for IBus
+
+It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo)
+input method based on libpinyin for IBus.
+
+WWW: http://github.com/libpinyin/ibus-libpinyin

Added: head/chinese/ibus-libpinyin/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/ibus-libpinyin/pkg-plist	Tue Mar 31 21:06:47 2015	(r382867)
@@ -0,0 +1,39 @@
+%%NLS%%share/locale/fr/LC_MESSAGES/ibus-libpinyin.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/ibus-libpinyin.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/ibus-libpinyin.mo
+%%NLS%%share/locale/zh_HK/LC_MESSAGES/ibus-libpinyin.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/ibus-libpinyin.mo
+libexec/ibus-engine-libpinyin
+libexec/ibus-setup-libpinyin
+share/applications/ibus-setup-libbopomofo.desktop
+share/applications/ibus-setup-libpinyin.desktop
+%%ENGLISH%%%%DATADIR%%/db/english.db
+%%STROKE%%%%DATADIR%%/db/strokes.db
+%%DATADIR%%/icons/chinese.svg
+%%DATADIR%%/icons/english.svg
+%%DATADIR%%/icons/full-punct.svg
+%%DATADIR%%/icons/full.svg
+%%DATADIR%%/icons/half-punct.svg
+%%DATADIR%%/icons/half.svg
+%%DATADIR%%/icons/ibus-bopomofo.svg
+%%DATADIR%%/icons/ibus-pinyin.svg
+%%DATADIR%%/icons/simp-chinese.svg
+%%DATADIR%%/icons/trad-chinese.svg
+%%DATADIR%%/phrases.txt
+%%DATADIR%%/setup/config.py
+%%DATADIR%%/setup/config.pyc
+%%DATADIR%%/setup/config.pyo
+%%DATADIR%%/setup/dicttreeview.py
+%%DATADIR%%/setup/dicttreeview.pyc
+%%DATADIR%%/setup/dicttreeview.pyo
+%%DATADIR%%/setup/ibus-libpinyin-preferences.ui
+%%DATADIR%%/setup/keyboardshortcut.py
+%%DATADIR%%/setup/keyboardshortcut.pyc
+%%DATADIR%%/setup/keyboardshortcut.pyo
+%%DATADIR%%/setup/main2.py
+%%DATADIR%%/setup/main2.pyc
+%%DATADIR%%/setup/main2.pyo
+%%DATADIR%%/setup/shortcuteditor.py
+%%DATADIR%%/setup/shortcuteditor.pyc
+%%DATADIR%%/setup/shortcuteditor.pyo
+share/ibus/component/libpinyin.xml



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503312106.t2VL6mUs012446>