apkid: yara fix and p20200522 bump

This commit is contained in:
blshkv 2020-05-23 10:25:07 +08:00
parent 5bab373118
commit 479fc7ef7f
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 42 additions and 4 deletions

View file

@ -1 +1,2 @@
DIST apkid-2.1.0.tar.gz 126697 BLAKE2B 53f5e646ca1be98ae844ce2cf94aa410704f9ffe963203097059fbdb697883cf35ee262240874a2e4a6393035a36f3f34377e6208f6febff6422ef532455a7c5 SHA512 93e04eb21db257fcb1fb11751e3c08c0d60e1da56bb8c0f3d8fbd1e21544bb825ea70c63e1020fe9e55bfe0cef34d4928fd04699466268ac3afdc28608acd284
DIST apkid-2.1.0_p20200522.tar.gz 55304 BLAKE2B 5ba0340f6519781aef9e30f14fa7418462a2fb18b861684fc5247063418eb9e2dbd28201d624084c9ef839ffe80bba315f18f4fdf1f502b2fc453a91fc04cd41 SHA512 4a84f240f6576e7113490c250d444c64f667e32fbf74f7ac746beb92a56a7cefc77365318e9c02394b281d345c9e705e8fb4b1b4199bc21c582adf4b18268836

View file

@ -7,21 +7,24 @@ PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Android Package Identifier"
HOMEPAGE="https://github.com/rednaga/APKiD"
DESCRIPTION="Android Package Protector Identifier"
HOMEPAGE="https://github.com/rednaga/APKiD/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="${PYTHON_DEPS}
dev-python/yara-python[${PYTHON_USEDEP}]"
dev-python/yara-python[dex,${PYTHON_USEDEP}]
app-forensics/yara:="
DEPEND="${RDEPEND}"
src_prepare(){
#relax yara and regenarate rules for the current version
sed "s|yara-python==3.11.0|yara-python>=3.11.0|g" -i setup.py || die
./prep-release.py
#https://github.com/rednaga/APKiD/issues/211
sed '/argparse/d' -i setup.py || die
default

View file

@ -0,0 +1,34 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Android Package Protector Identifier"
HOMEPAGE="https://github.com/rednaga/APKiD/"
HASH_COMMIT="6bb8ba2f380af03f52abbb65a86ab0013f2c7211"
SRC_URI="https://github.com/rednaga/APKiD/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="${PYTHON_DEPS}
dev-python/yara-python[dex,${PYTHON_USEDEP}]
app-forensics/yara:="
DEPEND="${RDEPEND}"
S="${WORKDIR}/APKiD-${HASH_COMMIT}"
src_prepare(){
#relax yara and regenarate rules for the current version
sed "s|yara-python==3.11.0|yara-python>=3.11.0|g" -i setup.py || die
./prep-release.py
default
}