From owner-svn-ports-head@FreeBSD.ORG Thu Sep 18 15:15:40 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E7D02A3; Thu, 18 Sep 2014 15:15:40 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 C7966380; Thu, 18 Sep 2014 15:15:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8IFFeZ7092075; Thu, 18 Sep 2014 15:15:40 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8IFFdj0092070; Thu, 18 Sep 2014 15:15:39 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201409181515.s8IFFdj0092070@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 18 Sep 2014 15:15:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r368474 - in head/www/libecap: . 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-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2014 15:15:41 -0000 Author: amdmi3 Date: Thu Sep 18 15:15:39 2014 New Revision: 368474 URL: http://svnweb.freebsd.org/changeset/ports/368474 QAT: https://qat.redports.org/buildarchive/r368474/ Log: - Drop .la files, no dependees require them - Add LICENSE_FILE - Add patches to build with clang, drop USE_GCC (which breaks squid) Approved by: portmgr blanket Added: head/www/libecap/files/ head/www/libecap/files/patch-src__libecap__common__area.cc (contents, props changed) head/www/libecap/files/patch-src__libecap__common__area.h (contents, props changed) head/www/libecap/files/patch-src__libecap__common__memory.h (contents, props changed) Modified: head/www/libecap/Makefile head/www/libecap/pkg-plist Modified: head/www/libecap/Makefile ============================================================================== --- head/www/libecap/Makefile Thu Sep 18 15:14:00 2014 (r368473) +++ head/www/libecap/Makefile Thu Sep 18 15:15:39 2014 (r368474) @@ -3,7 +3,7 @@ PORTNAME= libecap PORTVERSION= 0.2.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= www security MASTER_SITES= http://www.measurement-factory.com/tmp/ecap/ @@ -11,14 +11,14 @@ MAINTAINER= tmseck@FreeBSD.org COMMENT= Library for module based network content analysis LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE OPTIONS_DEFINE= DOCS -USES= libtool:keepla +USES= libtool GNU_CONFIGURE= yes USE_LDCONFIG= yes -USE_GCC= any INSTALL_TARGET= install-strip PORTDOCS= CREDITS LICENSE NOTICE README Added: head/www/libecap/files/patch-src__libecap__common__area.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/libecap/files/patch-src__libecap__common__area.cc Thu Sep 18 15:15:39 2014 (r368474) @@ -0,0 +1,13 @@ +--- src/libecap/common/area.cc.orig 2010-12-17 21:08:50.000000000 +0300 ++++ src/libecap/common/area.cc 2014-09-12 15:11:20.000000000 +0400 +@@ -14,8 +14,8 @@ + + + libecap::Area libecap::Area::FromTempString(const std::string &tmp) { +- shared_ptr details(new StdStringAreaDetails(tmp)); +- return Area(details->owner_.data(), details->owner_.size(), details); ++ shared_ptr detls(new StdStringAreaDetails(tmp)); ++ return Area(detls->owner_.data(), detls->owner_.size(), detls); + } + + libecap::Area libecap::Area::FromTempBuffer(const char *start, libecap::size_type size) { Added: head/www/libecap/files/patch-src__libecap__common__area.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/libecap/files/patch-src__libecap__common__area.h Thu Sep 18 15:15:39 2014 (r368474) @@ -0,0 +1,25 @@ +--- src/libecap/common/area.h.orig 2011-02-17 21:04:23.000000000 +0300 ++++ src/libecap/common/area.h 2014-09-12 15:16:00.000000000 +0400 +@@ -45,7 +45,8 @@ + Details details; // creator-defined + + private: +- bool does_not_support_comparisons() const; // not implemented ++ template bool operator==(const T&) {} ++ template bool operator!=(const T&) {} + }; + + // this stub can be enhanced by area creators to optimize area operations +@@ -57,10 +58,8 @@ + std::ostream &operator <<(std::ostream &os, const Area &area); + + /* make Area comparisons illegal by default */ +-template bool operator ==(const Area &a, const T &) { return a.does_not_support_comparisons(); } +-template bool operator !=(const Area &a, const T &) { return a.does_not_support_comparisons(); } +-template bool operator ==(const T &, const Area &a) { return a.does_not_support_comparisons(); } +-template bool operator !=(const T &, const Area &a) { return a.does_not_support_comparisons(); } ++template bool operator ==(const T &t, const Area &a) { return a == t; } ++template bool operator !=(const T &t, const Area &a) { return a != t; } + + } // namespace libecap + Added: head/www/libecap/files/patch-src__libecap__common__memory.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/libecap/files/patch-src__libecap__common__memory.h Thu Sep 18 15:15:39 2014 (r368474) @@ -0,0 +1,26 @@ +--- src/libecap/common/memory.h.orig 2010-05-26 01:27:41.000000000 +0400 ++++ src/libecap/common/memory.h 2014-09-12 15:06:36.000000000 +0400 +@@ -4,14 +4,23 @@ + #define LIBECAP__COMMON_MEMORY_H + + #include ++#if defined(_LIBCPP_VERSION) ++#include ++#else + #include ++#endif + + // TODO: add support for boost pointers if std::tr1 is not available + + namespace libecap { + ++#if defined(_LIBCPP_VERSION) ++using std::weak_ptr; ++using std::shared_ptr; ++#else + using std::tr1::weak_ptr; + using std::tr1::shared_ptr; ++#endif + + } // namespace libecap + Modified: head/www/libecap/pkg-plist ============================================================================== --- head/www/libecap/pkg-plist Thu Sep 18 15:14:00 2014 (r368473) +++ head/www/libecap/pkg-plist Thu Sep 18 15:15:39 2014 (r368474) @@ -22,7 +22,6 @@ include/libecap/common/version.h include/libecap/host/host.h include/libecap/host/xaction.h lib/libecap.a -lib/libecap.la lib/libecap.so lib/libecap.so.2 lib/libecap.so.2.0.0