From owner-svn-ports-all@FreeBSD.ORG Tue Dec 11 12:33:59 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 635AFF99; Tue, 11 Dec 2012 12:33:59 +0000 (UTC) (envelope-from makc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4798F8FC12; Tue, 11 Dec 2012 12:33:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBBCXxJW091585; Tue, 11 Dec 2012 12:33:59 GMT (envelope-from makc@svn.freebsd.org) Received: (from makc@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBBCXw18091580; Tue, 11 Dec 2012 12:33:58 GMT (envelope-from makc@svn.freebsd.org) Message-Id: <201212111233.qBBCXw18091580@svn.freebsd.org> From: Max Brazhnikov Date: Tue, 11 Dec 2012 12:33:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308683 - in head/textproc/stardict3: . 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.14 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: Tue, 11 Dec 2012 12:33:59 -0000 Author: makc Date: Tue Dec 11 12:33:58 2012 New Revision: 308683 URL: http://svnweb.freebsd.org/changeset/ports/308683 Log: - Add patches to fix build with clang and recent gcc [1] - Trim Makefile header PR: ports/172213 [1] Submitted by: mbsd Added: head/textproc/stardict3/files/patch-dict__tests__t_lookupdata.cpp (contents, props changed) head/textproc/stardict3/files/patch-lib__src__libcommon.cpp (contents, props changed) head/textproc/stardict3/files/patch-lib__src__libcommon.h (contents, props changed) Modified: head/textproc/stardict3/Makefile Modified: head/textproc/stardict3/Makefile ============================================================================== --- head/textproc/stardict3/Makefile Tue Dec 11 12:33:12 2012 (r308682) +++ head/textproc/stardict3/Makefile Tue Dec 11 12:33:58 2012 (r308683) @@ -1,9 +1,5 @@ -# New ports collection makefile for: stardict3 -# Date created: 23 July 2008 -# Whom: eric -# +# Created by: eric # $FreeBSD$ -# PORTNAME= stardict PORTVERSION= 3.0.3 Added: head/textproc/stardict3/files/patch-dict__tests__t_lookupdata.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/stardict3/files/patch-dict__tests__t_lookupdata.cpp Tue Dec 11 12:33:58 2012 (r308683) @@ -0,0 +1,13 @@ +--- ./dict/tests/t_lookupdata.cpp.orig 2012-12-11 08:15:24.000000000 +0000 ++++ ./dict/tests/t_lookupdata.cpp 2012-12-11 08:29:56.172016591 +0000 +@@ -38,8 +38,8 @@ + List dict_list; + libs.load(dict_list); + std::vector dictmask; +- std::vector reslist[dictmask.size()]; +- if (libs.LookupData("letter", reslist, NULL, NULL, NULL, dictmask)) ++ std::vector< std::vector > reslist(dictmask.size()); ++ if (libs.LookupData("letter", &reslist[0], NULL, NULL, NULL, dictmask)) + return EXIT_SUCCESS; + else + return EXIT_FAILURE; Added: head/textproc/stardict3/files/patch-lib__src__libcommon.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/stardict3/files/patch-lib__src__libcommon.cpp Tue Dec 11 12:33:58 2012 (r308683) @@ -0,0 +1,11 @@ +--- ./lib/src/libcommon.cpp.orig 2011-07-08 12:35:48.000000000 +0000 ++++ ./lib/src/libcommon.cpp 2012-12-11 07:48:00.601016758 +0000 +@@ -599,7 +599,7 @@ + + int unpack_zlib(const char* arch_file_name, const char* out_file_name) + { +- zip::gzFile in(gzopen(arch_file_name, "rb")); ++ zip::gzFileWrapper in(gzopen(arch_file_name, "rb")); + if(!in) { + g_critical("Unable to open archive file: %s.", arch_file_name); + return EXIT_FAILURE; Added: head/textproc/stardict3/files/patch-lib__src__libcommon.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/stardict3/files/patch-lib__src__libcommon.h Tue Dec 11 12:33:58 2012 (r308683) @@ -0,0 +1,11 @@ +--- ./lib/src/libcommon.h.orig 2011-07-08 12:32:09.000000000 +0000 ++++ ./lib/src/libcommon.h 2012-12-11 07:48:00.604014902 +0000 +@@ -188,7 +188,7 @@ + } + + namespace zip { +-typedef ResourceWrapper gzFile; ++typedef ResourceWrapper gzFileWrapper; + } + + /* Create a new temporary file. Return file name in file name encoding.