summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libmemcached-awesome/libmemcached-awesome-1.1.1.ebuild')
-rw-r--r--dev-libs/libmemcached-awesome/libmemcached-awesome-1.1.1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/libmemcached-awesome/libmemcached-awesome-1.1.1.ebuild b/dev-libs/libmemcached-awesome/libmemcached-awesome-1.1.1.ebuild
new file mode 100644
index 000000000000..8cde5918b234
--- /dev/null
+++ b/dev-libs/libmemcached-awesome/libmemcached-awesome-1.1.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="a C/C++ memcached client library"
+HOMEPAGE="https://github.com/awesomized/libmemcached"
+SRC_URI="https://github.com/awesomized/libmemcached/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/libmemcached-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+libevent sasl test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="!dev-libs/libmemcached
+ libevent? ( dev-libs/libevent:= )
+ sasl? ( dev-libs/cyrus-sasl:2 )"
+DEPEND="${RDEPEND}
+ test? ( net-misc/memcached )"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=$(usex test)
+ -DENABLE_DTRACE=OFF
+ -DENABLE_SASL=$(usex sasl)
+ )
+
+ cmake_src_configure
+}
+
+# Running tests:
+#
+# FEATURES="test -network-sandbox" \
+# USE="test" \
+# emerge dev-libs/libmemcached-awesome