Skip to content

Commit af5e9c5

Browse files
committed
dev-libs/mtxclient: fix re2 subslot dep
Use := operator instead of hardcoded :0/10 to properly track re2 ABI changes Signed-off-by: Skyler Mäntysaari <[email protected]>
1 parent a5bc9e8 commit af5e9c5

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
}

0 commit comments

Comments
 (0)