From owner-svn-ports-all@FreeBSD.ORG Fri Nov 22 20:28:03 2013 Return-Path: Delivered-To: svn-ports-all@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 12001E71; Fri, 22 Nov 2013 20:28:03 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 017652C85; Fri, 22 Nov 2013 20:28:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAMKS2hk037835; Fri, 22 Nov 2013 20:28:02 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAMKS20d037833; Fri, 22 Nov 2013 20:28:02 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201311222028.rAMKS20d037833@svn.freebsd.org> From: Pawel Pekala Date: Fri, 22 Nov 2013 20:28:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334615 - in head/devel/log4cxx: . 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.16 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: Fri, 22 Nov 2013 20:28:03 -0000 Author: pawel Date: Fri Nov 22 20:28:02 2013 New Revision: 334615 URL: http://svnweb.freebsd.org/changeset/ports/334615 Log: - Fix build with clang [1] - Improve COMMENT - Allow staging - Remove DOCS option, it does nothing anyway - Fix install when DOXYGEN=on, use generated plist for doxygen documentation files - Use option helpers - Move declarations to their proper places PR: ports/184172 [1] Submitted by: Jens Bäckman [1] Added: head/devel/log4cxx/files/ head/devel/log4cxx/files/patch-include-clocale-and-cstdlib (contents, props changed) Modified: head/devel/log4cxx/Makefile Modified: head/devel/log4cxx/Makefile ============================================================================== --- head/devel/log4cxx/Makefile Fri Nov 22 20:05:46 2013 (r334614) +++ head/devel/log4cxx/Makefile Fri Nov 22 20:28:02 2013 (r334615) @@ -10,46 +10,38 @@ MASTER_SITE_SUBDIR= logging/${PORTNAME}/ DISTNAME= apache-${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org -COMMENT= Log4cxx is a port to C++ of the Log4j project +COMMENT= C++ port of the Log4j project LICENSE= AL2 LIB_DEPENDS= apr-1:${PORTSDIR}/devel/apr1 -OPTIONS_DEFINE= BOOST DOCS DOXYGEN - -NO_STAGE= yes -.include - -.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN} -BUILD_DEPENDS+= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen -.else -CONFIGURE_ARGS+= --disable-doxygen -.endif - -.if ${PORT_OPTIONS:MBOOST} -BUILD_DEPENDS+= ${LOCALBASE}/include/boost/regex.hpp:${PORTSDIR}/devel/boost-libs -.endif - GNU_CONFIGURE= yes USE_AUTOTOOLS= automake:env autoconf:env libtool:env - +USES= pathfix +USE_LDCONFIG= yes MAKE_JOBS_UNSAFE= yes -USE_LDCONFIG= yes +OPTIONS_DEFINE= BOOST DOXYGEN -.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN} -PORTDOCS= * -.endif +BOOST_BUILD_DEPENDS= ${LOCALBASE}/include/boost/regex.hpp:${PORTSDIR}/devel/boost-libs + +DOXYGEN_CONFIGURE_OFF= --disable-doxygen +DOXYGEN_BUILD_DEPENDS= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen + +.include -USES= pathfix +post-configure: + @${REINPLACE_CMD} -e 's|-dpR|-pr|' \ + -e '/^htmldest/ s|$$(pkgdatadir)|${DOCSDIR}|' \ + ${WRKSRC}/src/site/doxy/Makefile post-install: -.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN} - ${MKDIR} ${DOCSDIR} - for f in ${PORTDOCS}; do \ - ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ - done +.if ${PORT_OPTIONS:MDOXYGEN} + @cd ${STAGEDIR}${PREFIX} && \ + ${FIND} ${DOCSDIR:S|${PREFIX}/||} ! -type d >> ${TMPPLIST} && \ + ${FIND} ${DOCSDIR:S|${PREFIX}/||} -type d | ${SORT} -r | \ + ${SED} 's|^|@dirrm |' >> ${TMPPLIST} .endif .include Added: head/devel/log4cxx/files/patch-include-clocale-and-cstdlib ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/log4cxx/files/patch-include-clocale-and-cstdlib Fri Nov 22 20:28:02 2013 (r334615) @@ -0,0 +1,24 @@ +--- src/main/cpp/stringhelper.cpp 2008-04-01 00:34:09.000000000 +0200 ++++ src/main/cpp/stringhelper.cpp 2013-11-22 11:27:50.000000000 +0100 +@@ -28,6 +28,7 @@ + #endif + #include + #include ++#include + #include + + +--- src/main/include/log4cxx/helpers/simpledateformat.h 2008-04-01 00:34:26.000000000 +0200 ++++ src/main/include/log4cxx/helpers/simpledateformat.h 2013-11-22 11:27:27.000000000 +0100 +@@ -27,10 +27,9 @@ + + #include + #include ++#include + #include + +-namespace std { class locale; } +- + namespace log4cxx + { + namespace helpers