summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/libthrowable/libthrowable-0.9.4.ebuild')
-rw-r--r--dev-cpp/libthrowable/libthrowable-0.9.4.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-cpp/libthrowable/libthrowable-0.9.4.ebuild b/dev-cpp/libthrowable/libthrowable-0.9.4.ebuild
new file mode 100644
index 000000000..02f87e14a
--- /dev/null
+++ b/dev-cpp/libthrowable/libthrowable-0.9.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Easy error handling and debugging in C++"
+HOMEPAGE="http://libthrowable.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="threads examples"
+
+DEPEND=""
+RDEPEND=">=dev-util/pkgconfig-0.20"
+
+pkg_setup() {
+ # check if this is a recompile and if the USE flag threads has changed
+ # must be done before anything is installed!
+ if use threads; then
+ has_version dev-cpp/libthrowable && ! built_with_use dev-cpp/libthrowable threads \
+ && elog "You recompile with USE=threads, so remember to rebuilt all depending packages!"
+ else
+ has_version dev-cpp/libthrowable && built_with_use dev-cpp/libthrowable threads \
+ && elog "You recompile without USE=threads, so remember to rebuilt all depending packages!"
+ fi
+}
+
+
+src_compile() {
+ econf $(use_enable threads pthreads) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "installing ${PF} failed"
+ dodoc README NEWS AUTHORS
+
+ if use examples; then
+ insinto /usr/share/doc/${PN}/examples/
+ doins examples/*
+ fi
+} \ No newline at end of file