From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 28 22:30:16 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 334131065676 for ; Mon, 28 Nov 2011 22:30:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0B2CF8FC15 for ; Mon, 28 Nov 2011 22:30:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pASMUFDF051871 for ; Mon, 28 Nov 2011 22:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pASMUFVF051865; Mon, 28 Nov 2011 22:30:15 GMT (envelope-from gnats) Resent-Date: Mon, 28 Nov 2011 22:30:15 GMT Resent-Message-Id: <201111282230.pASMUFVF051865@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, Zhihao Yuan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5953B1065670 for ; Mon, 28 Nov 2011 22:27:23 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 25D958FC0C for ; Mon, 28 Nov 2011 22:27:22 +0000 (UTC) Received: by iakl21 with SMTP id l21so14269027iak.13 for ; Mon, 28 Nov 2011 14:27:22 -0800 (PST) Received: by 10.42.136.196 with SMTP id v4mr25981975ict.3.1322519242430; Mon, 28 Nov 2011 14:27:22 -0800 (PST) Received: from elitebook.hp (c-98-228-191-105.hsd1.il.comcast.net. [98.228.191.105]) by mx.google.com with ESMTPS id el2sm50799627ibb.10.2011.11.28.14.27.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Nov 2011 14:27:18 -0800 (PST) Received: by elitebook.hp (sSMTP sendmail emulation); Mon, 28 Nov 2011 16:27:15 -0600 Message-Id: <4ed40ac6.c2c5e70a.6458.7dd2@mx.google.com> Date: Mon, 28 Nov 2011 16:27:15 -0600 From: Zhihao Yuan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/162931: New port: chinese/opencc: Open Chinese Convert X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Zhihao Yuan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 22:30:16 -0000 >Number: 162931 >Category: ports >Synopsis: New port: chinese/opencc: Open Chinese Convert >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 28 22:30:15 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Zhihao Yuan >Release: FreeBSD 8.2-STABLE amd64 >Organization: Northern Illinois University >Environment: System: FreeBSD elitebook.hp 8.2-STABLE FreeBSD 8.2-STABLE #0: Sat Nov 12 03:41:26 CST 2011 lichray@elitebook.hp:/usr/obj/home/lichray/devel/freebsd-8/sys/HOUKAGO amd64 >Description: Simplified-Traditional Chinese conversion is language conversion, not just character set conversion. This is the best existing open source library. https://code.google.com/p/opencc/ >How-To-Repeat: >Fix: --- opencc.shar begins here --- # 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: # # opencc # opencc/pkg-plist # opencc/pkg-descr # opencc/Makefile # opencc/files # opencc/files/patch-doc_CMakeLists.txt # opencc/files/patch-src_tools_CMakeLists.txt # opencc/files/patch-CMakeLists.txt # opencc/distinfo # echo c - opencc mkdir -p opencc > /dev/null 2>&1 echo x - opencc/pkg-plist sed 's/^X//' >opencc/pkg-plist << '2694bf6927b5c8d05506d75be33c5524' Xbin/opencc Xbin/opencc_dict Xinclude/opencc/opencc.h Xinclude/opencc/opencc_types.h Xinclude/opencc/openccxx.h Xlib/libopencc.a Xlib/libopencc.so Xlib/libopencc.so.1 Xlib/libopencc.so.1.0.0 Xlibdata/pkgconfig/opencc.pc X%%NLS%%share/locale/zh_CN/LC_MESSAGES/opencc.mo X%%NLS%%share/locale/zh_HK/LC_MESSAGES/opencc.mo X%%NLS%%share/locale/zh_TW/LC_MESSAGES/opencc.mo X%%DATADIR%%/mix2zhs.ini X%%DATADIR%%/mix2zht.ini X%%DATADIR%%/simp_to_trad_characters.ocd X%%DATADIR%%/simp_to_trad_phrases.ocd X%%DATADIR%%/trad_to_simp_characters.ocd X%%DATADIR%%/trad_to_simp_phrases.ocd X%%DATADIR%%/zhs2zht.ini X%%DATADIR%%/zht2zhs.ini X@dirrm %%DATADIR%% X@dirrm include/opencc 2694bf6927b5c8d05506d75be33c5524 echo x - opencc/pkg-descr sed 's/^X//' >opencc/pkg-descr << '3109f50d2425c127a4347c80272bf75d' XOpen Chinese Convert (OpenCC) is an open source Simplified-Traditional XChinese conversion project, providing high quality thesaurus and libopencc, Xas well as a conversion utility and a dictionary generator. X XWWW: https://code.google.com/p/opencc/ 3109f50d2425c127a4347c80272bf75d echo x - opencc/Makefile sed 's/^X//' >opencc/Makefile << 'a787b135dd9f4319af02436c2eb93673' X# New ports collection makefile for: opencc X# Date created: 28 Nov 2011 X# Whom: Zhihao Yuan X# X# $FreeBSD$ X# X XPORTNAME= opencc XPORTVERSION= 0.2.0 XCATEGORIES= chinese converters XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} X XMAINTAINER= lichray@gmail.com XCOMMENT= Open Chinese Convert library and utilities X XLICENSE= ASL X XMAN1= opencc.1 opencc_dict.1 X XUSE_CMAKE= yes XUSE_LDCONFIG= yes X X.if !defined(WITHOUT_NLS) XUSE_GETTEXT= yes XCMAKE_ARGS+= -DENABLE_GETTEXT=On XPLIST_SUB+= NLS="" X.else XPLIST_SUB+= NLS="@comment " X.endif X X.if defined(NOPORTDATA) XIGNORE= thesaurus are required, undefine NOPORTDATA X.endif X Xpost-patch: X @${REINPLACE_CMD} -e 's@/usr/local@${LOCALBASE}@g' \ X ${WRKSRC}/CMakeLists.txt X X.include a787b135dd9f4319af02436c2eb93673 echo c - opencc/files mkdir -p opencc/files > /dev/null 2>&1 echo x - opencc/files/patch-doc_CMakeLists.txt sed 's/^X//' >opencc/files/patch-doc_CMakeLists.txt << '33b17ce1f017a11a5c712d9761e4d4a9' X--- doc/CMakeLists.txt~ 2010-12-23 07:18:23.000000000 -0600 X+++ doc/CMakeLists.txt 2011-11-28 14:52:15.884747557 -0600 X@@ -3,5 +3,5 @@ install( X opencc.1 X opencc_dict.1 X DESTINATION X- ${DIR_SHARE}/man/man1 X+ ${CMAKE_INSTALL_PREFIX}/man/man1 X ) 33b17ce1f017a11a5c712d9761e4d4a9 echo x - opencc/files/patch-src_tools_CMakeLists.txt sed 's/^X//' >opencc/files/patch-src_tools_CMakeLists.txt << 'f47919dfe729023ead38fae2aca9b33f' X--- src/tools/CMakeLists.txt.orig 2010-12-23 07:18:23.000000000 -0600 X+++ src/tools/CMakeLists.txt 2011-11-28 15:46:19.473573693 -0600 X@@ -30,6 +30,10 @@ target_link_libraries( X ${LIBOPENCC_TARGET} X ) X X+if(ENABLE_GETTEXT) X+ target_link_libraries(opencc_dict ${GETTEXT_LIBRARIES}) X+endif(ENABLE_GETTEXT) X+ X install( X TARGETS X opencc_dict X@@ -61,6 +65,10 @@ target_link_libraries( X ${LIBOPENCC_TARGET} X ) X X+if(ENABLE_GETTEXT) X+ target_link_libraries(opencc ${GETTEXT_LIBRARIES}) X+endif(ENABLE_GETTEXT) X+ X install( X TARGETS X opencc f47919dfe729023ead38fae2aca9b33f echo x - opencc/files/patch-CMakeLists.txt sed 's/^X//' >opencc/files/patch-CMakeLists.txt << '7b75067db6d8d1ca67f51bbc54463360' X--- CMakeLists.txt.orig 2010-12-23 07:18:23.000000000 -0600 X+++ CMakeLists.txt 2011-11-28 15:23:31.089426523 -0600 X@@ -42,6 +42,8 @@ set ( X X if (ENABLE_GETTEXT) X find_package(Gettext REQUIRED) X+ find_path(GETTEXT_INCLUDE_DIR libintl.h) X+ find_library(GETTEXT_LIBRARIES NAMES intl PATHS /usr/local/lib) X endif (ENABLE_GETTEXT) X X include (TestBigEndian) X@@ -75,7 +77,7 @@ install( X FILES X ${CMAKE_BINARY_DIR}/opencc.pc X DESTINATION X- ${DIR_LIBRARY}/pkgconfig X+ ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig X ) X X ######## Subdirectories X@@ -88,4 +90,4 @@ if (GETTEXT_FOUND AND ENABLE_GETTEXT) X add_subdirectory(po) X endif (GETTEXT_FOUND AND ENABLE_GETTEXT) X X-add_subdirectory(test) X\ No newline at end of file X+add_subdirectory(test) 7b75067db6d8d1ca67f51bbc54463360 echo x - opencc/distinfo sed 's/^X//' >opencc/distinfo << 'e151a94f329fc9a37b57135f32a7992e' XSHA256 (opencc-0.2.0.tar.gz) = fc4b3203482c7e5ad5c887dc08f83cd1d0e0c1fd1bdd9ec48672ca89bfe2a424 XSIZE (opencc-0.2.0.tar.gz) = 496313 e151a94f329fc9a37b57135f32a7992e exit --- opencc.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: