diff options
Diffstat (limited to 'dev-libs/distorm3')
-rw-r--r-- | dev-libs/distorm3/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/distorm3/distorm3-3.5.2.ebuild | 26 | ||||
-rw-r--r-- | dev-libs/distorm3/files/distorm3-3.5.2-under.patch | 12 |
3 files changed, 36 insertions, 5 deletions
diff --git a/dev-libs/distorm3/Manifest b/dev-libs/distorm3/Manifest index 771333634122..06ef2cea6989 100644 --- a/dev-libs/distorm3/Manifest +++ b/dev-libs/distorm3/Manifest @@ -1,3 +1,4 @@ +AUX distorm3-3.5.2-under.patch 216 BLAKE2B 771f718b28623bd41d9ae967dc2f5d17fd575502e250b0b4f24a5b07aa5acbdf9d9b75ea630df57c087eb10a3aa60743f28cb09e5f1a92accdffb1d9df8af555 SHA512 577f7cea69ce350087095821c602f46db9061e0c3b4440fe8f6fa103bd1f42b7ac5a5b118b0493301b877cd91c0a203c4b6a0299529822552b0bd7bca5779f53 DIST distorm3-3.5.2.tar.gz 138371 BLAKE2B 76cc9c987d53a5c7336632ee96878df62865a862bba9b3d07fa95cd585aff428a0187033b78e0731f14a24cc37d7d19f290b2ca06a5a3dd6ee8116a0e68678c8 SHA512 bc08a12f87e6bf22ff9bbba8a34b88b0988b80ddec405c669ba5cd863545128f8b3df4b122a69f4849af3d08818c836b368332e6546871bdfee99e611b3f8d19 -EBUILD distorm3-3.5.2.ebuild 531 BLAKE2B d3324e35aaff4aee8644473a4e742711d18a7470d3ab21fba35201e1e212037d1976eb29b60a7b0a3d4734ab861dd753bf2f6a9113a2ba9aa68f9b26f97e7625 SHA512 3abcf8bac7f73609c550fa86cbdfc663e950c65c232954b957c25f23612ca84dd7a6d37cea5329a9a1f9bfa13dd31ba29c7e8566336e51c991fb6d0f88d84464 +EBUILD distorm3-3.5.2.ebuild 969 BLAKE2B 25faea3df10f5f326138125ea5af93168b59621b5761c566d52ebc7beaa2481bf88894947e46d2d34336561c7446e25917cb9cde8343d6fc704375ae16f93c8c SHA512 99b39728dfca121e273ef4ce823ed2c38fee1ed4254142cc771270ac7c68ee079f090f4a27c2f6769ef6a26091f7fa702d688fd932ca195fcdef32d42670370d MISC metadata.xml 541 BLAKE2B 6c2f81faf6c95690ba0ca52f27f9a8dceae7eb3e85690f9f9cb3825ddb9da76e0beddb21c45f7a914f13197857cb4d2701204fbd194a032e102f3703b3bcabae SHA512 264cfb7a150b89d0c84d275466c5dce39631a939523990b728c9c3bd6db7854f0a23ec3403b92c3a8c1fff6c8b436eeb6e1503706008aadde11b7c51834b0b57 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 } +} diff --git a/dev-libs/distorm3/files/distorm3-3.5.2-under.patch b/dev-libs/distorm3/files/distorm3-3.5.2-under.patch new file mode 100644 index 000000000000..3a7971d55be3 --- /dev/null +++ b/dev-libs/distorm3/files/distorm3-3.5.2-under.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/797283 +--- a/setup.cfg ++++ b/setup.cfg +@@ -4,7 +4,7 @@ compile = 1 + optimize = 1
+
+ [bdist_wininst]
+-user-access-control = auto
++user_access_control = auto
+
+ [egg_info]
+ tag_build =
|