mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 03:00:57 +02:00
frida-python: fixing and getting it back
This commit is contained in:
parent
0413dc35df
commit
05bc5e9c76
3 changed files with 23 additions and 15 deletions
|
|
@ -1,6 +1,6 @@
|
|||
--- a/setup.pyd 2018-01-21 21:19:12.000000000 +0800
|
||||
+++ b/setup.py 2018-04-20 19:37:12.927635606 +0800
|
||||
@@ -75,41 +75,10 @@
|
||||
@@ -75,38 +75,7 @@
|
||||
|
||||
network_error = None
|
||||
|
||||
|
|
@ -39,8 +39,4 @@
|
|||
+ if network_error is None:
|
||||
print("network query failed")
|
||||
|
||||
- egg_path = os.path.expanduser("~/frida-{}-py{}.{}-{}.egg".format(frida_version, python_version[0], python_version[1], os_version))
|
||||
+ egg_path = os.path.expanduser("~/../distdir/frida-{}-py{}.{}-{}.egg".format(frida_version, python_version[0], python_version[1], os_version))
|
||||
print("looking for prebuilt extension in home directory, i.e.", egg_path)
|
||||
try:
|
||||
with open(egg_path, "rb") as f:
|
||||
egg_path = os.path.expanduser("~/frida-{}-py{}.{}-{}.egg".format(frida_version, python_version[0], python_version[1], os_version))
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ HOMEPAGE="https://github.com/frida/frida"
|
|||
#FIXME: quick hack, download frida .so file earlier
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz
|
||||
x86? ( https://files.pythonhosted.org/packages/87/02/73030e1a938f7b9797678f174a425ed8600977863a8816e83df65df44f54/frida-10.7.7-py2.7-linux-i686.egg
|
||||
https://files.pythonhosted.org/packages/c2/d1/dc5e3d8534c05bb34f28acfe10c2780ff233c7280552a58a066ba0a25c8e/frida-10.7.7-py2.7-linux-x86_64.egg
|
||||
https://files.pythonhosted.org/packages/11/0a/ac1b93932c7b11e87e675214966df3c3303aa4bef721b7c7f54d03d03e9e/frida-10.7.7-py3.6-linux-i686.egg
|
||||
)
|
||||
amd64? ( https://files.pythonhosted.org/packages/11/0a/ac1b93932c7b11e87e675214966df3c3303aa4bef721b7c7f54d03d03e9e/frida-10.7.7-py3.6-linux-i686.egg
|
||||
amd64? ( https://files.pythonhosted.org/packages/c2/d1/dc5e3d8534c05bb34f28acfe10c2780ff233c7280552a58a066ba0a25c8e/frida-10.7.7-py2.7-linux-x86_64.egg
|
||||
https://files.pythonhosted.org/packages/d5/d5/86be98523ac97efa2a95b4eaa9db3d33fcf909c4685df2bf0048ef05f1d5/frida-10.7.7-py3.6-linux-x86_64.egg
|
||||
)
|
||||
"
|
||||
|
|
@ -24,18 +24,29 @@ LICENSE="wxWinLL-3.1"
|
|||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/frida-offline.patch" )
|
||||
|
||||
RDEPEND="dev-python/prompt_toolkit[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/frida-offline.patch" )
|
||||
|
||||
QA_PREBUILT="usr/lib*/pyton*/site-packages/_frida*.so"
|
||||
|
||||
src_prepare(){
|
||||
#FIXME: cp py3.5 link
|
||||
cp -s "${DISTDIR}"/frida-10.7.7-py3.6-linux-x86_64.egg "${DISTDIR}"/frida-10.7.7-py3.5-linux-x86_64.egg
|
||||
eapply_user
|
||||
#copy symlinks to homedir for offline installation
|
||||
if use x86; then
|
||||
cp -s "${DISTDIR}"/frida-10.7.7-py2.7-linux-i686.egg "${HOME}"
|
||||
cp -s "${DISTDIR}"/frida-10.7.7-py3.6-linux-i686.egg "${HOME}"
|
||||
cp -s "${DISTDIR}"/frida-10.7.7-py3.6-linux-i686.egg "${HOME}"/frida-10.7.7-py3.5-linux-i686.egg
|
||||
elif use amd64; then
|
||||
cp -s "${DISTDIR}"/frida-10.7.7-py2.7-linux-x86_64.egg "${HOME}"
|
||||
cp -s "${DISTDIR}"/frida-10.7.7-py3.6-linux-x86_64.egg "${HOME}"
|
||||
cp -s "${DISTDIR}"/frida-10.7.7-py3.6-linux-x86_64.egg "${HOME}"/frida-10.7.7-py3.5-linux-x86_64.egg
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ KEYWORDS="amd64 arm x86"
|
|||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/frida-python
|
||||
android? ( !arm? ( dev-util/apktool
|
||||
dev-util/dex2jar
|
||||
dev-util/android-tools
|
||||
Loading…
Reference in a new issue