# ChangeLog for dev-cpp/libebt
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libebt/ChangeLog,v 1.16 2006/01/26 13:15:49 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libebt/ChangeLog,v 1.17 2006/11/18 10:36:47 dev-zero Exp $
+
+ 18 Nov 2006; Tiziano Müller <dev-zero@gentoo.org>
+ +files/libebt-1.3.0-as-needed.patch, -libebt-1.2.1.ebuild,
+ -libebt-1.2.2.ebuild, libebt-1.3.0.ebuild:
+ Added as-needed patch, bug #155462 thanks to drizzt. Added 'test' USE-flag
+ to track boost-dependency for testing. Dropped old versions.
*libebt-1.3.0 (26 Jan 2006)
MD5 4db63470575336e27f89038d7c7cc01e libebt-1.3.0.tar.bz2 144838
+RMD160 ad5def229f6b0166e929b51a0046eab17f744252 libebt-1.3.0.tar.bz2 144838
+SHA256 a375a51295a8417ba2fff8fdc3fefe84d39a56452e5a7345aacd5e0a01cba303 libebt-1.3.0.tar.bz2 144838
--- /dev/null
+--- libebt/Makefile.am.orig 2006-11-17 11:44:49.000000000 +0100
++++ libebt/Makefile.am 2006-11-17 11:47:28.000000000 +0100
+@@ -23,17 +23,15 @@
+ the_tests += libebt_boost_threads_TEST
+
+ libebt_boost_threads_TEST_SOURCES = libebt_boost_threads_TEST.cc $(test_headers) $(libinclude_HEADERS)
+-libebt_boost_threads_TEST_LDADD = libebttests.a
+-libebt_boost_threads_TEST_LDFLAGS = -lboost_thread
+-libebt_boost_threads_TEST_CXXFLAGS = -pthread $(AM_CXXFLAGS)
++libebt_boost_threads_TEST_LDADD = libebttests.a -lboost_thread
++libebt_boost_threads_TEST_LDFLAGS = -pthread
+ endif
+
+ if USE_ZTHREAD_TESTS
+ the_tests += libebt_zthread_threads_TEST
+
+ libebt_zthread_threads_TEST_SOURCES = libebt_zthread_threads_TEST.cc $(test_headers) $(libinclude_HEADERS)
+-libebt_zthread_threads_TEST_LDADD = libebttests.a
+-libebt_zthread_threads_TEST_LDFLAGS = -lZThread
++libebt_zthread_threads_TEST_LDADD = libebttests.a -lZThread
+ endif
+
+ if USE_PTHREAD_TESTS
+@@ -41,7 +39,7 @@
+
+ libebt_pthread_threads_TEST_SOURCES = libebt_pthread_threads_TEST.cc $(test_headers) $(libinclude_HEADERS)
+ libebt_pthread_threads_TEST_LDADD = libebttests.a
+-libebt_pthread_threads_TEST_LDFLAGS = -lpthread
++libebt_pthread_threads_TEST_LDFLAGS = -pthread
+ endif
+
+ TESTS = $(the_tests)
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libebt/libebt-1.3.0.ebuild,v 1.1 2006/01/26 13:15:49 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libebt/libebt-1.3.0.ebuild,v 1.2 2006/11/18 10:36:47 dev-zero Exp $
+
+WANT_AUTOMAKE="latest"
+WANT_AUTOCONF="latest"
+
+inherit autotools eutils
DESCRIPTION="A pure C++ template library that provides a clean way of getting human-readable backtrace messages."
HOMEPAGE="http://libebt.berlios.de/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
-IUSE="doc"
+IUSE="doc test"
-DEPEND="doc? ( app-doc/doxygen )"
+DEPEND="doc? ( app-doc/doxygen )
+ test? ( dev-libs/boost )"
RDEPEND=""
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ AT_M4DIR=m4
+ eautoreconf
+}
+
src_compile() {
econf || die "econf failed"
emake || die "emake failed"
}
src_install() {
- make DESTDIR="${D}" install || die "make install failed"
+ emake DESTDIR="${D}" install || die "make install failed"
dodoc ChangeLog README
use doc && dohtml -r doc/html/*
}