summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/log4c')
-rw-r--r--dev-libs/log4c/ChangeLog8
-rw-r--r--dev-libs/log4c/files/digest-log4c-1.0.10-r11
-rw-r--r--dev-libs/log4c/files/log4c-1.0.10-nodocs.patch38
-rw-r--r--dev-libs/log4c/log4c-1.0.10-r1.ebuild51
4 files changed, 97 insertions, 1 deletions
diff --git a/dev-libs/log4c/ChangeLog b/dev-libs/log4c/ChangeLog
index 3c39e1f0f6cb..adf22fbedde0 100644
--- a/dev-libs/log4c/ChangeLog
+++ b/dev-libs/log4c/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/log4c
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/ChangeLog,v 1.18 2004/10/28 12:34:42 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/ChangeLog,v 1.19 2004/11/20 01:02:23 dragonheart Exp $
+
+*log4c-1.0.10-r1 (20 Nov 2004)
+
+ 20 Nov 2004; Daniel Black <dragonheart@gentoo.org>
+ +files/log4c-1.0.10-nodocs.patch, +log4c-1.0.10-r1.ebuild:
+ log4c-1.0.10-r1 added per bug #70529. Thanks to Lee Thompson <bm55b@yahoo.com>
28 Oct 2004; Simon Stelling <blubb@gentoo.org> log4c-1.0.12.ebuild:
added ~amd64
diff --git a/dev-libs/log4c/files/digest-log4c-1.0.10-r1 b/dev-libs/log4c/files/digest-log4c-1.0.10-r1
new file mode 100644
index 000000000000..9d6da5d875b7
--- /dev/null
+++ b/dev-libs/log4c/files/digest-log4c-1.0.10-r1
@@ -0,0 +1 @@
+MD5 db901a69a6da4f1974bf47105a9aac8a log4c-1.0.10.tar.gz 242286
diff --git a/dev-libs/log4c/files/log4c-1.0.10-nodocs.patch b/dev-libs/log4c/files/log4c-1.0.10-nodocs.patch
new file mode 100644
index 000000000000..0759afbf99b5
--- /dev/null
+++ b/dev-libs/log4c/files/log4c-1.0.10-nodocs.patch
@@ -0,0 +1,38 @@
+diff -Nru log4c-1.0.10.orig/configure log4c-1.0.10/configure
+--- log4c-1.0.10.orig/configure 2002-11-22 08:44:32.000000000 -0600
++++ log4c-1.0.10/configure 2004-11-16 10:32:32.303881856 -0600
+@@ -9522,6 +9522,7 @@
+ else
+ enable_doc=yes
+ fi
++enable_doc=no
+
+
+ if test x$enable_doc = xyes; then
+@@ -9532,7 +9533,7 @@
+ DOC_FALSE=
+ fi
+
+-ac_config_files="$ac_config_files Makefile log4c-config log4crc.sample log4c.spec config/Makefile doc/Makefile doc/Doxyfile doc/main.doc src/Makefile src/log4c/Makefile src/log4c/version.h src/sd/Makefile tests/Makefile tests/log4c/Makefile"
++ac_config_files="$ac_config_files Makefile log4c-config log4crc.sample log4c.spec config/Makefile src/Makefile src/log4c/Makefile src/log4c/version.h src/sd/Makefile tests/Makefile tests/log4c/Makefile"
+
+ ac_config_commands="$ac_config_commands default"
+
+diff -Nru log4c-1.0.10.orig/tests/log4c/test_category.c log4c-1.0.10/tests/log4c/test_category.c
+--- log4c-1.0.10.orig/tests/log4c/test_category.c 2002-11-20 09:38:34.000000000 -0600
++++ log4c-1.0.10/tests/log4c/test_category.c 2004-11-16 11:53:53.436836856 -0600
+@@ -111,11 +111,11 @@
+ {
+ log4c_category_set_priority(root, LOG4C_PRIORITY_TRACE);
+
+- foo(root, trace);
++ foo(root, info);
+ foo(root, warn);
+- foo(sub1, trace);
++ foo(sub1, info);
+ foo(sub1, warn);
+- foo(sun1sub2, trace);
++ foo(sun1sub2, info);
+ foo(sun1sub2, warn);
+ return 1;
+ }
diff --git a/dev-libs/log4c/log4c-1.0.10-r1.ebuild b/dev-libs/log4c/log4c-1.0.10-r1.ebuild
new file mode 100644
index 000000000000..c2ba70bde47e
--- /dev/null
+++ b/dev-libs/log4c/log4c-1.0.10-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/log4c-1.0.10-r1.ebuild,v 1.1 2004/11/20 01:02:23 dragonheart Exp $
+
+inherit eutils
+
+DESCRIPTION="Log4c is a library of C for flexible logging to files, syslog and other destinations. It is modeled after the Log for Java library (http://jakarta.apache.org/log4j/), staying as close to their API as is reasonable."
+SRC_URI="mirror://sourceforge/log4c/${P}.tar.gz"
+HOMEPAGE="http://log4c.sourceforge.net"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="x86 ~sparc ~ppc ~amd64"
+IUSE="doc"
+
+# This is the last version of log4c that uses 'expat' and the last one I could
+# get working with a gcc 3.3.4 gentoo box. Later version work okay on
+# redhat boxes, but the ones I had around we're gcc 3.2. The virtual/logger
+# could probably be deleted, but it just doesn't seem right to have log4c
+# without a logger underneath it.
+
+DEPEND=">=dev-libs/expat-1.95.2
+ >=media-gfx/graphviz-1.7.15-r2"
+
+RDEPEND="virtual/logger
+ >=dev-libs/expat-1.95.2
+ >=media-gfx/graphviz-1.7.15-r2"
+
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd ${S}
+ ### comment out the docs with this patch to minimize depenencies
+ useq doc || epatch ${FILESDIR}/${P}-nodocs.patch
+}
+
+src_compile() {
+
+ econf --enable-test || die
+ emake || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+ dodoc AUTHORS COPYING ChangeLog INSTALL README
+ # Currently with this ebuild you have to have a /etc/log4crc file and
+ # have LOG4C_RCPATH defined or log4c quitely does nothing
+ cp ${D}/etc/log4crc.sample ${D}/etc/log4crc
+ dodir /etc/env.d
+ echo "LOG4C_RCPATH=/etc" > ${D}/etc/env.d/42${PN} || die
+}