mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-30 20:14:17 +01:00
This commit is contained in:
parent
c1356be9a0
commit
7232ba60cf
6 changed files with 0 additions and 124 deletions
|
|
@ -1 +0,0 @@
|
|||
DIST pyew_2.0.orig.tar.gz 344273 SHA256 64a4dfb1850efbe2c9b06108697651f9ff25223fd132eec66c6fe84d5ecc17ae SHA512 2d9a925c1237b05494a7b27db5662198b513e72df091e1208a2cff3cebec6e950046da98b7dcd4074e65360767a5614bd284f9f779607a9996aad00cc55a2f3a WHIRLPOOL b50aadc8415634c86c24ac7c02eea083bce4bd5ae97307279d486d86336dcc68c7dc90e170a9692576746ca6af23578a536b85fe81e960643b782d8b9a17b8c7
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
Description: Fix interpreters in some of the scripts.
|
||||
This patch addresses some wrong headers in the original pyew tarball.
|
||||
Author: David Martínez Moreno <ender@debian.org>
|
||||
Forwarded: no
|
||||
Reviewed-By: David Martínez Moreno <ender@debian.org>
|
||||
Last-Update: <2011-12-14>
|
||||
|
||||
--- pyew-2.0.orig/pefile.py
|
||||
+++ pyew-2.0/pefile.py
|
||||
@@ -1,3 +1,4 @@
|
||||
+#!/usr/bin/env python
|
||||
# -*- coding: Latin-1 -*-
|
||||
"""pefile, Portable Executable reader module
|
||||
|
||||
@@ -4178,4 +4179,4 @@ class PE:
|
||||
def is_suspicious(self):
|
||||
""""""
|
||||
pass
|
||||
-
|
||||
\ No newline at end of file
|
||||
+
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
Description: Fix import elf_parser path in Kenshoto's__init__.py.
|
||||
__init__.py for the Kenshoto ELF parser imports an ELF parser with a
|
||||
statement that won't always work (when importing pyew as a module for
|
||||
example).
|
||||
Author: David Martínez Moreno <ender@debian.org>
|
||||
Forwarded: no
|
||||
Reviewed-By: David Martínez Moreno <ender@debian.org>
|
||||
Last-Update: 2012-01-05
|
||||
|
||||
--- pyew-2.0.orig/Elf/__init__.py
|
||||
+++ pyew-2.0/Elf/__init__.py
|
||||
@@ -25,7 +25,7 @@ import traceback
|
||||
import zlib
|
||||
|
||||
from stat import *
|
||||
-from Elf.elf_lookup import *
|
||||
+from elf_lookup import *
|
||||
|
||||
verbose = False
|
||||
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
Description: Make Pyew available for wide system use.
|
||||
This allows the repo to be run locally but makes Pyew only able to run
|
||||
inside a normal system directory, also fixes a couple of assumptions
|
||||
in the code.
|
||||
Author: David Martínez Moreno <ender@debian.org>
|
||||
Forwarded: not-needed
|
||||
Last-Update: <2011-12-14>
|
||||
|
||||
--- pyew-2.0.orig/pyew
|
||||
+++ pyew-2.0/pyew
|
||||
@@ -1,5 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
-export LD_LIBRARY_PATH=`dirname $0`/lib
|
||||
-./pyew.py $@
|
||||
-
|
||||
+/usr/share/pyshared/pyew/pyew.py $@
|
||||
--- pyew-2.0.orig/pydistorm.py
|
||||
+++ pyew-2.0/pydistorm.py
|
||||
@@ -34,7 +34,7 @@ osVer = platform.system()
|
||||
if osVer == "Windows":
|
||||
LIB_FILENAME = "distorm64.dll"
|
||||
else:
|
||||
- LIB_FILENAME = 'libdistorm64.so'
|
||||
+ LIB_FILENAME = 'libdistorm3.so'
|
||||
|
||||
distorm = cdll.LoadLibrary(LIB_FILENAME)
|
||||
Decode16Bits = 0
|
||||
--- pyew-2.0.orig/config.py
|
||||
+++ pyew-2.0/config.py
|
||||
@@ -6,4 +6,4 @@ CODE_ANALYSIS=True
|
||||
DEEP_CODE_ANALYSIS=False
|
||||
CONFIG_ANALYSIS_TIMEOUT=0
|
||||
PLUGINS_PATH=os.path.dirname(__file__) + os.sep + "plugins"
|
||||
-DATABASE_PATH=os.path.dirname(__file__) + os.sep + "files.sqlite"
|
||||
+DATABASE_PATH=os.path.expanduser('~' + os.sep + 'pyew-files.sqlite')
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
/usr/share/pyew/pyew.py $@
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit base eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Hexadecimal viewer and disassembler"
|
||||
HOMEPAGE="https://github.com/joxeankoret/pyew"
|
||||
#SRC_URI="https://github.com/xx/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="http://http.debian.net/debian/pool/main/p/pyew/pyew_${PV}.orig.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/01_fix_python_mini.patch
|
||||
epatch "${FILESDIR}"/02_kenshoto_bad_import.patch
|
||||
epatch "${FILESDIR}"/101_system_install.patch
|
||||
}
|
||||
|
||||
RDEPEND="dev-libs/distorm64"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
dodoc AUTHORS ChangeLog
|
||||
|
||||
dobin ${FILESDIR}/pyew
|
||||
insinto /usr/share/pyew/
|
||||
doins *.py
|
||||
doins -r anal/
|
||||
doins -r contrib/
|
||||
doins -r Elf/
|
||||
doins -r plugins/
|
||||
python_fix_shebang "${ED}"/usr/share/pyew
|
||||
fperms 755 /usr/share/pyew/pyew.py
|
||||
}
|
||||
Loading…
Reference in a new issue