Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-block/fio: fio-2.1.10-r1.ebuild ChangeLog
Date: Wed, 25 Jun 2014 18:04:58
Message-Id: 20140625175359.97B132004E@flycatcher.gentoo.org
1 vapier 14/06/25 17:53:59
2
3 Modified: ChangeLog
4 Added: fio-2.1.10-r1.ebuild
5 Log:
6 Add fix from upstream for json int parsing.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.48 sys-block/fio/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/fio/ChangeLog?rev=1.48&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/fio/ChangeLog?rev=1.48&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/fio/ChangeLog?r1=1.47&r2=1.48
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-block/fio/ChangeLog,v
20 retrieving revision 1.47
21 retrieving revision 1.48
22 diff -u -r1.47 -r1.48
23 --- ChangeLog 25 Jun 2014 17:48:42 -0000 1.47
24 +++ ChangeLog 25 Jun 2014 17:53:59 -0000 1.48
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-block/fio
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-block/fio/ChangeLog,v 1.47 2014/06/25 17:48:42 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-block/fio/ChangeLog,v 1.48 2014/06/25 17:53:59 vapier Exp $
30 +
31 +*fio-2.1.10-r1 (25 Jun 2014)
32 +
33 + 25 Jun 2014; Mike Frysinger <vapier@g.o> +files/fio-2.1.10-json.patch,
34 + +fio-2.1.10-r1.ebuild:
35 + Add fix from upstream for json int parsing.
36
37 25 Jun 2014; Mike Frysinger <vapier@g.o> fio-2.1.10.ebuild:
38 Add arm love.
39
40
41
42 1.1 sys-block/fio/fio-2.1.10-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/fio/fio-2.1.10-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/fio/fio-2.1.10-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: fio-2.1.10-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-block/fio/fio-2.1.10-r1.ebuild,v 1.1 2014/06/25 17:53:59 vapier Exp $
52
53 EAPI="5"
54 PYTHON_COMPAT=( python2_7 )
55 inherit eutils python-r1 toolchain-funcs
56
57 MY_PV="${PV/_rc/-rc}"
58 MY_P="${PN}-${MY_PV}"
59
60 DESCRIPTION="Jens Axboe's Flexible IO tester"
61 HOMEPAGE="http://brick.kernel.dk/snaps/"
62 SRC_URI="http://brick.kernel.dk/snaps/${MY_P}.tar.bz2"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
67 IUSE="aio gnuplot gtk numa zlib"
68
69 DEPEND="aio? ( dev-libs/libaio )
70 gtk? (
71 dev-libs/glib:2
72 x11-libs/gtk+:2
73 )
74 numa? ( sys-process/numactl )
75 zlib? ( sys-libs/zlib )"
76 RDEPEND="${DEPEND}
77 gnuplot? (
78 sci-visualization/gnuplot
79 ${PYTHON_DEPS}
80 )"
81
82 S="${WORKDIR}/${MY_P}"
83
84 src_prepare() {
85 sed -i '/^DEBUGFLAGS/s, -D_FORTIFY_SOURCE=2,,g' Makefile || die
86 epatch "${FILESDIR}"/${P}-json.patch
87 epatch_user
88
89 # Many checks don't have configure flags.
90 sed -i \
91 -e "s:\<pkg-config\>:$(tc-getPKG_CONFIG):" \
92 -e '/if compile_prog "" "-lz" "zlib" *; *then/ '"s::if $(usex zlib true false) ; then:" \
93 -e '/if compile_prog "" "-laio" "libaio" ; then/'"s::if $(usex aio true false) ; then:" \
94 configure || die
95 }
96
97 src_configure() {
98 # not a real configure script
99 ./configure \
100 --extra-cflags="${CFLAGS} ${CPPFLAGS}" \
101 --cc="$(tc-getCC)" \
102 $(usex gtk '--enable-gfio' '') \
103 $(usex numa '' '--disable-numa') \
104 || die 'configure failed'
105 }
106
107 src_compile() {
108 emake V=1 OPTFLAGS=
109 }
110
111 src_install() {
112 emake install DESTDIR="${D}" prefix="${EPREFIX}/usr" mandir="${EPREFIX}/usr/share/man"
113
114 if use gnuplot ; then
115 python_replicate_script "${ED}/usr/bin/fio2gnuplot"
116 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
121 fi
122
123 # This tool has security/parallel issues -- it hardcodes /tmp/template.fio.
124 rm "${ED}"/usr/bin/genfio || die
125
126 dodoc README REPORTING-BUGS HOWTO
127 docinto examples
128 dodoc examples/*
129 }