Diff fio-3.17 with a fio-3.17-r1

/usr/portage/sys-block/fio/fio-3.17-r1.ebuild 2020-02-04 22:39:00.000000000 +0300
17 17
LICENSE="GPL-2"
18 18
SLOT="0"
19 19
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
20
IUSE="aio curl glusterfs gnuplot gtk libressl numa rbd rdma static tcmalloc zlib"
21
REQUIRED_USE="gnuplot? ( ${PYTHON_REQUIRED_USE} )
22
	libressl? ( curl )"
20
IUSE="aio curl glusterfs gnuplot gtk libressl numa python rbd rdma static tcmalloc zlib"
21
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
22
	libressl? ( curl )
23
	gnuplot? ( python )"
23 24

  
24 25
BDEPEND="virtual/pkgconfig"
25 26

  
......
45 46
DEPEND="${RDEPEND}
46 47
	static? ( ${LIB_DEPEND} )"
47 48
RDEPEND+="
48
	gnuplot? (
49
		sci-visualization/gnuplot
50
		$(python_gen_any_dep 'dev-python/pandas[${PYTHON_USEDEP}]')
49
	python? (
51 50
		${PYTHON_DEPS}
52
	)"
51
		$(python_gen_any_dep 'dev-python/pandas[${PYTHON_USEDEP}]')
52
	)
53
	gnuplot? ( sci-visualization/gnuplot )"
53 54

  
54 55
S="${WORKDIR}/${MY_P}"
55 56

  
......
104 105
src_install() {
105 106
	emake install DESTDIR="${D}" prefix="${EPREFIX}/usr" mandir="${EPREFIX}/usr/share/man"
106 107

  
108
	local python2_7_files=(
109
		"${ED}"/usr/bin/fiologparser_hist.py
110
		"${ED}"/usr/bin/fiologparser.py
111
	)
112
	local python_files=(
113
		"${python2_7_files[@]}"
114
		"${ED}"/usr/bin/fio_jsonplus_clat2csv
115
	)
116
	if use python ; then
117
		sed -i 's:python2.7:python:g' "${python2_7_files[@]}" || die
118
		python_replicate_script "${python2_7_files[@]}"
119
	else
120
		rm "${python_files[@]}" || die
121
	fi
122

  
123
	local gnuplot_python2_7_files=(
124
		"${ED}"/usr/bin/fio2gnuplot
125
	)
126
	local gnuplot_files=(
127
		"${gnuplot_python2_7_files[@]}"
128
		"${ED}"/usr/bin/fio_generate_plots
129
		"${ED}"/usr/share/man/man1/fio_generate_plots.1
130
		"${ED}"/usr/share/man/man1/fio2gnuplot.1
131
		"${ED}"/usr/share/fio/*.gpm
132
	)
107 133
	if use gnuplot ; then
108
		sed -i 's:python2.7:python:g' \
109
			"${ED}/usr/bin/fio2gnuplot" \
110
			"${ED}/usr/bin/fiologparser_hist.py" \
111
			"${ED}/usr/bin/fiologparser.py"
112
		python_replicate_script \
113
			"${ED}/usr/bin/fio2gnuplot" \
114
			"${ED}/usr/bin/fiologparser_hist.py" \
115
			"${ED}/usr/bin/fiologparser.py"
134
		sed -i 's:python2.7:python:g' "${gnuplot_python2_7_files[@]}" || die
135
		python_replicate_script "${gnuplot_python2_7_files[@]}"
116 136
	else
117
		rm "${ED}"/usr/bin/{fio2gnuplot,fio_generate_plots} || die
118
		rm "${ED}"/usr/share/man/man1/{fio2gnuplot,fio_generate_plots}.1 || die
119
		rm "${ED}"/usr/share/fio/*.gpm || die
120
		rmdir "${ED}"/usr/share/fio/ 2>/dev/null
137
		rm "${gnuplot_files[@]}" || die
138
		rmdir "${ED}"/usr/share/fio/ || die
121 139
	fi
122 140

  
123 141
	# This tool has security/parallel issues -- it hardcodes /tmp/template.fio.
Thank you!