pentoo-overlay/dev-util/objection/objection-1.9.4.ebuild
2020-05-30 09:32:14 +08:00

53 lines
1.5 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Runtime mobile exploration"
HOMEPAGE="https://github.com/sensepost/objection"
SRC_URI="https://github.com/sensepost/objection/archive/${PV}.tar.gz -> ${P}.tar.gz
https://dev.pentoo.ch/~blshkv/distfiles/objection-1.9.0-node_modules.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="patchapk"
RDEPEND=">=dev-util/frida-tools-7.0.0[${PYTHON_USEDEP}]
dev-python/frida-python[${PYTHON_USEDEP}]
>=dev-python/prompt_toolkit-3.0.3[${PYTHON_USEDEP}] <dev-python/prompt_toolkit-4.0.0[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/tabulate[${PYTHON_USEDEP}]
dev-python/delegator[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
>=dev-python/litecli-1.3.0[${PYTHON_USEDEP}]
net-libs/nodejs[npm]
patchapk? (
dev-util/android-tools
virtual/jdk:*
dev-util/apktool
)"
#https://github.com/sensepost/objection/wiki/Patching-Android-Applications#patching---dependencies
#FIXME patchapk: missing aapt
#patchipa
#https://github.com/sensepost/objection/wiki/Patching-iOS-Applications#patching---dependencies
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
src_prepare() {
rm -r tests
mv "${WORKDIR}/node_modules" "${S}/agent/" || die "unable to move node_modules"
eapply_user
}
python_compile() {
addpredict /etc/npm
emake frida-agent
distutils-r1_python_compile
}