Сравнение scitokens-cpp-1.0.1 с scitokens-cpp-1.0.1-r1

/usr/portage/dev-cpp/scitokens-cpp/scitokens-cpp-1.0.1-r1.ebuild 2023-10-09 14:52:29.308368346 +0300
1
# Copyright 2023 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6 6
inherit cmake
7 7

  
8
if [[ ${PV} == *9999* ]]; then
9
	inherit git-r3
10
	EGIT_REPO_URI="https://github.com/scitokens/scitokens-cpp"
11
else
12
	SRC_URI="https://github.com/scitokens/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
13
	KEYWORDS="~amd64 ~x86"
14
fi
15

  
8 16
DESCRIPTION="C++ implementation of the SciTokens library with a C library interface"
9
HOMEPAGE="https://github.com/scitokens/scitokens-cpp"
10
SRC_URI="https://github.com/scitokens/scitokens-cpp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
17
HOMEPAGE="https://scitokens.org/"
11 18

  
12 19
LICENSE="Apache-2.0"
13 20
SLOT="0"
14
KEYWORDS="~amd64 ~x86"
15 21
IUSE="test"
16 22

  
17
RESTRICT="test" # testing requires network
18

  
19 23
DEPEND="
20
		dev-db/sqlite
21
		dev-libs/openssl:0=
22
		net-misc/curl:0=
23
		kernel_linux? ( sys-apps/util-linux )
24
	dev-cpp/jwt-cpp[picojson]
25
	dev-db/sqlite
26
	dev-libs/openssl:0=
27
	net-misc/curl:0=
28
	kernel_linux? ( sys-apps/util-linux )
24 29
"
25 30
RDEPEND="${DEPEND}"
26
BDEPEND="test? ( dev-cpp/gtest )"
31
BDEPEND="
32
	virtual/pkgconfig
33
	test? ( dev-cpp/gtest )
34
"
35
RESTRICT="!test? ( test )"
36

  
37
src_prepare() {
38
	# Unbundle dev-cpp/gtest, dev-cpp/jwt-cpp
39
	rm -r vendor || die
40
	# Fix include path for picojson.
41
	find src/ \( -name '*.cpp' -o -name '*.h' \) -type f -print0 | \
42
		xargs -0 sed -r -e "s:picojson/picojson\.h:picojson.h:g" -i || die
43
	# Disable network-based tests relying on external services.
44
	if use test; then
45
		sed -i	-e '/^TEST_F/s#RefreshTest#DISABLED_RefreshTest#' \
46
			-e '/^TEST_F/s#RefreshExpiredTest#DISABLED_RefreshExpiredTest#' test/main.cpp || die
47
	fi
48
	cmake_src_prepare
49
}
27 50

  
28 51
src_configure() {
29 52
	local mycmakeargs=(
30
		-DSCITOKENS_BUILD_UNITTESTS=$(usex test)
31
		-DSCITOKENS_EXTERNAL_GTEST=1
53
		-DSCITOKENS_BUILD_UNITTESTS="$(usex test)"
54
		-DSCITOKENS_EXTERNAL_GTEST=YES
32 55
	)
33 56
	cmake_src_configure
34 57
}
Спасибо!