Date: Sat, 7 Jan 2012 08:12:43 GMT From: Henry Hu <henry.hu.sh@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/163883: [maintainer update] chinese/ibus-pinyin: update to 1.4.0 Message-ID: <201201070812.q078ChFW050829@red.freebsd.org> Resent-Message-ID: <201201070820.q078KAdd055219@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 163883 >Category: ports >Synopsis: [maintainer update] chinese/ibus-pinyin: update to 1.4.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Jan 07 08:20:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Henry Hu >Release: FreeBSD 8.2-STABLE >Organization: Columbia University >Environment: FreeBSD laptop.henryhu.net 8.2-STABLE FreeBSD 8.2-STABLE #4: Thu Aug 4 08:36:25 CST 2011 root@:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: Update chinese/ibus-pinyin to 1.4.0. This port must be committed after ports/163791: [update] textproc/ibus 1.4.0 < http://www.freebsd.org/cgi/query-pr.cgi?pr=163791 > since it depends on ibus 1.4.0. Changes: * Remove dependency on boost * Require GCC 4.4+ for c++0x standard * Add three options to select database to use and select optional dependencies >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN --exclude=CVS /tmp/cvstmp/ports/chinese/ibus-pinyin/Makefile /usr/home/henryhu/soft/ibus-pinyin/Makefile --- /tmp/cvstmp/ports/chinese/ibus-pinyin/Makefile 2011-04-30 14:09:08.000000000 -0400 +++ /usr/home/henryhu/soft/ibus-pinyin/Makefile 2012-01-07 02:42:46.000000000 -0500 @@ -6,28 +6,63 @@ # PORTNAME= ibus-pinyin -PORTVERSION= 1.3.11 +PORTVERSION= 1.4.0 CATEGORIES= chinese MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DBTAR} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= henry.hu.sh@gmail.com COMMENT= PinYin engine for IBus BUILD_DEPENDS= ibus-daemon:${PORTSDIR}/textproc/ibus \ - ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \ - ${LOCALBASE}/include/boost/accumulators/accumulators.hpp:${PORTSDIR}/devel/boost-libs -RUN_DEPENDS= ${BUILD_DEPENDS} + ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 +RUN_DEPENDS= ibus-daemon:${PORTSDIR}/textproc/ibus \ + ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 USE_PYTHON= yes USE_GNOME= pygtk2 +USE_GCC= 4.4+ USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --disable-dependency-tracking +CONFIGURE_ARGS= --disable-dependency-tracking --disable-lua-extension PROJECTHOST= ibus +OPTIONS= ANDROID_DB "Build Android DB" on \ + OPENPHRASE_DB "Build Open Phrase DB" off \ + OPENCC "Use opencc" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_ANDROID_DB) +CONFIGURE_ARGS+= --enable-db-android +PLIST_SUB+= ANDROID_DB="" +.else +CONFIGURE_ARGS+= --disable-db-android +PLIST_SUB+= ANDROID_DB="@comment " +.endif + +OPENPHRASE_DBVER= 1.2.99 +OPENPHRASE_DBFILE= pinyin-database-${OPENPHRASE_DBVER}.tar.bz2 + +.if defined(WITH_OPENPHRASE_DB) +CONFIGURE_ARGS+= --enable-db-open-phrase +DISTFILES+= ${OPENPHRASE_DBFILE} +PLIST_SUB+= OPENPHRASE_DB="" +.else +CONFIGURE_ARGS+= --disable-db-open-phrase +PLIST_SUB+= OPENPHRASE_DB="@comment " +.endif + +.if defined(WITH_OPENCC) +CONFIGURE_ARGS+= --enable-opencc +LIB_DEPENDS+= opencc.1:${PORTSDIR}/chinese/opencc +.else +CONFIGURE_ARGS+= --disable-opencc +.endif + .if !defined(WITHOUT_NLS) USE_GETTEXT= yes PLIST_SUB+= NLS="" @@ -36,7 +71,12 @@ PLIST_SUB+= NLS="@comment " .endif +post-extract: +.if defined(WITH_OPENPHRASE_DB) + @${CP} ${DISTDIR}/${OPENPHRASE_DBFILE} ${WRKSRC}/data/db/open-phrase +.endif + post-patch: @${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' ${WRKSRC}/configure -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -ruN --exclude=CVS /tmp/cvstmp/ports/chinese/ibus-pinyin/distinfo /usr/home/henryhu/soft/ibus-pinyin/distinfo --- /tmp/cvstmp/ports/chinese/ibus-pinyin/distinfo 2011-04-30 14:09:08.000000000 -0400 +++ /usr/home/henryhu/soft/ibus-pinyin/distinfo 2012-01-07 00:06:30.000000000 -0500 @@ -1,2 +1,4 @@ -SHA256 (ibus-pinyin-1.3.11.tar.gz) = 3b778777eef1c47150675ed74a572776f0aa27f5a19b681200b71741f08b722a -SIZE (ibus-pinyin-1.3.11.tar.gz) = 1659622 +SHA256 (ibus-pinyin-1.4.0.tar.gz) = 4fcaef6ac0533945c7feb4cb36fc72c102aae63b3fb4cbf338cdcc816182c24a +SIZE (ibus-pinyin-1.4.0.tar.gz) = 1813003 +SHA256 (pinyin-database-1.2.99.tar.bz2) = 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 +SIZE (pinyin-database-1.2.99.tar.bz2) = 9977983 diff -ruN --exclude=CVS /tmp/cvstmp/ports/chinese/ibus-pinyin/pkg-plist /usr/home/henryhu/soft/ibus-pinyin/pkg-plist --- /tmp/cvstmp/ports/chinese/ibus-pinyin/pkg-plist 2010-10-27 08:13:33.000000000 -0400 +++ /usr/home/henryhu/soft/ibus-pinyin/pkg-plist 2012-01-07 00:41:44.000000000 -0500 @@ -4,7 +4,9 @@ %%NLS%%share/locale/zh_TW/LC_MESSAGES/ibus-pinyin.mo libexec/ibus-engine-pinyin libexec/ibus-setup-pinyin -%%DATADIR%%/db/android.db +%%ANDROID_DB%%%%DATADIR%%/db/android.db +%%OPENPHRASE_DB%%%%DATADIR%%/db/open-phrase.db +%%DATADIR%%/db/english.db %%DATADIR%%/db/create_index.sql %%DATADIR%%/icons/chinese.svg %%DATADIR%%/icons/english.svg @@ -30,6 +32,8 @@ %%NLS%%@dirrmtry share/locale/ru/LC_MESSAGES %%NLS%%@dirrmtry share/locale/ru %%NLS%%@dirrmtry share/locale +@dirrmtry share/ibus/component +@dirrmtry share/ibus @dirrm %%DATADIR%%/setup @dirrm %%DATADIR%%/icons @dirrmtry %%DATADIR%%/db >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201070812.q078ChFW050829>