summaryrefslogtreecommitdiff
path: root/dev-libs/paho-mqtt/paho-mqtt-1.3.9-r1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/paho-mqtt/paho-mqtt-1.3.9-r1.ebuild')
-rw-r--r--dev-libs/paho-mqtt/paho-mqtt-1.3.9-r1.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-libs/paho-mqtt/paho-mqtt-1.3.9-r1.ebuild b/dev-libs/paho-mqtt/paho-mqtt-1.3.9-r1.ebuild
new file mode 100644
index 0000000..2ec810f
--- /dev/null
+++ b/dev-libs/paho-mqtt/paho-mqtt-1.3.9-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="An Eclipse Paho C client library for MQTT"
+HOMEPAGE="https://eclipse.org/paho"
+SRC_URI="https://github.com/eclipse/paho.mqtt.c/archive/v${PV}.tar.gz -> paho.mqtt.c-v${PV}.tar.gz"
+IUSE="ssl doc"
+
+LICENSE="EPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}/paho.mqtt.c-${PV}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPAHO_ENABLE_CPACK=FALSE
+ -DPAHO_ENABLE_TESTING=FALSE
+ -DPAHO_WITH_SSL=$(usex ssl TRUE FALSE)
+ -DPAHO_BUILD_DOCUMENTATION=$(usex doc TRUE FALSE)
+ )
+ cmake_src_configure
+}