mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
qark: new tool, fix issue https://github.com/pentoo/pentoo-overlay/issues/407
This commit is contained in:
parent
d950b8332e
commit
830fad19c5
6 changed files with 82 additions and 0 deletions
1
dev-python/javalang/Manifest
Normal file
1
dev-python/javalang/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST javalang-0.12.0.tar.gz 21000 BLAKE2B e6274c0ee75d44dd892fffd733ba40ed4ff04d5f83c4314912d4a05b963bf21a2648a44969fc6a567a96d3e17a56d614d3a3ecfd1f2ed885aaa655e36d99cd2f SHA512 ed516ad64e4a73e3f4981c4794b04485c93c4dfead1a03c0f3b5470748cad5c47cf5265df1fc220b12aff8aece4c0261befa24830e3f7038b0b4d560253e4c65
|
||||
19
dev-python/javalang/javalang-0.12.0.ebuild
Normal file
19
dev-python/javalang/javalang-0.12.0.ebuild
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A pure Python library for working with Java source code"
|
||||
HOMEPAGE="https://github.com/c2nes/javalang"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
1
dev-util/qark/Manifest
Normal file
1
dev-util/qark/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST qark-0.9_pre20181218.tar.gz 16820454 BLAKE2B 8cf9e33d87a9434298a6dbf546f94872a9786577ce47b47fa91df13a15c86db71bde636b99bbe55b2f11f714a0ab0077b968943e798e594d083e2dbaaec70ba8 SHA512 674528210f1e35eb9c1890d6ea21991914d7574233b7c3ebb7b549be78e26fd3665b4891e9b82c265ac6700acd85a2e7d8885fdc7d69620cd7a0500a21b32d5a
|
||||
56
dev-util/qark/qark-0.9_pre20181218.ebuild
Normal file
56
dev-util/qark/qark-0.9_pre20181218.ebuild
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Library to instrument executable formats"
|
||||
HOMEPAGE="https://lief.quarkslab.com/"
|
||||
|
||||
HASH_COMMIT="dbfc9b0d04318a705395b0e688d12633e0cbb8e5"
|
||||
SRC_URI="https://github.com/linkedin/qark/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="exploit"
|
||||
|
||||
RDEPEND="dev-python/requests[ssl,${PYTHON_USEDEP}]
|
||||
dev-python/pluginbase[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
virtual/python-enum34[${PYTHON_USEDEP}]
|
||||
dev-python/javalang[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
exploit? ( >=dev-util/android-sdk-update-manager-21.1 )
|
||||
dev-util/dex2jar
|
||||
dev-util/apktool
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
S=${WORKDIR}/${PN}-${HASH_COMMIT}
|
||||
|
||||
#FIXME unbundle:
|
||||
#"decompilers", "*.jar")
|
||||
|
||||
#unbundle existing system jars
|
||||
src_prepare() {
|
||||
rm -r qark/lib/dex2jar-2.0
|
||||
sed -i '/dex2jar-2.0/d' setup.py || die
|
||||
rm -r qark/lib/apktool
|
||||
sed -i '/apktool/d' setup.py || die
|
||||
eapply_user
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
create_symlinks() {
|
||||
dosym "${EPREFIX}/opt/dex2jar" "$(python_get_sitedir)/qark/lib/dex2jar-2.0"
|
||||
dosym "${EPREFIX}/opt/apktool" "$(python_get_sitedir)/qark/lib/apktool"
|
||||
}
|
||||
python_foreach_impl create_symlinks
|
||||
}
|
||||
|
|
@ -319,3 +319,6 @@ dev-python/htmlentities
|
|||
~dev-python/python-iptools-0.6.1
|
||||
~dev-python/pyminifier-2.1
|
||||
~dev-python/zlib_wrapper-0.1.3
|
||||
|
||||
#required by qark
|
||||
~dev-python/javalang-0.12.0
|
||||
|
|
|
|||
|
|
@ -54,3 +54,5 @@ dev-util/appmon
|
|||
|
||||
=dev-util/lief-0.9*
|
||||
=dev-util/lief-bin-0.9*
|
||||
|
||||
dev-util/qark
|
||||
|
|
|
|||
Loading…
Reference in a new issue