Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2013 20:28:02 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334615 - in head/devel/log4cxx: . files
Message-ID:  <201311222028.rAMKS20d037833@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <jens.backman@gmail.com> [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 <bsd.port.options.mk>
-
-.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 <bsd.port.options.mk>
 
-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 <bsd.port.mk>

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 <log4cxx/private/log4cxx_private.h>
+ #include <cctype>
++#include <cstdlib>
+ #include <apr.h>
+ 
+ 
+--- 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 <log4cxx/helpers/dateformat.h>
+ #include <vector>
++#include <locale>
+ #include <time.h>
+ 
+-namespace std { class locale; }
+-
+ namespace log4cxx
+ {
+         namespace helpers



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311222028.rAMKS20d037833>