net-analyzer/tcpflow: Port to python-single-r1
authorMichał Górny <mgorny@gentoo.org>
Fri, 30 Aug 2019 15:26:27 +0000 (17:26 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 30 Aug 2019 15:26:27 +0000 (17:26 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
net-analyzer/tcpflow/tcpflow-1.5.2-r1.ebuild [moved from net-analyzer/tcpflow/tcpflow-1.5.2.ebuild with 90% similarity]

similarity index 90%
rename from net-analyzer/tcpflow/tcpflow-1.5.2.ebuild
rename to net-analyzer/tcpflow/tcpflow-1.5.2-r1.ebuild
index 0271f130a3ba836c950f8131aab507d954963e06..bf0aeffb4aab75a7b3e142960df6c5435c48a1e9 100644 (file)
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit autotools flag-o-matic
+PYTHON_COMPAT=( python2_7 )
+inherit autotools flag-o-matic python-single-r1
 
 DESCRIPTION="A tool for monitoring, capturing and storing TCP connections flows"
 HOMEPAGE="https://github.com/simsong/tcpflow"
@@ -18,10 +19,12 @@ LICENSE="GPL-3"
 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
 SLOT="0"
 IUSE="cairo test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
+       ${PYTHON_DEPS}
        dev-db/sqlite
-       dev-lang/python:2.7=
        dev-libs/boost:=
        dev-libs/openssl:=
        net-libs/http-parser:=