# 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.19 2004/11/20 01:02:23 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/ChangeLog,v 1.20 2004/11/21 08:58:37 dragonheart Exp $
+
+ 21 Nov 2004; Daniel Black <dragonheart@gentoo.org>
+ +files/log4c-1.0.11-function.patch, +files/log4c-1.0.12-function.patch,
+ log4c-1.0.11.ebuild, log4c-1.0.12.ebuild:
+ fixed test cases for 1.0.11 and 1.0.12. Patch courtesy of Olaf Freyer
+ <aaron@cs.tu-berlin.de> in bug #70529.
*log4c-1.0.10-r1 (20 Nov 2004)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 eeacf5e9f6f1bb828e3617023fbf0e07 ChangeLog 2969
-MD5 8d663d0569f3454097441e6c317672e9 log4c-1.0.11.ebuild 1471
-MD5 854c35a79482f7e1508a4ba70a5fab24 log4c-1.0.12.ebuild 1141
+MD5 f94cb569db6e9b0dba1982e60f4ee53b ChangeLog 3254
+MD5 2dda8aff491b221b695b39e31804e624 log4c-1.0.11.ebuild 1529
+MD5 938777a64cf7065ccd8484c7a92d6eac log4c-1.0.12.ebuild 1174
MD5 b18c56863e452cbe463de8ee6b53dcc5 log4c-1.0.6-r1.ebuild 1011
MD5 4eafc1e08f52712fd036e73730b0a172 metadata.xml 435
MD5 4725eb269c4c84a0c4e0c3aed0782f03 log4c-1.0.10-r1.ebuild 1698
MD5 028648da7dc4850b5dbc3ec0469eba94 files/makefile.doc.in.patch 352
MD5 a9fba68dfd5dea143cfe49ccb0662fc1 files/digest-log4c-1.0.10-r1 64
MD5 29ae48e8f7698e738fd6e7c18a17b5c7 files/log4c-1.0.10-nodocs.patch 1425
+MD5 80234f09351af06e9eda20bf7dd1c2bd files/log4c-1.0.12-function.patch 998
+MD5 80234f09351af06e9eda20bf7dd1c2bd files/log4c-1.0.11-function.patch 998
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
-iD8DBQFBnpelmdTrptrqvGERAvs/AKCJ53QhSVHwiqFabvYWgTGbEAfnCwCffvZt
-7Z6S52QgMzeIXZ+i4g0fGxA=
-=EjtP
+iD8DBQFBoFjEmdTrptrqvGERAmLXAJ4rEOh/0iLR2aB01A3ZIoAIK/aHtACeJm7Q
+sjO1C/bTC5NpkbCOuy6hmow=
+=fdjL
-----END PGP SIGNATURE-----
--- /dev/null
+--- src/sd/error.h.orig 2004-11-21 08:29:18.168483856 +0930
++++ src/sd/error.h 2004-11-21 08:32:48.421520536 +0930
+@@ -14,13 +14,13 @@
+ #ifdef __SD_DEBUG__
+
+ # define __sd_str(n) #n
+-# define __sd_location(n) __FUNCTION__"() at " __FILE__":" __sd_str(n)
++# define __sd_location(n) "() at " __FILE__":" __sd_str(n)
+ # define sd_location __sd_location(__LINE__)
+
+ # define sd_debug(a_format, ...) \
+- (getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0)
++ (getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0)
+ # define sd_error(a_format, ...) \
+- (getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0)
++ (getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0)
+ # define sd_oserror(afunc, aparam) \
+ (sd_error("%s(%s): #%d %s", afunc, aparam, errno, strerror(errno)), -1)
+
--- /dev/null
+--- src/sd/error.h.orig 2004-11-21 08:29:18.168483856 +0930
++++ src/sd/error.h 2004-11-21 08:32:48.421520536 +0930
+@@ -14,13 +14,13 @@
+ #ifdef __SD_DEBUG__
+
+ # define __sd_str(n) #n
+-# define __sd_location(n) __FUNCTION__"() at " __FILE__":" __sd_str(n)
++# define __sd_location(n) "() at " __FILE__":" __sd_str(n)
+ # define sd_location __sd_location(__LINE__)
+
+ # define sd_debug(a_format, ...) \
+- (getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0)
++ (getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0)
+ # define sd_error(a_format, ...) \
+- (getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0)
++ (getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0)
+ # define sd_oserror(afunc, aparam) \
+ (sd_error("%s(%s): #%d %s", afunc, aparam, errno, strerror(errno)), -1)
+
# 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.11.ebuild,v 1.5 2004/10/09 16:52:58 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/log4c-1.0.11.ebuild,v 1.6 2004/11/21 08:58:37 dragonheart Exp $
inherit eutils
epatch ${FILESDIR}/makefile.doc.in.patch || die "failed to patch"
epatch ${FILESDIR}/configure.in.patch || die "failed to patch"
epatch ${FILESDIR}/log4c_1.0.11_test.patch || die "failed to patch"
+ epatch ${FILESDIR}/${P}-function.patch || die "failed to patch"
}
src_compile() {
}
src_test() {
- einfo "Cannot get test working. patches welcome on bugs.gentoo.org"
+ ${S}/tests/log4c/test_category || die "test_rc failed"
}
src_install() {
# 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.12.ebuild,v 1.2 2004/10/28 12:34:42 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/log4c/log4c-1.0.12.ebuild,v 1.3 2004/11/21 08:58:37 dragonheart Exp $
inherit eutils
virtual/ghostscript )
>=media-gfx/graphviz-1.7.15-r2"
-src_compile() {
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-function.patch
+}
- #local myconf
- #if has maketest ${FEATURES} || use maketest;
- #then
- # myconf="${myconf} --enable-test"
- #fi
+src_compile() {
econf --enable-test `use_enable doc` || die
use doc && addwrite "${ROOT}/var/cache/fonts"
}
src_test() {
- einfo "Cannot get test working. patches welcome on bugs.gentoo.org"
+ # test case broken
+ #${S}/tests/log4c/test_rc || die "test_rc failed"
+ ${S}/tests/log4c/test_category || die "test_rc failed"
}
src_install() {