net-libs/paho-mqtt-cpp - 1.6.0 (hossie)

Search

Install

Install this version:

emerge -a =net-libs/paho-mqtt-cpp-1.6.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-libs/paho-mqtt-cpp-1.6.0

Or alternatively:

emerge --autounmask-write -a =net-libs/paho-mqtt-cpp-1.6.0

Package Information

Description:
Eclipse Paho MQTT C++ client library
Homepage:
https://eclipse.dev/paho/ https://github.com/eclipse-paho/paho.mqtt.cpp
License:
|| ( EPL-2.0 BSD )

Ebuild Details

Version EAPI Keywords Slot
1.6.0 8 ~amd64 0/1.6.0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Eclipse Paho MQTT C++ client library"
HOMEPAGE="https://eclipse.dev/paho/ https://github.com/eclipse-paho/paho.mqtt.cpp"
SRC_URI="https://github.com/eclipse-paho/paho.mqtt.cpp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/paho.mqtt.cpp-${PV}"

# Dual licensed, EDL-1.0 is the 3-clause BSD license
LICENSE="|| ( EPL-2.0 BSD )"
# The soname stays at 1 although the ABI changes between minor versions
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+ssl"
# Several client tests need an MQTT broker on localhost
RESTRICT="test"

RDEPEND="
	>=net-libs/paho-mqtt-c-1.3.14:=[ssl=]
	ssl? ( dev-libs/openssl:= )
"
DEPEND="${RDEPEND}"

src_configure() {
	local mycmakeargs=(
		-DPAHO_BUILD_DOCUMENTATION=OFF
		-DPAHO_BUILD_EXAMPLES=OFF
		-DPAHO_BUILD_SAMPLES=OFF
		-DPAHO_BUILD_SHARED=ON
		-DPAHO_BUILD_STATIC=OFF
		-DPAHO_BUILD_TESTS=OFF
		-DPAHO_WITH_MQTT_C=OFF
		-DPAHO_WITH_SSL=$(usex ssl)
	)
	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-libs/paho-mqtt-cpp | euse -E <flag> -p net-libs/paho-mqtt-cpp | euse -D <flag> -p net-libs/paho-mqtt-cpp

Global/Standard Flags

ssl
❓ Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	>=net-libs/paho-mqtt-c-1.3.14:=[ssl=]
	ssl? ( dev-libs/openssl:= )

RDEPEND

	>=net-libs/paho-mqtt-c-1.3.14:=[ssl=]
	ssl? ( dev-libs/openssl:= )

Manifest for 1.6.0

Type File Size Source URLs
DIST paho-mqtt-cpp-1.6.0.tar.gz 268269 bytes https://github.com/eclipse-paho/paho.mqtt.cpp/archive/refs/tags/v1.6.0.tar.gz