diff options
Diffstat (limited to 'dev-libs/distorm3/distorm3-3.5.2.ebuild')
-rw-r--r-- | dev-libs/distorm3/distorm3-3.5.2.ebuild | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/dev-libs/distorm3/distorm3-3.5.2.ebuild b/dev-libs/distorm3/distorm3-3.5.2.ebuild index ae5d013926ab..6c9bc4aa2c0d 100644 --- a/dev-libs/distorm3/distorm3-3.5.2.ebuild +++ b/dev-libs/distorm3/distorm3-3.5.2.ebuild @@ -11,13 +11,20 @@ DESCRIPTION="The ultimate disassembler library (X86-32, X86-64)" HOMEPAGE="http://www.ragestorm.net/distorm/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -DEPEND="" -RDEPEND="" - LICENSE="BSD-4" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" + +RESTRICT="!test? ( test )" + +DEPEND="" +RDEPEND="" +BDEPEND="test? ( dev-lang/yasm )" + +distutils_enable_tests pytest + +PATCHES=("${FILESDIR}"/${P}-under.patch) python_install() { distutils-r1_python_install @@ -25,3 +32,14 @@ python_install() { # don't know why it does not happen by default python_optimize } + +python_test() { + local exclude=( + # outdated tests? API udage mismatch + # https://github.com/gdabah/distorm/issues/173 + python/test_distorm3.py::Test::test_dummy + python/test_distorm3.py::InstBin::test_dummy + python/test_distorm3.py::Inst::test_dummy + ) + epytest ${exclude[@]/#/--deselect } +} |