File tree Expand file tree Collapse file tree 2 files changed +91
-0
lines changed
Expand file tree Collapse file tree 2 files changed +91
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2020-2025 Gentoo Authors
2+ # Distributed under the terms of the GNU General Public License v2
3+
4+ EAPI=8
5+
6+ inherit cmake
7+
8+ DESCRIPTION=" Client API library for Matrix, built on top of libcurl"
9+ HOMEPAGE=" https://github.com/Nheko-Reborn/mtxclient"
10+ SRC_URI=" https://github.com/Nheko-Reborn/${PN} /archive/v${PV} .tar.gz -> ${P} .tar.gz"
11+
12+ LICENSE=" MIT"
13+ SLOT=" 0/${PV} " # ABI may break even on patch version changes
14+ KEYWORDS=" ~amd64"
15+
16+ IUSE=" test"
17+ RESTRICT=" !test? ( test )"
18+
19+ RDEPEND="
20+ >=dev-cpp/coeurl-0.3.1:=[ssl]
21+ dev-libs/libfmt:=
22+ dev-libs/olm
23+ dev-libs/openssl:=
24+ dev-libs/re2:=
25+ dev-libs/spdlog:=
26+ "
27+ DEPEND="
28+ ${RDEPEND}
29+ >=dev-cpp/nlohmann_json-3.11.0
30+ test? ( dev-cpp/gtest )
31+ "
32+
33+ PATCHES=(
34+ " ${FILESDIR} " /${PN} -0.6.0-remove-network-tests.patch
35+ " ${FILESDIR} " /${PN} -0.10.0-fmt11.patch
36+ )
37+
38+ src_configure () {
39+ local -a mycmakeargs=(
40+ -DBUILD_LIB_TESTS=" $( usex test) "
41+ -DBUILD_LIB_EXAMPLES=OFF
42+ -DCMAKE_POSITION_INDEPENDENT_CODE=OFF
43+ )
44+
45+ cmake_src_configure
46+ }
Original file line number Diff line number Diff line change 1+ # Copyright 2020-2025 Gentoo Authors
2+ # Distributed under the terms of the GNU General Public License v2
3+
4+ EAPI=8
5+
6+ inherit cmake
7+
8+ DESCRIPTION=" Client API library for Matrix, built on top of libcurl"
9+ HOMEPAGE=" https://github.com/Nheko-Reborn/mtxclient"
10+ SRC_URI=" https://github.com/Nheko-Reborn/${PN} /archive/v${PV} .tar.gz -> ${P} .tar.gz"
11+
12+ LICENSE=" MIT"
13+ SLOT=" 0/${PV} " # ABI may break even on patch version changes
14+ KEYWORDS=" ~amd64"
15+
16+ IUSE=" test"
17+ RESTRICT=" !test? ( test )"
18+
19+ RDEPEND="
20+ >=dev-cpp/coeurl-0.3.1:=[ssl]
21+ dev-libs/libfmt:=
22+ dev-libs/olm
23+ dev-libs/openssl:=
24+ dev-libs/re2:=
25+ dev-libs/spdlog:=
26+ "
27+ DEPEND="
28+ ${RDEPEND}
29+ >=dev-cpp/nlohmann_json-3.11.0
30+ test? ( dev-cpp/gtest )
31+ "
32+
33+ PATCHES=(
34+ " ${FILESDIR} " /${PN} -0.6.0-remove-network-tests.patch
35+ )
36+
37+ src_configure () {
38+ local -a mycmakeargs=(
39+ -DBUILD_LIB_TESTS=" $( usex test) "
40+ -DBUILD_LIB_EXAMPLES=OFF
41+ -DCMAKE_POSITION_INDEPENDENT_CODE=OFF
42+ )
43+
44+ cmake_src_configure
45+ }
You can’t perform that action at this time.
0 commit comments