Skip to content
Permalink
Browse files

pret: migrate to PYTHON_MULTI_USEDEP

  • Loading branch information
linxon committed Feb 13, 2020
1 parent 1fb3fda commit cce1a51aca3f7abb291fc310ea6f7897db0e908b
Showing with 18 additions and 4 deletions.
  1. +8 −0 net-analyzer/pret/metadata.xml
  2. +10 −4 net-analyzer/pret/pret-20180611.ebuild
@@ -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>
@@ -1,9 +1,11 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

# https://github.com/RUB-NDS/PRET/issues/35
PYTHON_COMPAT=( python2_7 )

inherit python-single-r1

if [[ ${PV} = *9999* ]]; then
@@ -19,13 +21,15 @@ HOMEPAGE="https://github.com/RUB-NDS/PRET"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
#KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
app-text/ghostscript-gpl
dev-python/colorama[${PYTHON_SINGLE_USEDEP}]
dev-python/pysnmp[${PYTHON_SINGLE_USEDEP}]
$(python_gen_cond_dep '
dev-python/colorama[${PYTHON_MULTI_USEDEP}]
dev-python/pysnmp[${PYTHON_MULTI_USEDEP}]
')
media-gfx/imagemagick
"
DEPEND="${RDEPEND}"
@@ -47,4 +51,6 @@ src_install() {
insinto "/usr/share/${PN}"
doins -r db fonts lpd mibs overlays testpages *.py
fperms 0755 "/usr/share/${PN}/${PN}.py"

python_optimize "${D}/usr/share/${PN}"
}

0 comments on commit cce1a51

Please sign in to comment.
You can’t perform that action at this time.