FreeBSD Bugzilla – Attachment 177464 Details for
Bug 212735
chinese/pyzy: move from googlecode to github
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
pyzy 0.1.0_3 patch
pyzy-0.1.0_3.patch (text/plain), 4.85 KB, created by
Henry Hu
on 2016-11-27 22:14:51 UTC
(
hide
)
Description:
pyzy 0.1.0_3 patch
Filename:
MIME Type:
Creator:
Henry Hu
Created:
2016-11-27 22:14:51 UTC
Size:
4.85 KB
patch
obsolete
>diff -ruN /usr/ports/chinese/pyzy/distinfo ./distinfo >--- /usr/ports/chinese/pyzy/distinfo 2014-07-26 18:16:53.000000000 -0400 >+++ ./distinfo 2016-11-27 16:32:30.064823000 -0500 >@@ -1,4 +1,3 @@ >-SHA256 (pyzy-0.1.0.tar.gz) = fe468a4372473d85a56f05d55b14f0e0201fde6f9336a1a2322cf79421c84d9a >-SIZE (pyzy-0.1.0.tar.gz) = 1571946 >-SHA256 (pyzy-database-1.0.0.tar.bz2) = 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 >-SIZE (pyzy-database-1.0.0.tar.bz2) = 9977983 >+TIMESTAMP = 1480281906 >+SHA256 (pyzy-pyzy-0.1.0-6d9c3cd_GH0.tar.gz) = 20c6306c3e0f507f3279a97f7117856d1733140422ea02b19aa551e113b6b859 >+SIZE (pyzy-pyzy-0.1.0-6d9c3cd_GH0.tar.gz) = 1320154 >diff -ruN /usr/ports/chinese/pyzy/files/patch-src_SimpTradConverter.cc ./files/patch-src_SimpTradConverter.cc >--- /usr/ports/chinese/pyzy/files/patch-src_SimpTradConverter.cc 1969-12-31 19:00:00.000000000 -0500 >+++ ./files/patch-src_SimpTradConverter.cc 2016-11-27 17:06:12.474981000 -0500 >@@ -0,0 +1,43 @@ >+--- src/SimpTradConverter.cc.orig 2012-12-17 04:00:47 UTC >++++ src/SimpTradConverter.cc >+@@ -40,7 +40,6 @@ namespace PyZy { >+ #ifdef HAVE_OPENCC >+ >+ class opencc { >+- static const int BUFFER_SIZE = 64; >+ public: >+ opencc (void) >+ { >+@@ -55,29 +54,12 @@ public: >+ >+ void convert (const char *in, String &out) >+ { >+- long n_char; >+- unichar *in_ucs4 = g_utf8_to_ucs4_fast (in, -1, &n_char); >+- >+- ucs4_t *pinbuf = (ucs4_t *)in_ucs4; >+- size_t inbuf_left = n_char; >+- while (inbuf_left != 0) { >+- ucs4_t *poutbuf = (ucs4_t *)m_buffer; >+- size_t outbuf_left = BUFFER_SIZE; >+- size_t retval = opencc_convert(m_od, &pinbuf, &inbuf_left, &poutbuf, &outbuf_left); >+- if (retval == (size_t) -1) { >+- /* append left chars in pinbuf */ >+- g_warning ("opencc_convert return failed"); >+- out << (unichar *) pinbuf; >+- break; >+- } >+- *poutbuf = L'\0'; >+- out << m_buffer; >+- } >+- g_free (in_ucs4); >++ char *converted = opencc_convert_utf8(m_od, in, -1); >++ out = converted; >++ opencc_convert_utf8_free(converted); >+ } >+ private: >+ opencc_t m_od; >+- unichar m_buffer[BUFFER_SIZE + 1]; >+ }; >+ >+ void >diff -ruN /usr/ports/chinese/pyzy/Makefile ./Makefile >--- /usr/ports/chinese/pyzy/Makefile 2016-11-27 13:21:06.659616000 -0500 >+++ ./Makefile 2016-11-27 16:43:03.121572000 -0500 >@@ -1,24 +1,23 @@ > # Created by: Henry Hu <henry.hu.sh@gmail.com> >-# $FreeBSD: head/chinese/pyzy/Makefile 424427 2016-10-21 15:21:13Z mat $ >+# $FreeBSD: head/chinese/pyzy/Makefile 422140 2016-09-14 15:59:34Z mat $ > > PORTNAME= pyzy > PORTVERSION= 0.1.0 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= chinese >-MASTER_SITES= GOOGLE_CODE >-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} >-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} >+MASTER_SITES= GH > > MAINTAINER= henry.hu.sh@gmail.com >-COMMENT= The Chinese PinYin and Bopomofo conversion library >+COMMENT= Chinese PinYin and Bopomofo conversion library > > LICENSE= LGPL21 > >-BROKEN= Unfetchable (google code has gone away) >- > LIB_DEPENDS= libsqlite3.so:databases/sqlite3 > >-USES= compiler:c++11-lib gettext-runtime gmake libtool pathfix pkgconfig python:build shebangfix >+USE_GITHUB= yes >+GH_TAGNAME= 6d9c3cd >+ >+USES= compiler:c++11-lib gmake libtool pkgconfig python:build shebangfix autoreconf gettext-runtime > SHEBANG_FILES= data/db/android/create_db.py > USE_GNOME= glib20 > USE_LDCONFIG= yes >@@ -26,26 +25,16 @@ > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --disable-dependency-tracking --disable-boost > >-OPTIONS_DEFINE= ANDROID_DB OPENPHRASE_DB OPENCC >-OPTIONS_DEFAULT= ANDROID_DB >+OPTIONS_DEFINE= OPENCC >+OPTIONS_DEFAULT= > OPTIONS_SUB= yes >-ANDROID_DB_DESC= Build Android DB >-OPENPHRASE_DB_DESC= Build Open Phrase DB > OPENCC_DESC= Use opencc for simplified and traditional Chinese conversion > >-ANDROID_DB_CONFIGURE_ENABLE= db-android >- >-OPENPHRASE_DBVER= 1.0.0 >-OPENPHRASE_DBFILE= pyzy-database-${OPENPHRASE_DBVER}.tar.bz2 >- >-OPENPHRASE_DB_CONFIGURE_ENABLE= db-open-phrase >-OPENPHRASE_DB_DISTFILES= ${OPENPHRASE_DBFILE} >- > OPENCC_CONFIGURE_ENABLE= opencc > OPENCC_LIB_DEPENDS= libopencc.so:chinese/opencc > >-post-extract-OPENPHRASE_DB-on: >- @${CP} ${DISTDIR}/${OPENPHRASE_DBFILE} ${WRKSRC}/data/db/open-phrase >+post-patch: >+ @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' ${WRKSRC}/Makefile.am > > post-install: > @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-1.0.so >diff -ruN /usr/ports/chinese/pyzy/pkg-plist ./pkg-plist >--- /usr/ports/chinese/pyzy/pkg-plist 2014-10-24 23:17:58.000000000 -0400 >+++ ./pkg-plist 2016-11-27 17:02:19.210596000 -0500 >@@ -5,7 +5,6 @@ > lib/libpyzy-1.0.so.0 > lib/libpyzy-1.0.so.0.100.0 > libdata/pkgconfig/pyzy-1.0.pc >-%%ANDROID_DB%%%%DATADIR%%/db/android.db >-%%OPENPHRASE_DB%%%%DATADIR%%/db/open-phrase.db >+%%DATADIR%%/db/android.db > %%DATADIR%%/db/create_index.sql > %%DATADIR%%/phrases.txt
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
henry.hu.sh
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 212735
:
174841
|
177463
|
177464
|
177469
|
177503