From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/sdbus-c++/
Date: Mon, 21 Mar 2022 21:48:40 +0000 (UTC) [thread overview]
Message-ID: <1647899301.e1216ad522c5b134dc5d666882af155a46b7e23b.chewi@gentoo> (raw)
commit: e1216ad522c5b134dc5d666882af155a46b7e23b
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 21 21:48:21 2022 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Mar 21 21:48:21 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1216ad5
dev-cpp/sdbus-c++: Use python-any-r1 eclass to build systemd
Closes: https://bugs.gentoo.org/835705
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
dev-cpp/sdbus-c++/sdbus-c++-0.9.0.ebuild | 15 ++++++++++++++-
dev-cpp/sdbus-c++/sdbus-c++-1.1.0.ebuild | 15 ++++++++++++++-
2 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/dev-cpp/sdbus-c++/sdbus-c++-0.9.0.ebuild b/dev-cpp/sdbus-c++/sdbus-c++-0.9.0.ebuild
index 2e96c31113c1..04f6c85c5a16 100644
--- a/dev-cpp/sdbus-c++/sdbus-c++-0.9.0.ebuild
+++ b/dev-cpp/sdbus-c++/sdbus-c++-0.9.0.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-inherit meson cmake
+PYTHON_COMPAT=( python3_{8..10} )
+inherit python-any-r1 meson cmake
SDP="systemd-stable-250.4"
DESCRIPTION="High-level C++ D-Bus library"
@@ -34,12 +35,24 @@ DEPEND="
BDEPEND="
virtual/pkgconfig
doc? ( app-doc/doxygen[dot] )
+ !systemd? (
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-python/jinja[${PYTHON_USEDEP}]')
+ )
"
+python_check_deps() {
+ has_version -b "dev-python/jinja[${PYTHON_USEDEP}]"
+}
+
S="${WORKDIR}/sdbus-cpp-${PV}"
SDS="${WORKDIR}/${SDP}"
SDB="${WORKDIR}/systemd-build"
+pkg_setup() {
+ use systemd || python-any-r1_pkg_setup
+}
+
src_prepare() {
if ! use systemd; then
pushd "${SDS}" || die
diff --git a/dev-cpp/sdbus-c++/sdbus-c++-1.1.0.ebuild b/dev-cpp/sdbus-c++/sdbus-c++-1.1.0.ebuild
index 454cc5196d10..7eee346da844 100644
--- a/dev-cpp/sdbus-c++/sdbus-c++-1.1.0.ebuild
+++ b/dev-cpp/sdbus-c++/sdbus-c++-1.1.0.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-inherit meson cmake
+PYTHON_COMPAT=( python3_{8..10} )
+inherit python-any-r1 meson cmake
SDP="systemd-stable-250.4"
DESCRIPTION="High-level C++ D-Bus library"
@@ -34,8 +35,16 @@ DEPEND="
BDEPEND="
virtual/pkgconfig
doc? ( app-doc/doxygen[dot] )
+ !systemd? (
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-python/jinja[${PYTHON_USEDEP}]')
+ )
"
+python_check_deps() {
+ has_version -b "dev-python/jinja[${PYTHON_USEDEP}]"
+}
+
S="${WORKDIR}/sdbus-cpp-${PV}"
SDS="${WORKDIR}/${SDP}"
SDB="${WORKDIR}/systemd-build"
@@ -44,6 +53,10 @@ PATCHES=(
"${FILESDIR}"/${PN}-gtest-1.11.patch
)
+pkg_setup() {
+ use systemd || python-any-r1_pkg_setup
+}
+
src_prepare() {
if ! use systemd; then
pushd "${SDS}" || die
next reply other threads:[~2022-03-21 21:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 21:48 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-04-02 13:52 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/sdbus-c++/ James Le Cuirot
2022-04-02 20:54 James Le Cuirot
2022-05-01 21:04 James Le Cuirot
2022-05-29 12:53 James Le Cuirot
2023-02-18 21:55 James Le Cuirot
2023-09-02 9:01 James Le Cuirot
2024-01-22 23:15 James Le Cuirot
2024-10-29 21:47 James Le Cuirot
2024-10-29 21:47 James Le Cuirot
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=1647899301.e1216ad522c5b134dc5d666882af155a46b7e23b.chewi@gentoo \
--to=chewi@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