Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/capstone/
Date: Wed, 18 Sep 2019 22:12:33
Message-Id: 1568844741.4af6607f04424cd164e0cd175429c15c4076a4e1.slyfox@gentoo
1 commit: 4af6607f04424cd164e0cd175429c15c4076a4e1
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 18 22:11:26 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 18 22:12:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4af6607f
7
8 dev-libs/capstone:guard tests building behind USE=test, bug #663006
9
10 Reported-by: Michał Górny
11 Closes: https://bugs.gentoo.org/663006
12 Package-Manager: Portage-2.3.76, Repoman-2.3.17
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 dev-libs/capstone/capstone-4.0.1.ebuild | 9 ++++++++-
16 1 file changed, 8 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-libs/capstone/capstone-4.0.1.ebuild b/dev-libs/capstone/capstone-4.0.1.ebuild
19 index e4931c690d0..77b9b960a58 100644
20 --- a/dev-libs/capstone/capstone-4.0.1.ebuild
21 +++ b/dev-libs/capstone/capstone-4.0.1.ebuild
22 @@ -16,7 +16,9 @@ LICENSE="BSD"
23 SLOT="0/4" # libcapstone.so.4
24 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
25
26 -IUSE="python"
27 +RESTRICT="!test? ( test )"
28 +
29 +IUSE="python test"
30 RDEPEND="python? ( ${PYTHON_DEPS} )"
31 DEPEND="${RDEPEND}
32 python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
33 @@ -63,6 +65,11 @@ src_configure() {
34 EOF
35 } >> config.mk || die
36
37 + if ! use test; then
38 + # Don't build tests if not requested: bug #663006
39 + sed -i tests/Makefile -e 's@all: $(BINARY)@all:@' || die
40 + fi
41 +
42 wrap_python ${FUNCNAME}
43 }