public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python_orocos_kdl/
Date: Wed,  3 Nov 2021 06:53:23 +0000 (UTC)	[thread overview]
Message-ID: <1635922385.63a06bc9a8f13aa166ce5f0d73147a429b3eee77.arthurzam@gentoo> (raw)

commit:     63a06bc9a8f13aa166ce5f0d73147a429b3eee77
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  3 06:29:13 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Nov  3 06:53:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63a06bc9

dev-python/python_orocos_kdl: update live template

- remove redundent `IUSE=""`
- cleanup all checks for "is live" into one clean block, and use [[
  instead of [

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../python_orocos_kdl-9999.ebuild                  | 34 ++++++++--------------
 1 file changed, 12 insertions(+), 22 deletions(-)

diff --git a/dev-python/python_orocos_kdl/python_orocos_kdl-9999.ebuild b/dev-python/python_orocos_kdl/python_orocos_kdl-9999.ebuild
index cb5f4ef382d..3c9273f16a7 100644
--- a/dev-python/python_orocos_kdl/python_orocos_kdl-9999.ebuild
+++ b/dev-python/python_orocos_kdl/python_orocos_kdl-9999.ebuild
@@ -2,32 +2,28 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python{3_8,3_9,3_10} )
 
-SCM=""
-if [ "${PV#9999}" != "${PV}" ] ; then
-	SCM="git-r3"
+PYTHON_COMPAT=( python3_{8..10} )
+inherit python-r1 cmake
+
+DESCRIPTION="Python bindings for KDL"
+HOMEPAGE="https://www.orocos.org/kdl"
+if [[ ${PV} = *9999 ]] ; then
+	inherit git-r3
 	EGIT_REPO_URI="https://github.com/orocos/orocos_kinematics_dynamics"
+	S="${WORKDIR}/${P}/python_orocos_kdl"
+else
+	SRC_URI="https://github.com/orocos/orocos_kinematics_dynamics/archive/v${PV}.tar.gz -> orocos_kinematics_dynamics-${PV}.tar.gz"
+	KEYWORDS="~amd64 ~arm"
+	S="${WORKDIR}/orocos_kinematics_dynamics-${PV}/python_orocos_kdl"
 fi
 
 # pybind11 strips targets at build otherwise...
 # https://bugs.gentoo.org/806857
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
-inherit ${SCM} python-r1 cmake
-
-if [ "${PV#9999}" != "${PV}" ] ; then
-	SRC_URI=""
-else
-	KEYWORDS="~amd64 ~arm"
-	SRC_URI="https://github.com/orocos/orocos_kinematics_dynamics/archive/v${PV}.tar.gz -> orocos_kinematics_dynamics-${PV}.tar.gz"
-fi
-
-DESCRIPTION="Python bindings for KDL"
-HOMEPAGE="https://www.orocos.org/kdl"
 LICENSE="LGPL-2.1"
 SLOT="0"
-IUSE=""
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="
@@ -36,12 +32,6 @@ RDEPEND="
 	dev-python/pybind11[${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}"
 
-if [ "${PV#9999}" != "${PV}" ] ; then
-	S=${WORKDIR}/${P}/python_orocos_kdl
-else
-	S=${WORKDIR}/orocos_kinematics_dynamics-${PV}/python_orocos_kdl
-fi
-
 src_prepare() {
 	sed -e 's/find_package(catkin/find_package(NoTcatkin/' \
 		-e 's/add_subdirectory(pybind11/find_package(pybind11/' \


             reply	other threads:[~2021-11-03  6:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-03  6:53 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-05-16 13:27 [gentoo-commits] repo/gentoo:master commit in: dev-python/python_orocos_kdl/ Michał Górny
2022-05-16 13:27 Michał Górny
2021-11-03  6:53 Arthur Zamarin
2021-08-12 11:48 Alexis Ballier
2021-08-06 14:35 Alexis Ballier
2021-08-06 14:35 Alexis Ballier
2021-06-01 18:28 Andrew Ammerlaan
2020-06-04  9:06 David Seifert
2020-05-14 15:13 Alexis Ballier
2020-02-05 20:47 Michał Górny
2018-04-10  8:04 Alexis Ballier
2018-04-10  8:04 Alexis Ballier
2018-04-07 14:08 Alexis Ballier
2017-02-28 11:27 Alexis Ballier
2016-12-31 12:01 Alexis Ballier
2016-02-23 18:31 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1635922385.63a06bc9a8f13aa166ce5f0d73147a429b3eee77.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox