dev-util/rosinstall_generator: bump to 0.1.14; add pypy support; add src_test
authorAlexis Ballier <aballier@gentoo.org>
Sun, 4 Mar 2018 13:37:50 +0000 (14:37 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 4 Mar 2018 14:20:36 +0000 (15:20 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-util/rosinstall_generator/Manifest
dev-util/rosinstall_generator/rosinstall_generator-0.1.14.ebuild [new file with mode: 0644]
dev-util/rosinstall_generator/rosinstall_generator-9999.ebuild

index d9365f57616b56d501f3310d69c6effc223ba413..10d7e55e31ce38a9ad99e9f440ed0cd0af010210 100644 (file)
@@ -1 +1,2 @@
 DIST rosinstall_generator-0.1.13.tar.gz 11186 BLAKE2B bb6f95eba12ee6b9adfa22d46475d555aa9b3bed225e3be52a52f380bbd1ab3f86871a9a816c56c874f8545d2ef648e226ad5d8d3346444a92202865265260f1 SHA512 c8b5736066f8a42a324b2bed578e03282b6d8ae8df48fb30545617c2995ce53f35d7fea6fab3989383b958e7cb763b24deb67c5ec3496cc77f1ba51f110ab78c
+DIST rosinstall_generator-0.1.14.tar.gz 11419 BLAKE2B af9754f46589aac1e9bb265345319c4037d2b1e10ea8119859e2715b2828974bc4422cac25f84216c401f35b7cddde207e7562afb07e753328940db347b69a20 SHA512 45461917afaf93f38b118951c272ba71a408d2c276b4019739c9c8dc9407812bf166bb762910ce45cedc9b31e2796922a69681ad461c468c7ed2372a1d189904
diff --git a/dev-util/rosinstall_generator/rosinstall_generator-0.1.14.ebuild b/dev-util/rosinstall_generator/rosinstall_generator-0.1.14.ebuild
new file mode 100644 (file)
index 0000000..725ccaf
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+       SCM="git-r3"
+       EGIT_REPO_URI="https://github.com/ros-infrastructure/rosinstall_generator"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Generates rosinstall metadata about repositories with ROS packages/stacks"
+HOMEPAGE="http://wiki.ros.org/rosinstall_generator"
+if [ "${PV#9999}" != "${PV}" ] ; then
+       SRC_URI=""
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/ros-infrastructure/rosinstall_generator/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+       >=dev-python/catkin_pkg-0.1.28[${PYTHON_USEDEP}]
+       >=dev-python/rosdistro-0.5.0[${PYTHON_USEDEP}]
+       dev-python/rospkg[${PYTHON_USEDEP}]
+       dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+python_test() {
+       nosetests --with-coverage || die
+}
index 484e133e8ea0df05396f9eaaa43462d6db6f223d..725ccaf60ba10a8a0ad6082bd737163f27bdae7a 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
 
 SCM=""
 if [ "${PV#9999}" != "${PV}" ] ; then
@@ -24,7 +24,7 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE=""
+IUSE="test"
 
 RDEPEND="
        >=dev-python/catkin_pkg-0.1.28[${PYTHON_USEDEP}]
@@ -32,4 +32,9 @@ RDEPEND="
        dev-python/rospkg[${PYTHON_USEDEP}]
        dev-python/pyyaml[${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}
-       dev-python/setuptools[${PYTHON_USEDEP}]"
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+python_test() {
+       nosetests --with-coverage || die
+}