Diff fio-2.15 with a fio-2.16

/usr/portage/sys-block/fio/fio-2.16.ebuild 2017-08-19 19:20:00.000000000 +0300
1 1
# Copyright 1999-2017 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

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

  
6 6
PYTHON_COMPAT=( python2_7 )
7 7

  
......
16 16

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

  
......
26 26
	gtk? ( dev-libs/glib:2[static-libs(+)] )
27 27
	numa? ( sys-process/numactl[static-libs(+)] )
28 28
	rbd? ( sys-cluster/ceph[static-libs(+)] )
29
	rdma? (
30
		sys-fabric/libibverbs[static-libs(+)]
31
		sys-fabric/librdmacm[static-libs(+)]
32
	)
29 33
	zlib? ( sys-libs/zlib[static-libs(+)] )"
30 34
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
31 35
	gtk? ( x11-libs/gtk+:2 )"
......
39 43

  
40 44
S="${WORKDIR}/${MY_P}"
41 45

  
46
PATCHES=(
47
	"${FILESDIR}"/fio-2.2.13-libmtd.patch
48
	"${FILESDIR}"/fio-2.2.15-rdma.patch #542640
49
)
50

  
42 51
src_prepare() {
43
	epatch "${FILESDIR}"/fio-2.2.13-libmtd.patch
44
	epatch "${FILESDIR}"/fio-2.2.15-rdma.patch #542640
45 52
	sed -i '/^DEBUGFLAGS/s: -D_FORTIFY_SOURCE=2::g' Makefile || die
46
	epatch_user
47 53

  
48 54
	# Many checks don't have configure flags.
49 55
	sed -i \
......
51 57
		-e '/if compile_prog "" "-lz" "zlib" *; *then/  '"s::if $(usex zlib true false) ; then:" \
52 58
		-e '/if compile_prog "" "-laio" "libaio" ; then/'"s::if $(usex aio true false) ; then:" \
53 59
		configure || die
60
	default
54 61
}
55 62

  
56 63
src_configure() {
......
79 86
	emake install DESTDIR="${D}" prefix="${EPREFIX}/usr" mandir="${EPREFIX}/usr/share/man"
80 87

  
81 88
	if use gnuplot ; then
82
		python_replicate_script "${ED}/usr/bin/fio2gnuplot"
89
		python_replicate_script \
90
			"${ED}/usr/bin/fio2gnuplot" \
91
			"${ED}/usr/bin/fiologparser_hist.py" \
92
			"${ED}/usr/bin/fio_latency2csv.py" \
93
			"${ED}/usr/bin/fiologparser.py"
83 94
	else
84 95
		rm "${ED}"/usr/bin/{fio2gnuplot,fio_generate_plots} || die
85 96
		rm "${ED}"/usr/share/man/man1/{fio2gnuplot,fio_generate_plots}.1 || die
Thank you!