From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 20 20:40:05 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 914F4FE9 for ; Thu, 20 Mar 2014 20:40:05 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6D6CBF37 for ; Thu, 20 Mar 2014 20:40:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2KKe5uh009169 for ; Thu, 20 Mar 2014 20:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2KKe5G5009168; Thu, 20 Mar 2014 20:40:05 GMT (envelope-from gnats) Resent-Date: Thu, 20 Mar 2014 20:40:05 GMT Resent-Message-Id: <201403202040.s2KKe5G5009168@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Henry Hu Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E912D6B for ; Thu, 20 Mar 2014 20:36:41 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7A1B6EC4 for ; Thu, 20 Mar 2014 20:36:41 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2KKafat027882 for ; Thu, 20 Mar 2014 20:36:41 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2KKafb9027878; Thu, 20 Mar 2014 20:36:41 GMT (envelope-from nobody) Message-Id: <201403202036.s2KKafb9027878@cgiserv.freebsd.org> Date: Thu, 20 Mar 2014 20:36:41 GMT From: Henry Hu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/187797: [new port] chinese/pyzy: The Chinese PinYin and Bopomofo conversion library X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2014 20:40:05 -0000 >Number: 187797 >Category: ports >Synopsis: [new port] chinese/pyzy: The Chinese PinYin and Bopomofo conversion library >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 20 20:40:05 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Henry Hu >Release: FreeBSD 11-CURRENT >Organization: Columbia University >Environment: FreeBSD pepsi 11.0-CURRENT FreeBSD 11.0-CURRENT #3 r263097M: Fri Mar 14 22:33:42 EDT 2014 root@pepsi:/usr/obj/usr/src/sys/MYKERNEL amd64 >Description: This is a new port which performs Chinese PinYin and Bopomofo conversion. It was part of chinese/ibus-pinyin, but in the new version, it is split into a separate library. It is the prerequisite for the upcoming update of ibus-pinyin to 1.5.0. redport build log: https://redports.org/buildarchive/20140319183039-72429/ >How-To-Repeat: Future update of chinese/ibus-pinyin to 1.5.0 will depend on this. >Fix: Patch attached with submission follows: # 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: # # pyzy # pyzy/distinfo # pyzy/pkg-descr # pyzy/pkg-plist # pyzy/Makefile # echo c - pyzy mkdir -p pyzy > /dev/null 2>&1 echo x - pyzy/distinfo sed 's/^X//' >pyzy/distinfo << '60d089529c2a5852b207e24bed59d9a1' XSHA256 (pyzy-0.1.0.tar.gz) = fe468a4372473d85a56f05d55b14f0e0201fde6f9336a1a2322cf79421c84d9a XSIZE (pyzy-0.1.0.tar.gz) = 1571946 XSHA256 (pyzy-database-1.0.0.tar.bz2) = 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 XSIZE (pyzy-database-1.0.0.tar.bz2) = 9977983 60d089529c2a5852b207e24bed59d9a1 echo x - pyzy/pkg-descr sed 's/^X//' >pyzy/pkg-descr << '1f026694133eb7e39ca08a25bb1264fe' XThe Chinese PinYin and Bopomofo conversion library X XThis is the Chinese PinYin / Bopomofo conversion library. XYou can easily write an application which handles the Chinese with it. X XWWW: http://code.google.com/p/pyzy 1f026694133eb7e39ca08a25bb1264fe echo x - pyzy/pkg-plist sed 's/^X//' >pyzy/pkg-plist << '7435a4c40c07be7ae27e67ad6db97d91' Xinclude/pyzy-1.0/PyZy/Const.h Xinclude/pyzy-1.0/PyZy/InputContext.h Xinclude/pyzy-1.0/PyZy/Variant.h Xlib/libpyzy-1.0.la Xlib/libpyzy-1.0.so Xlib/libpyzy-1.0.so.100 Xlibdata/pkgconfig/pyzy-1.0.pc X%%ANDROID_DB%%%%DATADIR%%/db/android.db X%%OPENPHRASE_DB%%%%DATADIR%%/db/open-phrase.db X%%DATADIR%%/db/create_index.sql X%%DATADIR%%/phrases.txt X@dirrm include/pyzy-1.0/PyZy X@dirrm include/pyzy-1.0 X@dirrm %%DATADIR%%/db X@dirrm %%DATADIR%% 7435a4c40c07be7ae27e67ad6db97d91 echo x - pyzy/Makefile sed 's/^X//' >pyzy/Makefile << '264a69fe7778f1168471e252f45dd6c1' X# Created by: Henry Hu X# $FreeBSD$ X XPORTNAME= pyzy XPORTVERSION= 0.1.0 XCATEGORIES= chinese XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} XDISTFILES= ${DISTNAME}${EXTRACT_SUFX} XEXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} X XMAINTAINER= henry.hu.sh@gmail.com XCOMMENT= The Chinese PinYin and Bopomofo conversion library X XLICENSE= LGPL21 X XBUILD_DEPENDS= python:${PORTSDIR}/lang/python XLIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 X XUSES= pkgconfig gmake compiler:c++11-lib XUSE_GNOME= glib20 X XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --disable-dependency-tracking --disable-boost XNEED_ROOT= yes X XOPTIONS_DEFINE= ANDROID_DB OPENPHRASE_DB OPENCC XOPTIONS_DEFAULT= ANDROID_DB XANDROID_DB_DESC= Build Android DB XOPENPHRASE_DB_DESC= Build Open Phrase DB XOPENCC_DESC= Use opencc for simplified and traditional Chinese conversion X X.include X X.include X X.if ${PORT_OPTIONS:MANDROID_DB} XCONFIGURE_ARGS+= --enable-db-android XPLIST_SUB+= ANDROID_DB="" X.else XCONFIGURE_ARGS+= --disable-db-android XPLIST_SUB+= ANDROID_DB="@comment " X.endif X XOPENPHRASE_DBVER= 1.0.0 XOPENPHRASE_DBFILE= pyzy-database-${OPENPHRASE_DBVER}.tar.bz2 X X.if ${PORT_OPTIONS:MOPENPHRASE_DB} XCONFIGURE_ARGS+= --enable-db-open-phrase XDISTFILES+= ${OPENPHRASE_DBFILE} XPLIST_SUB+= OPENPHRASE_DB="" X.else XCONFIGURE_ARGS+= --disable-db-open-phrase XPLIST_SUB+= OPENPHRASE_DB="@comment " X.endif X X.if ${PORT_OPTIONS:MOPENCC} XCONFIGURE_ARGS+= --enable-opencc XLIB_DEPENDS+= libopencc.so:${PORTSDIR}/chinese/opencc X.else XCONFIGURE_ARGS+= --disable-opencc X.endif X Xpost-extract: X.if ${PORT_OPTIONS:MOPENPHRASE_DB} X @${CP} ${DISTDIR}/${OPENPHRASE_DBFILE} ${WRKSRC}/data/db/open-phrase X.endif X Xpost-patch: X @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' ${WRKSRC}/Makefile.in X X.include 264a69fe7778f1168471e252f45dd6c1 exit >Release-Note: >Audit-Trail: >Unformatted: