Diff fio-3.7 with a fio-3.16

/usr/portage/sys-block/fio/fio-3.16.ebuild 2020-01-05 14:15:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI="7"
5 5

  
6 6
PYTHON_COMPAT=( python2_7 python3_6 )
7 7

  
8
inherit eutils python-r1 toolchain-funcs
8
inherit python-r1 toolchain-funcs
9 9

  
10 10
MY_PV="${PV/_rc/-rc}"
11 11
MY_P="${PN}-${MY_PV}"
12 12

  
13 13
DESCRIPTION="Jens Axboe's Flexible IO tester"
14
HOMEPAGE="http://brick.kernel.dk/snaps/"
15
SRC_URI="http://brick.kernel.dk/snaps/${MY_P}.tar.bz2"
14
HOMEPAGE="https://brick.kernel.dk/snaps/"
15
SRC_URI="https://brick.kernel.dk/snaps/${MY_P}.tar.bz2"
16 16

  
17 17
LICENSE="GPL-2"
18 18
SLOT="0"
19 19
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
20
IUSE="aio glusterfs gnuplot gtk numa rbd rdma static zlib"
21
REQUIRED_USE="gnuplot? ( ${PYTHON_REQUIRED_USE} )"
20
IUSE="aio curl glusterfs gnuplot gtk libressl numa rbd rdma static tcmalloc zlib"
21
REQUIRED_USE="gnuplot? ( ${PYTHON_REQUIRED_USE} )
22
	libressl? ( curl )"
23

  
24
BDEPEND="virtual/pkgconfig"
22 25

  
23 26
# GTK+:2 does not offer static libaries.
24 27
LIB_DEPEND="aio? ( dev-libs/libaio[static-libs(+)] )
28
	curl? (
29
		net-misc/curl:=[static-libs(+)]
30
		!libressl? ( dev-libs/openssl:0=[static-libs(+)] )
31
		libressl? ( dev-libs/libressl:0=[static-libs(+)] )
32
	)
25 33
	glusterfs? ( sys-cluster/glusterfs[static-libs(+)] )
26 34
	gtk? ( dev-libs/glib:2[static-libs(+)] )
27 35
	numa? ( sys-process/numactl[static-libs(+)] )
......
30 38
		sys-fabric/libibverbs[static-libs(+)]
31 39
		sys-fabric/librdmacm[static-libs(+)]
32 40
	)
41
	tcmalloc? ( dev-util/google-perftools:=[static-libs(+)] )
33 42
	zlib? ( sys-libs/zlib[static-libs(+)] )"
34 43
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
35 44
	gtk? ( x11-libs/gtk+:2 )"
......
38 47
RDEPEND+="
39 48
	gnuplot? (
40 49
		sci-visualization/gnuplot
50
		$(python_gen_any_dep 'dev-python/pandas[${PYTHON_USEDEP}]')
41 51
		${PYTHON_DEPS}
42 52
	)"
43 53

  
......
45 55

  
46 56
PATCHES=(
47 57
	"${FILESDIR}"/fio-2.2.13-libmtd.patch
58
	"${FILESDIR}"/fio-3.16-snprintf.patch
48 59
)
49 60

  
61
python_check_deps() {
62
	has_version "dev-python/pandas[${PYTHON_USEDEP}]"
63
}
64

  
50 65
src_prepare() {
66
	default
67

  
51 68
	sed -i '/^DEBUGFLAGS/s: -D_FORTIFY_SOURCE=2::g' Makefile || die
52 69

  
53 70
	# Many checks don't have configure flags.
......
56 73
		-e '/if compile_prog "" "-lz" "zlib" *; *then/  '"s::if $(usex zlib true false) ; then:" \
57 74
		-e '/if compile_prog "" "-laio" "libaio" ; then/'"s::if $(usex aio true false) ; then:" \
58 75
		configure || die
59
	default
60 76
}
61 77

  
62 78
src_configure() {
......
69 85
		--extra-cflags="${CFLAGS} ${CPPFLAGS}" \
70 86
		--cc="$(tc-getCC)" \
71 87
		--disable-pmem \
88
		$(usex curl '' '--disable-http') \
72 89
		$(usex glusterfs '' '--disable-gfapi') \
73 90
		$(usex gtk '--enable-gfio' '') \
74 91
		$(usex numa '' '--disable-numa') \
75 92
		$(usex rbd '' '--disable-rbd') \
76 93
		$(usex rdma '' '--disable-rdma') \
77
		$(usex static '--build-static' '')
94
		$(usex static '--build-static' '') \
95
		$(usex tcmalloc '' '--disable-tcmalloc')
78 96
	echo "$@"
79 97
	"$@" || die 'configure failed'
80 98
}
Thank you!