From owner-svn-ports-all@freebsd.org Mon May 23 17:55:07 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6502B47656; Mon, 23 May 2016 17:55:07 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB49C1E38; Mon, 23 May 2016 17:55:07 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4NHt61d019668; Mon, 23 May 2016 17:55:06 GMT (envelope-from hrs@FreeBSD.org) Received: (from hrs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4NHt6CK019665; Mon, 23 May 2016 17:55:06 GMT (envelope-from hrs@FreeBSD.org) Message-Id: <201605231755.u4NHt6CK019665@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hrs set sender to hrs@FreeBSD.org using -f From: Hiroki Sato Date: Mon, 23 May 2016 17:55:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415733 - in head/japanese/mozc-server: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 17:55:07 -0000 Author: hrs Date: Mon May 23 17:55:06 2016 New Revision: 415733 URL: https://svnweb.freebsd.org/changeset/ports/415733 Log: - Add workaround for broken C++11 support in GCC. - Remove extra -9 for GZIP_CMD. Added: head/japanese/mozc-server/files/patch-src-base-flags.cc (contents, props changed) head/japanese/mozc-server/files/patch-src-rewriter-calculator-calculator.cc (contents, props changed) Modified: head/japanese/mozc-server/Makefile Modified: head/japanese/mozc-server/Makefile ============================================================================== --- head/japanese/mozc-server/Makefile Mon May 23 17:46:02 2016 (r415732) +++ head/japanese/mozc-server/Makefile Mon May 23 17:55:06 2016 (r415733) @@ -404,7 +404,7 @@ do-build-mozc_el: cd ${BUILD_WRKSRC}/unix/emacs && \ ${EMACS_CMD} -batch -q -no-site-file -no-init-file \ -f batch-byte-compile mozc.el && \ - ${GZIP_CMD} -9 mozc.el + ${GZIP_CMD} mozc.el do-install-mozc_el: @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mozc Added: head/japanese/mozc-server/files/patch-src-base-flags.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/mozc-server/files/patch-src-base-flags.cc Mon May 23 17:55:06 2016 (r415733) @@ -0,0 +1,80 @@ +--- src/base/flags.cc.orig 2016-03-13 11:22:55.000000000 +0900 ++++ src/base/flags.cc 2016-05-24 02:06:01.861439000 +0900 +@@ -36,6 +36,9 @@ + #include + #include + #include ++#if defined(__GNUC__) && !defined(__clang__) ++#include ++#endif + + #include "base/port.h" + #include "base/singleton.h" +@@ -78,6 +81,59 @@ + // function, compiler may warn of "unused function". + template struct StrToNumberImpl; + ++#if defined(__GNUC__) && !defined(__clang__) ++static int stoi(const std::string& s) { ++ std::istringstream str(s); ++ int i; ++ str >> i; ++ return i; ++} ++static long stol(const std::string& s) { ++ std::istringstream str(s); ++ long i; ++ str >> i; ++ return i; ++} ++static long long stoll(const std::string& s) { ++ std::istringstream str(s); ++ long long i; ++ str >> i; ++ return i; ++} ++static unsigned long stoul(const std::string& s) { ++ std::istringstream str(s); ++ unsigned long i; ++ str >> i; ++ return i; ++} ++static unsigned long long stoull(const std::string& s) { ++ std::istringstream str(s); ++ unsigned long long i; ++ str >> i; ++ return i; ++} ++template <> struct StrToNumberImpl { ++ static int Do(const string &s) { return stoi(s); } ++}; ++ ++template <> struct StrToNumberImpl { // NOLINT ++ static long Do(const string &s) { return stol(s); } // NOLINT ++}; ++ ++template <> struct StrToNumberImpl { // NOLINT ++ static long long Do(const string &s) { return stoll(s); } // NOLINT ++}; ++ ++template <> struct StrToNumberImpl { // NOLINT ++ static unsigned long Do(const string &s) { return stoul(s); } // NOLINT ++}; ++ ++template <> struct StrToNumberImpl { // NOLINT ++ static unsigned long long Do(const string &s) { // NOLINT ++ return stoull(s); ++ } ++}; ++#else + template <> struct StrToNumberImpl { + static int Do(const string &s) { return std::stoi(s); } + }; +@@ -99,6 +155,7 @@ + return std::stoull(s); + } + }; ++#endif + + template inline T StrToNumber(const string &s) { + return StrToNumberImpl::Do(s); Added: head/japanese/mozc-server/files/patch-src-rewriter-calculator-calculator.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/mozc-server/files/patch-src-rewriter-calculator-calculator.cc Mon May 23 17:55:06 2016 (r415733) @@ -0,0 +1,12 @@ +--- src/rewriter/calculator/calculator.cc.orig 2016-03-13 11:22:55.000000000 +0900 ++++ src/rewriter/calculator/calculator.cc 2016-05-24 02:06:47.310077000 +0900 +@@ -44,6 +44,9 @@ + #include + #include + #include ++#if defined(__GNUC__) && !defined(__clang__) ++#include ++#endif + + #include "base/compiler_specific.h" + #include "base/logging.h"