summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libcouchbase/libcouchbase-2.2.0.ebuild')
-rw-r--r--dev-libs/libcouchbase/libcouchbase-2.2.0.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-libs/libcouchbase/libcouchbase-2.2.0.ebuild b/dev-libs/libcouchbase/libcouchbase-2.2.0.ebuild
new file mode 100644
index 0000000..1e07302
--- /dev/null
+++ b/dev-libs/libcouchbase/libcouchbase-2.2.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=yes
+
+inherit autotools-utils
+
+DESCRIPTION="Couchbase C Client Library"
+HOMEPAGE="http://www.couchbase.com/communities/c-client-library"
+SRC_URI="http://packages.couchbase.com/clients/c/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs tools"
+
+# tests fails to build
+RESTRICT="test"
+
+RDEPEND=">=dev-libs/libevent-1.4.13"
+DEPEND="${RDEPEND}"
+
+# building in a separate dir fails
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable tools)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ default
+ use doc || rm -rf "${D}"/usr/share/doc
+ use static-libs || find "${D}" -type f -name "*.la" -delete
+ use tools || rm -rf "${D}"/usr/share/man
+ rmdir "${D}"/usr/share 2>/dev/null
+}