Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-benchmarks/ltp: ltp-20140828.ebuild ChangeLog ltp-20130109.ebuild ltp-20120903.ebuild
Date: Tue, 02 Sep 2014 19:43:06
Message-Id: 20140902194300.310D748B8@oystercatcher.gentoo.org
1 hwoarang 14/09/02 19:43:00
2
3 Modified: ChangeLog
4 Added: ltp-20140828.ebuild
5 Removed: ltp-20130109.ebuild ltp-20120903.ebuild
6 Log:
7 Version bump. Remove old
8
9 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 09BF4F54C2BA7F3C!)
10
11 Revision Changes Path
12 1.26 app-benchmarks/ltp/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ltp/ChangeLog?rev=1.26&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ltp/ChangeLog?rev=1.26&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ltp/ChangeLog?r1=1.25&r2=1.26
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v
21 retrieving revision 1.25
22 retrieving revision 1.26
23 diff -u -r1.25 -r1.26
24 --- ChangeLog 20 Jul 2013 15:35:55 -0000 1.25
25 +++ ChangeLog 2 Sep 2014 19:43:00 -0000 1.26
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-benchmarks/ltp
28 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.25 2013/07/20 15:35:55 jer Exp $
30 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.26 2014/09/02 19:43:00 hwoarang Exp $
32 +
33 +*ltp-20140828 (02 Sep 2014)
34 +
35 + 02 Sep 2014; Markos Chandras <hwoarang@g.o> +ltp-20140828.ebuild,
36 + -ltp-20120903.ebuild, -ltp-20130109.ebuild:
37 + Version bump. Remove old
38
39 20 Jul 2013; Jeroen Roovers <jer@g.o> ltp-20130503.ebuild:
40 Marked ~hppa too.
41
42
43
44 1.1 app-benchmarks/ltp/ltp-20140828.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ltp/ltp-20140828.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ltp/ltp-20140828.ebuild?rev=1.1&content-type=text/plain
48
49 Index: ltp-20140828.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20140828.ebuild,v 1.1 2014/09/02 19:43:00 hwoarang Exp $
54
55 EAPI="4"
56
57 inherit autotools eutils readme.gentoo
58
59 MY_PN="${PN}-full"
60 MY_P="${MY_PN}-${PV}"
61
62 DESCRIPTION="A testsuite for the linux kernel"
63 HOMEPAGE="http://ltp.sourceforge.net/"
64 SRC_URI="mirror://sourceforge/ltp/LTP%20Source/${P}/${MY_P}.tar.bz2 -> ${P}.tar.bz2"
65 LICENSE="GPL-2"
66 SLOT="0"
67
68 KEYWORDS="~amd64 ~hppa ~ppc ~x86"
69 IUSE="expect perl pm open-posix python rt"
70
71 DEPEND="expect? ( dev-tcltk/expect )
72 perl? ( dev-lang/perl )
73 python? ( dev-lang/python )"
74
75 RESTRICT="test"
76
77 S="${WORKDIR}"/${MY_P}
78
79 pkg_setup() {
80 # Don't create groups
81 export CREATE=0
82
83 DOC_CONTENTS="LTP requires root access to run the tests.
84 The LTP root directory is located in /opt/${PN}.
85 For more information please read the ltp-howto located in
86 /usr/share/doc/${PF}"
87 }
88
89 src_prepare() {
90 # regenerate
91 AT_M4DIR="m4" eautoreconf
92 }
93
94 src_configure() {
95 # FIXME: improve me
96 local myconf=
97 use open-posix && myconf+="--with-open-posix-testsuite "
98 use pm && mytconf+="--with-power-management-testsuite "
99 use rt && myconf+="--with-realtime-testsuite "
100 use perl && myconf+="--with-perl "
101 use python && myconf+="--with-python "
102 use expect && myconf+="--with-expect "
103 # Prevent any kernel stuff for now as it leads to sandbox violations
104 myconf+="--without-modules --with-linux-dir=/dev/null"
105
106 # Better put it into /opt/${PN} as everything needs to
107 # be under the same directory..
108
109 econf --prefix=/opt/${PN} ${myconf}
110 }
111
112 src_compile() {
113 # Posix testsuite does not seem to build with -j>1
114 # Is this maintained anymore?
115 if use open-posix; then
116 export MAKEOPTS="-j1"
117 fi
118 emake
119 }
120
121 src_install() {
122 default
123 dosym /usr/libexec/${PN}/runltp /usr/bin/runltp
124 # install docs
125 dodoc doc/MaintNotes
126 for txt in doc/*.txt; do
127 dodoc ${txt}
128 done
129 dodoc -r doc/examples doc/testcases
130 dohtml -r doc/automation-*.html
131 doman doc/man1/*.1
132 doman doc/man3/*.3
133 readme.gentoo_create_doc
134 }