[52068] trunk/dports/devel

jmr at macports.org jmr at macports.org
Tue Jun 9 10:38:47 PDT 2009


Revision: 52068
          http://trac.macports.org/changeset/52068
Author:   jmr at macports.org
Date:     2009-06-09 10:38:46 -0700 (Tue, 09 Jun 2009)
Log Message:
-----------
New port: log4cxx (#18445)

Added Paths:
-----------
    trunk/dports/devel/log4cxx/
    trunk/dports/devel/log4cxx/Portfile
    trunk/dports/devel/log4cxx/files/
    trunk/dports/devel/log4cxx/files/gcc43.patch
    trunk/dports/devel/log4cxx/files/warnings.patch

Added: trunk/dports/devel/log4cxx/Portfile
===================================================================
--- trunk/dports/devel/log4cxx/Portfile	                        (rev 0)
+++ trunk/dports/devel/log4cxx/Portfile	2009-06-09 17:38:46 UTC (rev 52068)
@@ -0,0 +1,37 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name               log4cxx
+version            0.10.0
+categories         devel
+platforms          darwin
+
+maintainers        uwe-arzt.de:mail
+
+description        log4cxx is a port to C++ of the log4j project
+long_description   Apache log4cxx is a logging framework for C++ patterned \
+                   after Apache log4j . Apache log4cxx uses Apache Portable \
+                   Runtime for most platform-specific code and should be \
+                   usable on any platform supported by APR.
+
+homepage           http://logging.apache.org/log4cxx/
+
+distname           apache-log4cxx-${version}
+master_sites       apache:logging/log4cxx/${version}
+
+checksums          sha1 d79c053e8ac90f66c5e873b712bb359fd42b648d \
+                   rmd160 6df384e5c746c3c6903efae6c9f0d64e4f07a5ad
+
+patchfiles         gcc43.patch \
+                   warnings.patch
+# override patch.pre_args since it defaults to -p0
+patch.pre_args     -p1
+
+depends_build      port:pkgconfig
+
+depends_lib	       port:apr
+
+# generating doxygen docu doesn't work
+configure.args     --enable-doxygen=no


Property changes on: trunk/dports/devel/log4cxx/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/log4cxx/files/gcc43.patch
===================================================================
--- trunk/dports/devel/log4cxx/files/gcc43.patch	                        (rev 0)
+++ trunk/dports/devel/log4cxx/files/gcc43.patch	2009-06-09 17:38:46 UTC (rev 52068)
@@ -0,0 +1,36 @@
+diff --git a/src/examples/cpp/console.cpp b/src/examples/cpp/console.cpp
+index 6a01d8a..a673a10 100755
+--- a/src/examples/cpp/console.cpp
++++ b/src/examples/cpp/console.cpp
+@@ -22,6 +22,7 @@
+ #include <log4cxx/logmanager.h>
+ #include <iostream>
+ #include <locale.h>
++#include <cstring>
+ 
+ using namespace log4cxx;
+ using namespace log4cxx::helpers;
+diff --git a/src/main/cpp/inputstreamreader.cpp b/src/main/cpp/inputstreamreader.cpp
+index 52b1c0a..cb45181 100644
+--- a/src/main/cpp/inputstreamreader.cpp
++++ b/src/main/cpp/inputstreamreader.cpp
+@@ -20,6 +20,7 @@
+ #include <log4cxx/helpers/exception.h>
+ #include <log4cxx/helpers/pool.h>
+ #include <log4cxx/helpers/bytebuffer.h>
++#include <cstring>
+ 
+ using namespace log4cxx;
+ using namespace log4cxx::helpers;
+diff --git a/src/main/cpp/socketoutputstream.cpp b/src/main/cpp/socketoutputstream.cpp
+index 185f835..c61eb11 100644
+--- a/src/main/cpp/socketoutputstream.cpp
++++ b/src/main/cpp/socketoutputstream.cpp
+@@ -19,6 +19,7 @@
+ #include <log4cxx/helpers/socketoutputstream.h>
+ #include <log4cxx/helpers/socket.h>
+ #include <log4cxx/helpers/bytebuffer.h>
++#include <cstring>
+ 
+ using namespace log4cxx;
+ using namespace log4cxx::helpers;

Added: trunk/dports/devel/log4cxx/files/warnings.patch
===================================================================
--- trunk/dports/devel/log4cxx/files/warnings.patch	                        (rev 0)
+++ trunk/dports/devel/log4cxx/files/warnings.patch	2009-06-09 17:38:46 UTC (rev 52068)
@@ -0,0 +1,23 @@
+*** a/src/main/include/log4cxx/helpers/objectptr.h	2008-10-06 16:31:12.977510299 -0700
+--- b/src/main/include/log4cxx/helpers/objectptr.h	2008-10-06 16:30:57.675742916 -0700
+***************
+*** 28,36 ****
+  //   switching between the initialization styles.
+  //
+  #if LOG4CXX_HELGRIND
+! #define _LOG4CXX_OBJECTPTR_INIT(x) { exchange(x); 
+  #else
+! #define _LOG4CXX_OBJECTPTR_INIT(x) : p(x) {
+  #endif
+  
+  namespace log4cxx
+--- 28,36 ----
+  //   switching between the initialization styles.
+  //
+  #if LOG4CXX_HELGRIND
+! #define _LOG4CXX_OBJECTPTR_INIT(x) : ObjectPtrBase() { exchange(x); 
+  #else
+! #define _LOG4CXX_OBJECTPTR_INIT(x) : ObjectPtrBase(), p(x) {
+  #endif
+  
+  namespace log4cxx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090609/76879c1a/attachment-0001.html>


More information about the macports-changes mailing list