blob: 9101da548aea7fc39953a7bfa9dc12e48875d2b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
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-utils_src_configure
}
|