Diff redis-5.0.5 with a redis-5.0.7

/usr/portage/dev-db/redis/redis-5.0.7.ebuild 2020-01-02 02:09:00.000000000 +0300
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
inherit autotools flag-o-matic systemd toolchain-funcs user
6
inherit autotools flag-o-matic systemd toolchain-funcs
7 7

  
8 8
DESCRIPTION="A persistent caching system, key-value and data structures database"
9 9
HOMEPAGE="https://redis.io"
10 10
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
11 11

  
12 12
LICENSE="BSD"
13
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
13
KEYWORDS="amd64 arm arm64 ~hppa ~ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
14 14
IUSE="+jemalloc tcmalloc luajit test"
15 15
RESTRICT="!test? ( test )"
16 16
SLOT="0"
......
18 18
# Redis does NOT build with Lua 5.2 or newer at this time.
19 19
# This should link correctly with both unslotted & slotted Lua, without
20 20
# changes.
21
RDEPEND="
21
COMMON_DEPEND="
22 22
	luajit? ( dev-lang/luajit:2 )
23 23
	!luajit? ( || ( dev-lang/lua:5.1 =dev-lang/lua-5.1*:0 ) )
24 24
	tcmalloc? ( dev-util/google-perftools )
25 25
	jemalloc? ( >=dev-libs/jemalloc-5.1:= )"
26 26

  
27
RDEPEND="
28
	${COMMON_DEPEND}
29
	acct-group/redis
30
	acct-user/redis"
31

  
27 32
BDEPEND="
28
	${RDEPEND}
33
	${COMMON_DEPEND}
29 34
	virtual/pkgconfig"
30 35

  
31 36
# Tcl is only needed in the CHOST test env
32
DEPEND="${RDEPEND}
37
DEPEND="
38
	${COMMON_DEPEND}
33 39
	test? ( dev-lang/tcl:0= )"
34 40

  
35 41
REQUIRED_USE="?? ( tcmalloc jemalloc )"
36 42

  
37
pkg_setup() {
38
	enewgroup redis 75
39
	enewuser redis 75 -1 /var/lib/redis redis
40
}
43
PATCHES=(
44
	"${FILESDIR}"/${PN}-3.2.3-config.patch
45
	"${FILESDIR}"/${PN}-5.0-shared.patch
46
	"${FILESDIR}"/${PN}-5.0-sharedlua.patch
47
	"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
48
)
41 49

  
42 50
src_prepare() {
43
	eapply \
44
		"${FILESDIR}"/${PN}-3.2.3-config.patch \
45
		"${FILESDIR}"/${PN}-5.0-shared.patch \
46
		"${FILESDIR}"/${PN}-5.0-sharedlua.patch \
47
		"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
48
	eapply_user
51
	default
49 52

  
50 53
	# Copy lua modules into build dir
51 54
	cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
Thank you!