Skip to content

Commit

Permalink
libebt-1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Feb 20, 2013
1 parent b662e8e commit b17408e
Show file tree
Hide file tree
Showing 5 changed files with 215 additions and 0 deletions.
73 changes: 73 additions & 0 deletions libebt/README
@@ -0,0 +1,73 @@
libebt
------------------------------------------
The libebt library provides a clean way of getting human-readable backtrace
messages in C++. It uses the RAII (resource acquisition is initialisation)
idiom to manage backtrace stack items without needing macros, control
structures or an external debugger -- adding context to a function or block is
done through a single simple variable declaration.

Runtime requirements:
libZThread-devel-2.3.2-1bl1

Build requirements:
(besides corresponding -devel packages)
autoconf-10-1
automake-7-1
binutils-2.22.51-2
cygport-0.11.3-1
gawk-4.0.1-1
gcc4-core-4.5.3-3
gcc4-g++-4.5.3-3
libtool-2.4-1
make-3.82.90-1

Canonical website:
http://libebt.berlios.de/

Canonical download:
mirror://berlios/libebt/libebt-1.3.0.tar.bz2

-------------------------------------------

Build instructions:
unpack libebt-1.3.0-X-src.tar.bz2
if you use setup to install this src package, it will be
unpacked under /usr/src automatically
cd /usr/src
cygport ./libebt-1.3.0-X.cygport all

This will create:
/usr/src/libebt-1.3.0-X-src.tar.bz2
/usr/src/libebt-1.3.0-X.tar.bz2
/usr/src/libebt-devel-1.3.0-X.tar.bz2

-------------------------------------------

Files included in the binary package:

(libebt)
/usr/share/doc/Cygwin/libebt.README
/usr/share/doc/libebt/ChangeLog
/usr/share/doc/libebt/LICENCE
/usr/share/doc/libebt/README

(libebt-devel)
/usr/include/libebt/libebt.hh
/usr/include/libebt/libebt_backtracable.hh
/usr/include/libebt/libebt_backtraceable.hh
/usr/include/libebt/libebt_boost_threads.hh
/usr/include/libebt/libebt_context.hh
/usr/include/libebt/libebt_extra_role.hh
/usr/include/libebt/libebt_order.hh
/usr/include/libebt/libebt_pthread_threads.hh
/usr/include/libebt/libebt_util.hh
/usr/include/libebt/libebt_version.hh
/usr/include/libebt/libebt_zthread_threads.hh

------------------

Port Notes:

----- version 1.3.0-1bl1 -----
Initial release for Cygwin-1.7 by fd0 <http://fd0.hatenablog.jp/>

18 changes: 18 additions & 0 deletions libebt/libebt-1.3.0-1bl1.cygport
@@ -0,0 +1,18 @@
DESCRIPTION="Pure C++ template library that provides a clean way of getting human-readable backtrace messages"
HOMEPAGE="http://${PN}.berlios.de/"
SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"

DIFF_EXCLUDES="
${PN}_version.hh
"

PKG_NAMES="
${PN}
${PN}-devel
"
libebt_CONTENTS="
usr/share
"
libebt_devel_CONTENTS="
usr/include
"
107 changes: 107 additions & 0 deletions libebt/libebt-1.3.0-1bl1.src.patch
@@ -0,0 +1,107 @@
--- origsrc/libebt-1.3.0/Makefile.am 2006-01-26 21:59:21.000000000 +0900
+++ src/libebt-1.3.0/Makefile.am 2013-02-20 21:38:19.134234100 +0900
@@ -1,3 +1,4 @@
+ACLOCAL_AMFLAGS = -I m4
CLEANFILES = *~
MAINTAINERCLEANFILES = Makefile.in configure config/* aclocal.m4 \
config.h config.h.in doxygen.conf
--- origsrc/libebt-1.3.0/configure.ac 2006-01-26 21:59:21.000000000 +0900
+++ src/libebt-1.3.0/configure.ac 2013-02-20 21:33:56.058062300 +0900
@@ -1,7 +1,7 @@
dnl vim: set sw=8 sts=8 noet :

AC_PREREQ(2.59)
-AC_INIT([libebt/libebt.hh])
+AC_INIT([libebt], [1.3.0])
AC_CONFIG_AUX_DIR(config)

VERSION_MAJOR=1
@@ -22,8 +22,8 @@ AC_LANG([C++])
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
-AC_PROG_RANLIB
AC_PROG_MAKE_SET
+LT_INIT

dnl check for cxxflags
if test "x${ac_cv_cxx_compiler_gnu}" = "xyes" ; then
@@ -58,7 +58,11 @@ dnl check whether we should do boost thr
save_CXXFLAGS=$CXXFLAGS
save_LIBS=$LIBS
CXXFLAGS="$CXXFLAGS -pthread"
-LIBS="-lboost_thread $LIBS"
+if test "$host_os" = "cygwin"; then
+ LIBS="-lboost_thread-mt $LIBS"
+else
+ LIBS="-lboost_thread $LIBS"
+fi
AC_MSG_CHECKING([whether we should do boost.threads tests])
AC_ARG_ENABLE(boost-thread-tests,
[ --enable-boost-thread-tests Enable tests using boost.threads.],
--- origsrc/libebt-1.3.0/libebt/Makefile.am 2006-01-26 21:59:21.000000000 +0900
+++ src/libebt-1.3.0/libebt/Makefile.am 2013-02-20 21:36:08.051226300 +0900
@@ -16,15 +16,15 @@ if USE_WSTRING_TESTS
the_tests += libebt_wstring_TEST

libebt_wstring_TEST_SOURCES = libebt_wstring_TEST.cc $(test_headers) $(libinclude_HEADERS)
-libebt_wstring_TEST_LDADD = libebttests.a
+libebt_wstring_TEST_LDADD = libebttests.la
endif

if USE_BOOST_THREAD_TESTS
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_LDADD = libebttests.la
+libebt_boost_threads_TEST_LDFLAGS =
libebt_boost_threads_TEST_CXXFLAGS = -pthread $(AM_CXXFLAGS)
endif

@@ -32,7 +32,7 @@ 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_LDADD = libebttests.la
libebt_zthread_threads_TEST_LDFLAGS = -lZThread
endif

@@ -40,28 +40,28 @@ if USE_PTHREAD_TESTS
the_tests += libebt_pthread_threads_TEST

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_LDADD = libebttests.la
libebt_pthread_threads_TEST_LDFLAGS = -lpthread
endif

TESTS = $(the_tests)

-libebttests_a_SOURCES = test_framework.cc test_runner.cc $(test_headers)
+libebttests_la_SOURCES = test_framework.cc test_runner.cc $(test_headers)

libebt_context_TEST_SOURCES = libebt_context_TEST.cc $(test_headers) $(libinclude_HEADERS)
-libebt_context_TEST_LDADD = libebttests.a
+libebt_context_TEST_LDADD = libebttests.la

libebt_version_TEST_SOURCES = libebt_version_TEST.cc $(test_headers) $(libinclude_HEADERS)
-libebt_version_TEST_LDADD = libebttests.a
+libebt_version_TEST_LDADD = libebttests.la

libebt_backtraceable_TEST_SOURCES = libebt_backtraceable_TEST.cc $(test_headers) $(libinclude_HEADERS)
-libebt_backtraceable_TEST_LDADD = libebttests.a
+libebt_backtraceable_TEST_LDADD = libebttests.la

libebt_util_TEST_SOURCES = libebt_util_TEST.cc $(test_headers) $(libinclude_HEADERS)
-libebt_util_TEST_LDADD = libebttests.a
+libebt_util_TEST_LDADD = libebttests.la

check_PROGRAMS = $(TESTS) libebt_demo
-check_LIBRARIES = libebttests.a
+check_LTLIBRARIES = libebttests.la

libebt_demo_SOURCES = libebt_demo.cc $(libinclude_HEADERS)

9 changes: 9 additions & 0 deletions libebt/libebt-devel.hint
@@ -0,0 +1,9 @@
category: Libs
requires: cygwin libZThread-devel
external-source: libebt
sdesc: "Pure C++ template library that provides a clean way of getting human-readable backtrace messages (development)"
ldesc: "The libebt library provides a clean way of getting human-readable
backtrace messages in C++. It uses the RAII (resource acquisition is
initialisation) idiom to manage backtrace stack items without needing macros,
control structures or an external debugger -- adding context to a function or
block is done through a single simple variable declaration."
8 changes: 8 additions & 0 deletions libebt/libebt.hint
@@ -0,0 +1,8 @@
category: Libs
requires: cygwin
sdesc: "Pure C++ template library that provides a clean way of getting human-readable backtrace messages (licensing & readmes)"
ldesc: "The libebt library provides a clean way of getting human-readable
backtrace messages in C++. It uses the RAII (resource acquisition is
initialisation) idiom to manage backtrace stack items without needing macros,
control structures or an external debugger -- adding context to a function or
block is done through a single simple variable declaration."

0 comments on commit b17408e

Please sign in to comment.