ports/187797: [new port] chinese/pyzy: The Chinese PinYin and Bopomofo conversion library
Henry Hu
henry.hu.sh at gmail.com
Thu Mar 20 20:40:05 UTC 2014
>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 at 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 at dirrm include/pyzy-1.0/PyZy
X at dirrm include/pyzy-1.0
X at dirrm %%DATADIR%%/db
X at dirrm %%DATADIR%%
7435a4c40c07be7ae27e67ad6db97d91
echo x - pyzy/Makefile
sed 's/^X//' >pyzy/Makefile << '264a69fe7778f1168471e252f45dd6c1'
X# Created by: Henry Hu <henry.hu.sh at gmail.com>
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 at 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 <bsd.port.options.mk>
X
X.include <bsd.port.pre.mk>
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 <bsd.port.post.mk>
264a69fe7778f1168471e252f45dd6c1
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list