summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2022-03-18 17:05:50 +0100
committerAlexis Ballier <aballier@gentoo.org>2022-03-21 10:24:59 +0100
commit1cd325f7e1c966f58271e70e2407ad0d0415d3a6 (patch)
tree7ffe1d77a159da277b2b8436cfb7c3c733af1e27 /dev-ros
parentdev-ros/ament_cmake_ros: bump to 0.10.0 (diff)
downloadgentoo-1cd325f7e1c966f58271e70e2407ad0d0415d3a6.tar.gz
gentoo-1cd325f7e1c966f58271e70e2407ad0d0415d3a6.tar.bz2
gentoo-1cd325f7e1c966f58271e70e2407ad0d0415d3a6.zip
dev-ros/ament_cmake_gen_version_h: initial import
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros')
-rw-r--r--dev-ros/ament_cmake_gen_version_h/Manifest1
-rw-r--r--dev-ros/ament_cmake_gen_version_h/ament_cmake_gen_version_h-1.3.0.ebuild57
-rw-r--r--dev-ros/ament_cmake_gen_version_h/ament_cmake_gen_version_h-9999.ebuild57
-rw-r--r--dev-ros/ament_cmake_gen_version_h/metadata.xml11
4 files changed, 126 insertions, 0 deletions
diff --git a/dev-ros/ament_cmake_gen_version_h/Manifest b/dev-ros/ament_cmake_gen_version_h/Manifest
new file mode 100644
index 000000000000..ef32ca15ffa0
--- /dev/null
+++ b/dev-ros/ament_cmake_gen_version_h/Manifest
@@ -0,0 +1 @@
+DIST ament_cmake-1.3.0.tar.gz 103040 BLAKE2B 8220d380923a591667b3b4bbe785f30ac935ce10c4fd6bf8bd22149586373f353cd9e71723638dca503bd54ff709783ea1e133c5034901fe2d891fd6bbe7c560 SHA512 44f71102e22fe9f6cd8c3cc13960d63af377eec0a6f7fb7ae99c18f2afae07f3997c9f226f7db8cc8020acdf45561ad9eb1006c6834125d6da137e8638617df8
diff --git a/dev-ros/ament_cmake_gen_version_h/ament_cmake_gen_version_h-1.3.0.ebuild b/dev-ros/ament_cmake_gen_version_h/ament_cmake_gen_version_h-1.3.0.ebuild
new file mode 100644
index 000000000000..1feb04c069f8
--- /dev/null
+++ b/dev-ros/ament_cmake_gen_version_h/ament_cmake_gen_version_h-1.3.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit cmake python-any-r1
+
+ROS_PN="ament_cmake"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ament/ament_cmake"
+ SRC_URI=""
+ S=${WORKDIR}/${P}/${PN}
+else
+ SRC_URI="https://github.com/ament/ament_cmake/archive/${PV}.tar.gz -> ${ROS_PN}-${PV}.tar.gz"
+ S="${WORKDIR}/${ROS_PN}-${PV}/${PN}"
+fi
+
+DESCRIPTION="Generate a C header containing the version number of the package"
+HOMEPAGE="https://github.com/ament/ament_cmake"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ PROPERTIES="live"
+else
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RDEPEND="
+ dev-ros/ament_cmake_core
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-ros/ament_cmake_gtest
+ )"
+# Deps here are transitive from ament_cmake_core to have matching python support
+BDEPEND="
+ $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}]')
+ ${PYTHON_DEPS}
+"
+RESTRICT="test" # fixme
+
+python_check_deps() {
+ has_version "dev-python/ament_package[${PYTHON_USEDEP}]" && \
+ has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=$(usex test ON OFF)
+ )
+ cmake_src_configure
+}
diff --git a/dev-ros/ament_cmake_gen_version_h/ament_cmake_gen_version_h-9999.ebuild b/dev-ros/ament_cmake_gen_version_h/ament_cmake_gen_version_h-9999.ebuild
new file mode 100644
index 000000000000..1feb04c069f8
--- /dev/null
+++ b/dev-ros/ament_cmake_gen_version_h/ament_cmake_gen_version_h-9999.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit cmake python-any-r1
+
+ROS_PN="ament_cmake"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ament/ament_cmake"
+ SRC_URI=""
+ S=${WORKDIR}/${P}/${PN}
+else
+ SRC_URI="https://github.com/ament/ament_cmake/archive/${PV}.tar.gz -> ${ROS_PN}-${PV}.tar.gz"
+ S="${WORKDIR}/${ROS_PN}-${PV}/${PN}"
+fi
+
+DESCRIPTION="Generate a C header containing the version number of the package"
+HOMEPAGE="https://github.com/ament/ament_cmake"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ PROPERTIES="live"
+else
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RDEPEND="
+ dev-ros/ament_cmake_core
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-ros/ament_cmake_gtest
+ )"
+# Deps here are transitive from ament_cmake_core to have matching python support
+BDEPEND="
+ $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}]')
+ ${PYTHON_DEPS}
+"
+RESTRICT="test" # fixme
+
+python_check_deps() {
+ has_version "dev-python/ament_package[${PYTHON_USEDEP}]" && \
+ has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=$(usex test ON OFF)
+ )
+ cmake_src_configure
+}
diff --git a/dev-ros/ament_cmake_gen_version_h/metadata.xml b/dev-ros/ament_cmake_gen_version_h/metadata.xml
new file mode 100644
index 000000000000..507777b6c9a3
--- /dev/null
+++ b/dev-ros/ament_cmake_gen_version_h/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ros@gentoo.org</email>
+ <name>Gentoo ROS Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ament/ament_cmake</remote-id>
+ </upstream>
+</pkgmetadata>