Skip to content

Commit

Permalink
dev-libs/capstone:guard tests building behind USE=test, bug #663006
Browse files Browse the repository at this point in the history
Reported-by: Michał Górny
Closes: https://bugs.gentoo.org/663006
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Sep 18, 2019
1 parent 9cc588a commit 4af6607
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dev-libs/capstone/capstone-4.0.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ LICENSE="BSD"
SLOT="0/4" # libcapstone.so.4
KEYWORDS="~amd64 ~arm ~arm64 ~x86"

IUSE="python"
RESTRICT="!test? ( test )"

IUSE="python test"
RDEPEND="python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
Expand Down Expand Up @@ -63,6 +65,11 @@ src_configure() {
EOF
} >> config.mk || die

if ! use test; then
# Don't build tests if not requested: bug #663006
sed -i tests/Makefile -e 's@all: $(BINARY)@all:@' || die
fi

wrap_python ${FUNCNAME}
}

Expand Down

0 comments on commit 4af6607

Please sign in to comment.