python/pycld2: Updated for version 20140131.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Benjamin Trigona-Harany 2014-02-02 10:57:51 +07:00 committed by Robby Workman
parent 3810c074f7
commit 32345b7ada
3 changed files with 18 additions and 4 deletions

View File

@ -25,7 +25,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pycld2
VERSION=${VERSION:-20130728}
VERSION=${VERSION:-20140131}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -51,6 +51,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
patch -p1 --verbose < $CWD/unicode.patch
# Fix location of header files
sed -i "s/^CLD2_PATH.*$/CLD2_PATH = \'\/usr\/include\/cld2\'/" setup*.py

View File

@ -1,8 +1,8 @@
PRGNAM="pycld2"
VERSION="20130728"
VERSION="20140131"
HOMEPAGE="https://code.google.com/p/chromium-compact-language-detector/"
DOWNLOAD="http://jaxartes.net/files/pycld2-20130728.tar.bz2"
MD5SUM="e4c07168d718a86c6e87a307b7235dda"
DOWNLOAD="http://jaxartes.net/files/pycld2-20140131.tar.bz2"
MD5SUM="916f6b3806d75b4bba4c1c12d863db46"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="cld2"

View File

@ -0,0 +1,12 @@
diff -Nur pycld2-20140131/encodings.cc pycld2-20140131.b/encodings.cc
--- pycld2-20140131/encodings.cc 2013-08-03 08:43:05.000000000 -0700
+++ pycld2-20140131.b/encodings.cc 2014-02-01 19:44:06.692623931 -0800
@@ -40,7 +40,7 @@
{"CHINESE_GB", CLD2::CHINESE_GB},
{"CHINESE_EUC_CN", CLD2::CHINESE_EUC_CN},
{"KOREAN_EUC_KR", CLD2::KOREAN_EUC_KR},
- {"UNICODE", CLD2::UNICODE},
+ {"UNICODE", CLD2::UNICODE_UNUSED},
{"CHINESE_EUC_DEC", CLD2::CHINESE_EUC_DEC},
{"CHINESE_CNS", CLD2::CHINESE_CNS},
{"CHINESE_BIG5_CP950", CLD2::CHINESE_BIG5_CP950},