1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python{2_7,3_6,3_7} )
9 inherit distutils-r1 toolchain-funcs
11 DESCRIPTION="disassembly/disassembler framework + bindings"
12 HOMEPAGE="http://www.capstone-engine.org/"
13 SRC_URI="https://github.com/aquynh/${PN}/archive/${PV/_rc/-rc}.tar.gz -> ${P}.tar.gz"
16 SLOT="0/3" # libcapstone.so.3
17 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
20 RDEPEND="python? ( ${PYTHON_DEPS} )"
22 python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
24 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
27 "${FILESDIR}"/${P}-CVE-2017-6952.patch
28 "${FILESDIR}"/${P}-FLAGS.patch
31 S=${WORKDIR}/${P/_rc/-rc}
35 pushd bindings/python >/dev/null || die
36 distutils-r1_${1} "$@"
44 wrap_python ${FUNCNAME}
56 RANLIB = $(tc-getRANLIB)
61 LIBDIRARCH = $(get_libdir)
65 wrap_python ${FUNCNAME}
71 wrap_python ${FUNCNAME}
77 wrap_python ${FUNCNAME}
83 wrap_python ${FUNCNAME}