Diff hiredis-1.0.2-r3 with a hiredis-1.1.0-r1

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

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit toolchain-funcs
7 7

  
......
10 10
SRC_URI="https://github.com/redis/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11 11

  
12 12
LICENSE="BSD"
13
# 1.0.1 erroneously bumped SONAME but we're stuck with it now. Force another
14
# rebuild so everybody is on the right one though (1.0.0).
15
SLOT="0/1.0.2"
16
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~x64-solaris"
13
# Always check "Upgrading from ..." in README
14
# e.g. https://github.com/redis/hiredis#upgrading-to-110
15
SLOT="0/$(ver_cut 1-2)"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~x64-solaris"
17 17
IUSE="examples ssl static-libs test"
18 18
RESTRICT="!test? ( test )"
19 19

  
20 20
DEPEND="ssl? ( dev-libs/openssl:= )"
21 21
RDEPEND="${DEPEND}"
22
BDEPEND="test? ( dev-db/redis )"
22
BDEPEND="
23
	test? (
24
		dev-db/redis
25
		dev-libs/libevent
26
	)
27
"
23 28

  
24 29
PATCHES=(
25 30
	"${FILESDIR}"/${PN}-1.0.0-disable-network-tests.patch
......
39 44
		PREFIX="${EPREFIX}/usr" \
40 45
		LIBRARY_PATH="$(get_libdir)" \
41 46
		USE_SSL=$(usex ssl 1 0) \
47
		TEST_ASYNC=$(usex test 1 0) \
42 48
		DEBUG_FLAGS= \
43 49
		OPTIMIZATION= \
44 50
		"$@"
......
52 58
}
53 59

  
54 60
src_test() {
61
	# Compare with https://github.com/redis/hiredis/blob/648763c36e9f6493b13a77da35eb33ef0652b4e2/Makefile#L32
55 62
	local REDIS_PID="${T}"/hiredis.pid
56 63
	local REDIS_SOCK="${T}"/hiredis.sock
57 64
	local REDIS_PORT=56379
Thank you!