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@gentoo.org>
This commit is contained in:
Alexis Ballier
2020-07-23 16:03:10 +02:00
parent 555bb946d8
commit e793b67b24
2 changed files with 34 additions and 9 deletions

View File

@@ -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}]"
}

View File

@@ -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
}