Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libhugetlbfs/
Date: Mon, 14 Dec 2015 19:22:23
Message-Id: 1450120924.2e5ed736019cf2fd7e9db25189d1ac6b070337c4.vapier@gentoo
1 commit: 2e5ed736019cf2fd7e9db25189d1ac6b070337c4
2 Author: Thomas D <whissi <AT> whissi <DOT> de>
3 AuthorDate: Mon Dec 14 19:10:38 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 14 19:22:04 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e5ed736
7
8 sys-libs/libhugetlbfs: control python usage during testing
9
10 The test code uses python, and only supports py2, so make sure the
11 ebuild expresses those requirements when the default is py3.
12
13 sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild | 10 +++++++---
14 1 file changed, 7 insertions(+), 3 deletions(-)
15
16 diff --git a/sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild b/sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild
17 index 4cdb5d4..4847854 100644
18 --- a/sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild
19 +++ b/sys-libs/libhugetlbfs/libhugetlbfs-2.19-r1.ebuild
20 @@ -2,9 +2,11 @@
21 # Distributed under the terms of the GNU General Public License v2
22 # $Id$
23
24 -EAPI=5
25 +EAPI="5"
26
27 -inherit eutils multilib toolchain-funcs perl-functions
28 +PYTHON_COMPAT=( python2_7 )
29 +
30 +inherit eutils multilib toolchain-funcs perl-functions python-any-r1
31
32 DESCRIPTION="easy hugepage access"
33 HOMEPAGE="https://github.com/libhugetlbfs/libhugetlbfs"
34 @@ -15,7 +17,9 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
35 LICENSE="GPL-2"
36 SLOT="0"
37 KEYWORDS="~amd64 ~ppc64 ~x86"
38 -IUSE="static-libs"
39 +IUSE="static-libs test"
40 +
41 +DEPEND="test? ( ${PYTHON_DEPS} )"
42 RDEPEND="dev-lang/perl:="
43
44 src_prepare() {