ports/166716: New port: fcitx-libpinyin & libpinyin input methods

Zhihao Yuan lichray at gmail.com
Sat Apr 7 07:50:02 UTC 2012


>Number:         166716
>Category:       ports
>Synopsis:       New port: fcitx-libpinyin & libpinyin input methods
>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:   Sat Apr 07 07:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.3-PRERELEASE amd64
>Organization:
Northern Illinois University
>Environment:
System: FreeBSD elitebook.hp 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5 r233751: Sat Mar 31 18:29:04 CDT 2012 lichray at elitebook.hp:/usr/obj/home/lichray/devel/freebsd-8/sys/HOUKAGO amd64


	
>Description:
	
	libpinyin (https://github.com/libpinyin/libpinyin) is a Chinese input method algorithm collection, and Fcitx (https://code.google.com/p/fcitx/) is an input method framework. This port enables the libpinyin back-end in fcitx.

	This PR contains 2 new ports. Note that the chinese/libpinyin does not build on FreeBSD < 8 (I can fix it but I'm too lazy to do so. Fcitx itself is enough for a FreeBSD 7 user who needs a pinyin input method.)
>How-To-Repeat:
	
>Fix:

	

--- fcitx-libpinyin_all_in_one.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:
#
#	libpinyin
#	libpinyin/distinfo
#	libpinyin/Makefile
#	libpinyin/pkg-plist
#	libpinyin/pkg-descr
#	libpinyin/files
#	libpinyin/files/patch-configure
#	libpinyin/files/patch-src_pinyin_internal.h
#
echo c - libpinyin
mkdir -p libpinyin > /dev/null 2>&1
echo x - libpinyin/distinfo
sed 's/^X//' >libpinyin/distinfo << 'bc2ed8b6cdeddc061dccb77e4a628cee'
XSHA256 (libpinyin-0.5.92.tar.gz) = aae733f7f0d3292b3e1f3dcdf183c496d90251064d9d2eae45b3d71738f3a838
XSIZE (libpinyin-0.5.92.tar.gz) = 10477392
bc2ed8b6cdeddc061dccb77e4a628cee
echo x - libpinyin/Makefile
sed 's/^X//' >libpinyin/Makefile << '41ab66e26e6b49fc1ec13025b1f4dfea'
X# New ports collection makefile for:	libpinyin
X# Date created:		6 Feb 2012
X# Whom:			Zhihao Yuan <lichray at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libpinyin
XPORTVERSION=	0.5.92
XCATEGORIES=	chinese textproc
XMASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
X
XMAINTAINER=	lichray at gmail.com
XCOMMENT=	Library to deal with pinyin
X
XMAN1=		libpinyin.1 gen_binary_files.1 gen_unigram.1 \
X		import_interpolation.1
X
XUSE_BDB=	yes
XUSE_GNOME=	glib20 gnomehack pkgconfig
XUSE_GETTEXT=	yes
XGNU_CONFIGURE=	yes
XUSE_AUTOTOOLS=	libtool
XUSE_GMAKE=	yes
XUSE_LDCONFIG=	yes
X
XCONFIGURE_ARGS+=CPPFLAGS="-I${LOCALBASE}/include \
X		-I${BDB_INCLUDE_DIR} -D_WITH_GETLINE" \
X		LDFLAGS="-L${LOCALBASE}/lib -l${BDB_LIB_NAME}"
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 800107
XBROKEN=		Does not compile on FreeBSD 7.X
X.endif
X
X.include <bsd.port.post.mk>
41ab66e26e6b49fc1ec13025b1f4dfea
echo x - libpinyin/pkg-plist
sed 's/^X//' >libpinyin/pkg-plist << '90a42dd0dc6f023304b0768f88ad35b3'
Xbin/gen_binary_files
Xbin/gen_unigram
Xbin/import_interpolation
Xinclude/libpinyin-0.3/chewing_enum.h
Xinclude/libpinyin-0.3/chewing_key.h
Xinclude/libpinyin-0.3/novel_types.h
Xinclude/libpinyin-0.3/pinyin.h
Xinclude/libpinyin-0.3/pinyin_custom2.h
Xinclude/libpinyin-0.3/pinyin_parser2.h
Xlib/libpinyin.a
Xlib/libpinyin.la
Xlib/libpinyin.so
Xlib/libpinyin.so.0
Xlibdata/pkgconfig/libpinyin.pc
X%%DATADIR%%/data/bigram.db
X%%DATADIR%%/data/gb_char.bin
X%%DATADIR%%/data/gbk_char.bin
X%%DATADIR%%/data/phrase_index.bin
X%%DATADIR%%/data/pinyin_index.bin
X at dirrm %%DATADIR%%/data
X at dirrm %%DATADIR%%
X at dirrm include/libpinyin-0.3
90a42dd0dc6f023304b0768f88ad35b3
echo x - libpinyin/pkg-descr
sed 's/^X//' >libpinyin/pkg-descr << '7cb3c9d67fefce08571d304a63e08bd5'
XThe libpinyin project aims to provide the algorithms core for intelligent
Xsentence-based Chinese pinyin input methods.
X
XWWW:	https://github.com/libpinyin/libpinyin
7cb3c9d67fefce08571d304a63e08bd5
echo c - libpinyin/files
mkdir -p libpinyin/files > /dev/null 2>&1
echo x - libpinyin/files/patch-configure
sed 's/^X//' >libpinyin/files/patch-configure << '9ff2b6a93d12c06cdce8954e9f3614db'
X--- configure~	2012-02-06 09:07:32.410719322 -0600
X+++ configure	2012-02-06 09:26:16.354737313 -0600
X@@ -17515,11 +17515,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
X #ifdef __cplusplus
X extern "C"
X #endif
X-char db_create ();
X+#include <db.h>
X int
X main ()
X {
X-return db_create ();
X+return db_create (0,0,0);
X   ;
X   return 0;
X }
9ff2b6a93d12c06cdce8954e9f3614db
echo x - libpinyin/files/patch-src_pinyin_internal.h
sed 's/^X//' >libpinyin/files/patch-src_pinyin_internal.h << 'a042bbf78878e9b6c609d8c83af5c1bd'
X--- src/pinyin_internal.h.orig	2011-12-19 23:45:40.000000000 -0600
X+++ src/pinyin_internal.h	2012-02-06 09:53:12.804569766 -0600
X@@ -47,6 +47,7 @@
X #include "flexible_ngram.h"
X 
X using namespace pinyin;
X+#define ENODATA		ENOENT
X 
X 
X #endif
a042bbf78878e9b6c609d8c83af5c1bd

# 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-libpinyin
#	fcitx-libpinyin/pkg-plist
#	fcitx-libpinyin/Makefile
#	fcitx-libpinyin/distinfo
#	fcitx-libpinyin/pkg-descr
#
echo c - fcitx-libpinyin
mkdir -p fcitx-libpinyin > /dev/null 2>&1
echo x - fcitx-libpinyin/pkg-plist
sed 's/^X//' >fcitx-libpinyin/pkg-plist << '7e06f872ad2a885c54ac02e693bedbc1'
Xlib/fcitx/fcitx-libpinyin.so
Xshare/fcitx/addon/fcitx-libpinyin.conf
Xshare/fcitx/configdesc/fcitx-libpinyin.desc
Xshare/fcitx/inputmethod/pinyin-libpinyin.conf
Xshare/fcitx/inputmethod/shuangpin-libpinyin.conf
Xshare/fcitx/inputmethod/zhuyin-libpinyin.conf
Xshare/fcitx/libpinyin/zhuyin_data/bigram.db
Xshare/fcitx/libpinyin/zhuyin_data/gb_char.bin
Xshare/fcitx/libpinyin/zhuyin_data/gbk_char.bin
Xshare/fcitx/libpinyin/zhuyin_data/phrase_index.bin
Xshare/fcitx/libpinyin/zhuyin_data/pinyin_index.bin
Xshare/icons/hicolor/48x48/status/fcitx-bopomofo.png
Xshare/locale/zh_CN/LC_MESSAGES/fcitx-libpinyin.mo
Xshare/locale/zh_TW/LC_MESSAGES/fcitx-libpinyin.mo
X at dirrm share/fcitx/libpinyin/zhuyin_data
X at dirrm share/fcitx/libpinyin
7e06f872ad2a885c54ac02e693bedbc1
echo x - fcitx-libpinyin/Makefile
sed 's/^X//' >fcitx-libpinyin/Makefile << '421300ce7081dca74719b8428b41f81c'
X# New ports collection makefile for:	fcitx-libpinyin
X# Date created:				7 Apr 2012
X# Whom:			Zhihao Yuan <lichray at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fcitx-libpinyin
XPORTVERSION=	0.1.1
XCATEGORIES=	chinese
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE} \
X		http://cloud.github.com/downloads/fcitx/fcitx-libpinyin/:libpinyin
XDISTFILES=	${DISTNAME}${EXTRACT_SUFX} model.text.tar.gz:libpinyin
XDIST_SUBDIR=	fcitx
XEXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
X
XMAINTAINER=	lichray at gmail.com
XCOMMENT=	The libpinyin support for Fcitx
X
XLIB_DEPENDS=	fcitx-config.4:${PORTSDIR}/chinese/fcitx \
X		pinyin.0:${PORTSDIR}/chinese/libpinyin
X
XUSE_XZ=		yes
XUSE_GETTEXT=	yes
XUSE_CMAKE=	yes
XUSE_GNOME=	intltool
X
Xpost-patch:
X	@${LN} -s ${_DISTDIR}/model.text.tar.gz ${WRKSRC}/data
X
XPROJECTHOST=	fcitx
X
X.include <bsd.port.mk>
421300ce7081dca74719b8428b41f81c
echo x - fcitx-libpinyin/distinfo
sed 's/^X//' >fcitx-libpinyin/distinfo << '2764b79fccb6cf37a2df9ae7bc482604'
XSHA256 (fcitx/fcitx-libpinyin-0.1.1.tar.xz) = adb84d0b0f9f3bd26b124dd5c4130adacd7d15293fc0e1917266ff35c51be03c
XSIZE (fcitx/fcitx-libpinyin-0.1.1.tar.xz) = 24220
XSHA256 (fcitx/model.text.tar.gz) = 8d87d9c0b622f3163976a8c8bc57ded878cf0dee63c855b8a7afd36a151114eb
XSIZE (fcitx/model.text.tar.gz) = 9991219
2764b79fccb6cf37a2df9ae7bc482604
echo x - fcitx-libpinyin/pkg-descr
sed 's/^X//' >fcitx-libpinyin/pkg-descr << 'a33ccf13a3d8cf38a49ab4357d529cfc'
Xfcitx-libpinyin provides libpinyin, a Chinese pinyin input method algorithm
Xcollection, as a back-end to the Fcitx IM framework.
X
XWWW:	http://code.google.com/p/fcitx/
a33ccf13a3d8cf38a49ab4357d529cfc
exit
--- fcitx-libpinyin_all_in_one.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list