commit:     e793b67b244cb29fdeafd0b13d3961d02c84b719
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 23 14:03:10 2020 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Thu Jul 23 15:18:57 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e793b67b

dev-ros/poco_vendor: fix python deps

migrate to cmake eclass
add tests on live ebuild

Closes: https://bugs.gentoo.org/708572
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-ros/poco_vendor/poco_vendor-1.2.0.ebuild | 14 ++++++++++----
 dev-ros/poco_vendor/poco_vendor-9999.ebuild  | 29 +++++++++++++++++++++++-----
 2 files changed, 34 insertions(+), 9 deletions(-)

diff --git a/dev-ros/poco_vendor/poco_vendor-1.2.0.ebuild 
b/dev-ros/poco_vendor/poco_vendor-1.2.0.ebuild
index b6214810f35..5e44119b2a2 100644
--- a/dev-ros/poco_vendor/poco_vendor-1.2.0.ebuild
+++ b/dev-ros/poco_vendor/poco_vendor-1.2.0.ebuild
@@ -1,11 +1,11 @@
-# Copyright 2019 Gentoo Authors
+# Copyright 2019-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python{3_6,3_7} )
+PYTHON_COMPAT=( python{3_7,3_8} )
 
-inherit cmake-utils python-any-r1
+inherit cmake python-any-r1
 
 if [ "${PV#9999}" != "${PV}" ] ; then
        inherit git-r3
@@ -28,10 +28,16 @@ fi
 IUSE=""
 
 DEPEND="
-       dev-libs/poco
+       >=dev-libs/poco-1.6.1
+       dev-libs/libpcre
+       sys-libs/zlib
 "
 RDEPEND="${DEPEND}"
 BDEPEND="
        $(python_gen_any_dep 'ros-meta/ament_cmake[${PYTHON_USEDEP}]')
        ${PYTHON_DEPS}
 "
+
+python_check_deps() {
+       has_version "ros-meta/ament_cmake[${PYTHON_USEDEP}]"
+}

diff --git a/dev-ros/poco_vendor/poco_vendor-9999.ebuild 
b/dev-ros/poco_vendor/poco_vendor-9999.ebuild
index b6214810f35..c6061e692b3 100644
--- a/dev-ros/poco_vendor/poco_vendor-9999.ebuild
+++ b/dev-ros/poco_vendor/poco_vendor-9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 2019 Gentoo Authors
+# Copyright 2019-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python{3_6,3_7} )
+PYTHON_COMPAT=( python{3_7,3_8} )
 
-inherit cmake-utils python-any-r1
+inherit cmake python-any-r1
 
 if [ "${PV#9999}" != "${PV}" ] ; then
        inherit git-r3
@@ -25,13 +25,32 @@ if [ "${PV#9999}" != "${PV}" ] ; then
 else
        KEYWORDS="~amd64"
 fi
-IUSE=""
+IUSE="test"
 
 DEPEND="
-       dev-libs/poco
+       >=dev-libs/poco-1.6.1
+       dev-libs/libpcre
+       sys-libs/zlib
 "
 RDEPEND="${DEPEND}"
 BDEPEND="
        $(python_gen_any_dep 'ros-meta/ament_cmake[${PYTHON_USEDEP}]')
+       test? (
+               dev-ros/ament_cmake_copyright
+               dev-ros/ament_cmake_lint_cmake
+               dev-ros/ament_cmake_xmllint
+               dev-ros/ament_cmake_test
+       )
        ${PYTHON_DEPS}
 "
+
+python_check_deps() {
+       has_version "ros-meta/ament_cmake[${PYTHON_USEDEP}]"
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_TESTING=$(usex test ON OFF)
+       )
+       cmake_src_configure
+}

Reply via email to