summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/libmemcached-awesome/Manifest1
-rw-r--r--dev-libs/libmemcached-awesome/libmemcached-awesome-1.1.1.ebuild40
-rw-r--r--dev-libs/libmemcached-awesome/metadata.xml19
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-libs/libmemcached-awesome/Manifest b/dev-libs/libmemcached-awesome/Manifest
new file mode 100644
index 00000000000..50f37410c29
--- /dev/null
+++ b/dev-libs/libmemcached-awesome/Manifest
@@ -0,0 +1 @@
+DIST libmemcached-awesome-1.1.1.tar.gz 527161 BLAKE2B 8eedefc35ef1964efd653523ade11da5233ddbab620e34552f963b6138a19f358adfde57fc5955f4ae28c755df2e39d716cb36fb96eef0c14a54ddce20dd8e39 SHA512 b5de32a3db506fb70f2da2bb029a10129667e1a1b054e0cd68ed4f8f99c5b514c2c3e14cb714dbb83de5a138d6a0b867bfc956f08ba9d2b02f050115ae175af5
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 00000000000..8cde5918b23
--- /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
diff --git a/dev-libs/libmemcached-awesome/metadata.xml b/dev-libs/libmemcached-awesome/metadata.xml
new file mode 100644
index 00000000000..c65546e9118
--- /dev/null
+++ b/dev-libs/libmemcached-awesome/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>hydrapolic@gmail.com</email>
+ <name>Tomáš Mózes</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">awesomized/libmemcached</remote-id>
+ </upstream>
+ <use>
+ <flag name="libevent">Use the libevent event loop interface.</flag>
+ <flag name="sasl">Use sasl auth for communications.</flag>
+ </use>
+</pkgmetadata>