summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2006-10-07 16:38:18 +0000
committerTiziano Müller <dev-zero@gentoo.org>2006-10-07 16:38:18 +0000
commit83ea3ffd468bdd5d37b147e077df82df6a5b7af5 (patch)
tree8b67555bcf90d77f8adaa1099457b1e2c676a98b /dev-cpp/libiqxmlrpc/libiqxmlrpc-0.8.1.ebuild
parentmedia-video/gcstar: Version bump. Old versions removed. (diff)
downloadsunrise-83ea3ffd468bdd5d37b147e077df82df6a5b7af5.tar.gz
sunrise-83ea3ffd468bdd5d37b147e077df82df6a5b7af5.tar.bz2
sunrise-83ea3ffd468bdd5d37b147e077df82df6a5b7af5.zip
dev-cpp/libiqxmlrpc: Version bump. Old versions removed.
svn path=/sunrise/; revision=1433
Diffstat (limited to 'dev-cpp/libiqxmlrpc/libiqxmlrpc-0.8.1.ebuild')
-rw-r--r--dev-cpp/libiqxmlrpc/libiqxmlrpc-0.8.1.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-cpp/libiqxmlrpc/libiqxmlrpc-0.8.1.ebuild b/dev-cpp/libiqxmlrpc/libiqxmlrpc-0.8.1.ebuild
new file mode 100644
index 000000000..becc8708c
--- /dev/null
+++ b/dev-cpp/libiqxmlrpc/libiqxmlrpc-0.8.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Libiqxmlrpc is an object-oriented library, which represents simple XML-RPC solution both for client and server sides."
+HOMEPAGE="http://libiqxmlrpc.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc debug"
+
+RDEPEND="=dev-cpp/libxmlpp-1*
+ dev-libs/libxml2
+ dev-libs/boost
+ dev-libs/openssl"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+pgk_setup() {
+ if ! built_with_use dev-libs/boost threads ; then
+ eerror "dev-libs/boost has to be compiled with 'threads' USE-flag enabled."
+ die "Needed USE-flag for dev-libs/boost not found."
+ fi
+}
+
+src_compile() {
+ econf \
+ $(use_enable doc docs) \
+ $(use_enable debug) \
+ --with-boost-thread=boost_thread-mt \
+ --with-boost-program-options=boost_program_options-mt \
+ --with-boost-unit-test-framework=boost_unit_test_framework-mt \
+ || die "econf failed"
+ emake CXXFLAGS="${CXXFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ # We install the docs manually, because: i) sandbox violations ii) wrong location
+ emake DESTDIR="${D}" MKDOC=no install || die "emake install failed"
+ dodoc ChangeLog README NEWS
+ if use doc; then
+ dohtml doc/libiqxmlrpc.html/*
+ fi
+}
+
+src_test() {
+ einfo "This can take some time due to stress tests"
+ cd "${S}/tests"
+ make check
+ ./regression.sh
+}