mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
40 lines
953 B
Bash
40 lines
953 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="A security toolkit for organizations with attack surface discovery"
|
|
HOMEPAGE="https://github.com/ismailtasdelen/hackertarget"
|
|
|
|
if [[ ${PV} == *9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/ismailtasdelen/hackertarget"
|
|
else
|
|
SRC_URI="https://github.com/ismailtasdelen/hackertarget/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
|
|
DEPEND="${PYTHON_DEPS}"
|
|
RDEPEND="${DEPEND}
|
|
dev-python/requests[${PYTHON_USEDEP}]"
|
|
|
|
src_prepare() {
|
|
mv source $PN || die
|
|
sed -i -e "s/\['source'\]/\['${PN}'\]/" setup.py || die
|
|
sed -i -e "s/from source/from ${PN}/g" ${PN}.py || die
|
|
|
|
default
|
|
}
|
|
|
|
src_install() {
|
|
distutils-r1_src_install
|
|
python_foreach_impl python_newscript ${PN}.py $PN
|
|
}
|