diff options
Diffstat (limited to 'community/log4cpp')
-rw-r--r-- | community/log4cpp/PKGBUILD | 30 | ||||
-rw-r--r-- | community/log4cpp/gcc43.patch | 26 |
2 files changed, 56 insertions, 0 deletions
diff --git a/community/log4cpp/PKGBUILD b/community/log4cpp/PKGBUILD new file mode 100644 index 000000000..21bfddf37 --- /dev/null +++ b/community/log4cpp/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 58314 2011-11-11 08:13:40Z stativ $ +# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> +# Contributor : Geraud Le Falher <daureg@gmail.com> + +pkgname=log4cpp +pkgver=1.0 +pkgrel=6 +pkgdesc="A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations." +arch=('i686' 'x86_64') +url="http://log4cpp.hora-obscura.de/" +license=('LGPL') +depends=('gcc-libs') +options=('!libtool') +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz gcc43.patch) +md5sums=('1face50ead0790d1297dfb04bacf273c' + '09a6fd8ab6527a417c97c4db5215e558') + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i "$srcdir"/gcc43.patch + ./configure --prefix=/usr --disable-doxygen --disable-dot --without-idsa + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} + +# vim: set ft=sh ts=2 sw=2 et: diff --git a/community/log4cpp/gcc43.patch b/community/log4cpp/gcc43.patch new file mode 100644 index 000000000..a60f986e9 --- /dev/null +++ b/community/log4cpp/gcc43.patch @@ -0,0 +1,26 @@ +Index: log4cpp-1.0/src/BasicLayout.cpp +=================================================================== +--- log4cpp-1.0.orig/src/BasicLayout.cpp 2008-03-14 16:06:57.000000000 -0400 ++++ log4cpp-1.0/src/BasicLayout.cpp 2008-03-14 16:07:11.000000000 -0400 +@@ -15,6 +15,8 @@ + #include <sstream> + #endif + ++#include <memory> ++ + namespace log4cpp { + + BasicLayout::BasicLayout() { +Index: log4cpp-1.0/src/PatternLayout.cpp +=================================================================== +--- log4cpp-1.0.orig/src/PatternLayout.cpp 2008-03-14 16:07:33.000000000 -0400 ++++ log4cpp-1.0/src/PatternLayout.cpp 2008-03-14 16:07:49.000000000 -0400 +@@ -370,7 +370,7 @@ + literal = ""; + } + if ((minWidth != 0) || (maxWidth != 0)) { +- component = new FormatModifierComponent(component, std::abs(minWidth), maxWidth, minWidth < 0); ++ component = new FormatModifierComponent(component, std::abs((float)minWidth), maxWidth, minWidth < 0); + minWidth = maxWidth = 0; + } + _components.push_back(component); |