From 06048c57a0bff482b81981a8939d607543264e8e Mon Sep 17 00:00:00 2001 From: John Regan Date: Mon, 1 Feb 2016 16:06:21 -0600 Subject: [PATCH] New package: log4cxx-0.10.0 --- common/shlibs | 1 + srcpkgs/log4cxx-devel | 1 + .../log4cxx/patches/missing-includes.patch | 38 +++++++++++++++++++ srcpkgs/log4cxx/template | 24 ++++++++++++ 4 files changed, 64 insertions(+) create mode 120000 srcpkgs/log4cxx-devel create mode 100644 srcpkgs/log4cxx/patches/missing-includes.patch create mode 100644 srcpkgs/log4cxx/template diff --git a/common/shlibs b/common/shlibs index 4c582eefaae..2893c9e0bc8 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2335,3 +2335,4 @@ libopenshot.so.6 libopenshot-0.0.9_1 libavresample.so.2 libavresample-2.8.5_3 libpqxx-4.0.so libpqxx-4.0.1_1 libndpi.so.1 ndpi-1.6_1 +liblog4cxx.so.10 log4cxx-0.10.0_1 diff --git a/srcpkgs/log4cxx-devel b/srcpkgs/log4cxx-devel new file mode 120000 index 00000000000..6a6033aff74 --- /dev/null +++ b/srcpkgs/log4cxx-devel @@ -0,0 +1 @@ +log4cxx \ No newline at end of file diff --git a/srcpkgs/log4cxx/patches/missing-includes.patch b/srcpkgs/log4cxx/patches/missing-includes.patch new file mode 100644 index 00000000000..d4534428e80 --- /dev/null +++ b/srcpkgs/log4cxx/patches/missing-includes.patch @@ -0,0 +1,38 @@ +diff -Naur apache-log4cxx-0.10.0.orig/src/examples/cpp/console.cpp apache-log4cxx-0.10.0/src/examples/cpp/console.cpp +--- src/examples/cpp/console.cpp 2008-04-01 00:34:52.000000000 +0200 ++++ src/examples/cpp/console.cpp 2008-05-06 05:40:52.000000000 +0200 +@@ -15,7 +15,10 @@ + * limitations under the License. + */ + +-#include ++#include ++#include ++#include ++#include + #include + #include + #include +diff -Naur apache-log4cxx-0.10.0.orig/src/main/cpp/inputstreamreader.cpp apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp +--- src/main/cpp/inputstreamreader.cpp 2008-04-01 00:34:09.000000000 +0200 ++++ src/main/cpp/inputstreamreader.cpp 2008-05-06 05:32:31.000000000 +0200 +@@ -21,6 +21,8 @@ + #include + #include + ++#include ++ + using namespace log4cxx; + using namespace log4cxx::helpers; + +diff -Naur src/main/cpp/socketoutputstream.cpp apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp +--- src/main/cpp/socketoutputstream.cpp 2008-04-01 00:34:09.000000000 +0200 ++++ src/main/cpp/socketoutputstream.cpp 2008-05-06 05:35:55.000000000 +0200 +@@ -20,6 +20,8 @@ + #include + #include + ++#include ++ + using namespace log4cxx; + using namespace log4cxx::helpers; diff --git a/srcpkgs/log4cxx/template b/srcpkgs/log4cxx/template new file mode 100644 index 00000000000..1f9000eccd9 --- /dev/null +++ b/srcpkgs/log4cxx/template @@ -0,0 +1,24 @@ +# Template file for 'log4cxx' +pkgname=log4cxx +version=0.10.0 +revision=1 +build_style=gnu-configure +makedepends="libxml2-devel apr-devel apr-util-devel gdbm-devel" +short_desc="A C++ Logging Library based on Log4J" +maintainer="John Regan " +license="Apache-2" +homepage="https://logging.apache.org/log4cxx/" +distfiles="http://apache.osuosl.org/logging/log4cxx/${version}/apache-log4cxx-${version}.tar.gz" +checksum=0de0396220a9566a580166e66b39674cb40efd2176f52ad2c65486c99c920c8c +wrksrc="apache-${pkgname}-${version}" + +log4cxx-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +}