net-analyzer: migrate to PYTHON_MULTI_USEDEP

This commit is contained in:
Yury Martynov 2020-02-11 22:01:15 +03:00
parent b630f1f88e
commit e34839b720
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
7 changed files with 82 additions and 63 deletions

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
PYTHON_COMPAT=( python3_{6,7} )
inherit python-single-r1 git-r3
@ -13,24 +13,24 @@ EGIT_REPO_URI="https://github.com/gyoisamurai/GyoiThon.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/cchardet[${PYTHON_USEDEP}]
dev-python/censys[${PYTHON_USEDEP}]
dev-python/docopt[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/msgpack[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/PySocks[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
dev-python/Scrapy[${PYTHON_USEDEP}]
>=dev-python/google-api-python-client-1.7.4[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/networkx[${PYTHON_USEDEP}]
dev-python/tldextract[${PYTHON_USEDEP}]
RDEPEND="${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}]
dev-python/cchardet[${PYTHON_MULTI_USEDEP}]
dev-python/censys[${PYTHON_MULTI_USEDEP}]
dev-python/docopt[${PYTHON_MULTI_USEDEP}]
dev-python/jinja[${PYTHON_MULTI_USEDEP}]
dev-python/msgpack[${PYTHON_MULTI_USEDEP}]
dev-python/pandas[${PYTHON_MULTI_USEDEP}]
dev-python/PySocks[${PYTHON_MULTI_USEDEP}]
dev-python/urllib3[${PYTHON_MULTI_USEDEP}]
dev-python/Scrapy[${PYTHON_MULTI_USEDEP}]
>=dev-python/google-api-python-client-1.7.4[${PYTHON_MULTI_USEDEP}]
dev-python/matplotlib[${PYTHON_MULTI_USEDEP}]
dev-python/networkx[${PYTHON_MULTI_USEDEP}]
dev-python/tldextract[${PYTHON_MULTI_USEDEP}]
')
"
DEPEND="${RDEPEND}"

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
</pkgmetadata>

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6} )
PYTHON_COMPAT=( python3_{6,7,8} )
inherit eutils python-single-r1
@ -24,12 +24,14 @@ SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/fuzzywuzzy[${PYTHON_USEDEP}]
dev-python/tld[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/python-levenshtein[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}]"
$(python_gen_cond_dep '
dev-python/numpy[${PYTHON_MULTI_USEDEP}]
dev-python/fuzzywuzzy[${PYTHON_MULTI_USEDEP}]
dev-python/tld[${PYTHON_MULTI_USEDEP}]
dev-python/requests[${PYTHON_MULTI_USEDEP}]
dev-python/python-levenshtein[${PYTHON_MULTI_USEDEP}]
sci-libs/scipy[${PYTHON_MULTI_USEDEP}]
')"
pkg_setup() {
python-single-r1_pkg_setup
@ -49,10 +51,10 @@ src_install() {
python_optimize "${D}/usr/share/${PN}"
make_wrapper "${PN}-analyzer" \
"python3 /usr/share/${PN}/${PN}.py" \
"${EPYTHON} /usr/share/${PN}/${PN}.py" \
"/usr/share/${PN}"
}
pkg_postinst() {
elog "\nSee documentation: https://github.com/s0md3v/Photon/wiki#usage/\n"
einfo "\nSee documentation: https://github.com/s0md3v/Photon/wiki#usage/\n"
}

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6} )
PYTHON_COMPAT=( python3_{6,7} )
inherit eutils python-single-r1
@ -16,16 +16,19 @@ SRC_URI="https://github.com/j3ssie/IPOsint/archive/${HASH_COMMIT}.tar.gz -> ${P}
LICENSE="Unlicense"
SLOT=0
KEYWORDS="~amd64"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
dev-python/selenium-requests[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
>=dev-python/beautifulsoup-4.6.3:4[${PYTHON_USEDEP}]
>=dev-python/pycryptodome-3.7.2[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.23[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/selenium-requests[${PYTHON_MULTI_USEDEP}]
dev-python/lxml[${PYTHON_MULTI_USEDEP}]
>=dev-python/beautifulsoup-4.6.3:4[${PYTHON_MULTI_USEDEP}]
>=dev-python/pycryptodome-3.7.2[${PYTHON_MULTI_USEDEP}]
dev-python/pyopenssl[${PYTHON_MULTI_USEDEP}]
>=dev-python/urllib3-1.23[${PYTHON_MULTI_USEDEP}]
dev-python/cryptography[${PYTHON_MULTI_USEDEP}]
')
www-apps/chromedriver-bin"
S="${WORKDIR}/IPOsint-${HASH_COMMIT}"
@ -50,7 +53,7 @@ src_install() {
python_optimize "${D}/usr/share/${PN}"
make_wrapper "ip-osint" \
"python3 /usr/share/${PN}/ip-osint.py"
"${EPYTHON} /usr/share/${PN}/ip-osint.py"
dodoc README.md
}

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6} )
PYTHON_COMPAT=( python3_{6,7,8} )
inherit eutils python-single-r1
@ -19,12 +19,14 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="${PYTHON_DEPS}
dev-python/psycopg:2[${PYTHON_USEDEP}]
dev-python/argparse[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/dnspython[${PYTHON_USEDEP}]
dev-python/tld[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]"
$(python_gen_cond_dep '
dev-python/psycopg:2[${PYTHON_MULTI_USEDEP}]
dev-python/argparse[${PYTHON_MULTI_USEDEP}]
dev-python/requests[${PYTHON_MULTI_USEDEP}]
dev-python/dnspython[${PYTHON_MULTI_USEDEP}]
dev-python/tld[${PYTHON_MULTI_USEDEP}]
dev-python/termcolor[${PYTHON_MULTI_USEDEP}]
')"
S="${WORKDIR}/sublert-${COMMIT_HASH}"
@ -54,7 +56,7 @@ src_install() {
python_optimize "${D}/usr/share/${PN}"
make_wrapper $PN \
"python3 /usr/share/${PN}/sublert.py"
"${EPYTHON} /usr/share/${PN}/sublert.py"
dodoc *.md
}

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
PYTHON_COMPAT=( python3_{6,7} )
inherit eutils python-single-r1
@ -25,10 +25,12 @@ SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/tld[${PYTHON_USEDEP}]
dev-python/fuzzywuzzy[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/selenium[${PYTHON_USEDEP}]"
$(python_gen_cond_dep '
dev-python/tld[${PYTHON_MULTI_USEDEP}]
dev-python/fuzzywuzzy[${PYTHON_MULTI_USEDEP}]
dev-python/requests[${PYTHON_MULTI_USEDEP}]
dev-python/selenium[${PYTHON_MULTI_USEDEP}]
')"
pkg_setup() {
python-single-r1_pkg_setup
@ -47,7 +49,7 @@ src_install() {
python_optimize "${ED}/usr/share/${PN}"
make_wrapper $PN \
"${PYTHON} /usr/share/${PN}/${PN}.py" \
"${EPYTHON} /usr/share/${PN}/${PN}.py" \
"/usr/share/${PN}"
dodoc CHANGELOG.md README.md

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
PYTHON_COMPAT=( python3_{6,7} )
inherit eutils python-single-r1
@ -25,10 +25,12 @@ SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/tld[${PYTHON_USEDEP}]
dev-python/fuzzywuzzy[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/selenium[${PYTHON_USEDEP}]"
$(python_gen_cond_dep '
dev-python/tld[${PYTHON_MULTI_USEDEP}]
dev-python/fuzzywuzzy[${PYTHON_MULTI_USEDEP}]
dev-python/requests[${PYTHON_MULTI_USEDEP}]
dev-python/selenium[${PYTHON_MULTI_USEDEP}]
')"
pkg_setup() {
python-single-r1_pkg_setup
@ -47,7 +49,7 @@ src_install() {
python_optimize "${ED}/usr/share/${PN}"
make_wrapper $PN \
"${PYTHON} /usr/share/${PN}/${PN}.py" \
"${EPYTHON} /usr/share/${PN}/${PN}.py" \
"/usr/share/${PN}"
dodoc CHANGELOG.md README.md