From 3f45b9c0a6bcc2a925442e3061916fd6e26f4b87 Mon Sep 17 00:00:00 2001 From: Arsen Arsenović Date: Wed, 25 Jan 2023 01:06:35 +0100 Subject: dev-util/poke: Check for GCC when pvm-profiling is requested MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This feature requires GCC. Closes: https://bugs.gentoo.org/883887 Signed-off-by: Arsen Arsenović --- dev-util/poke/poke-2.4-r1.ebuild | 11 +++++++++-- dev-util/poke/poke-9999.ebuild | 9 ++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'dev-util') diff --git a/dev-util/poke/poke-2.4-r1.ebuild b/dev-util/poke/poke-2.4-r1.ebuild index 4f71cf92ec9f..b64df1c180ef 100644 --- a/dev-util/poke/poke-2.4-r1.ebuild +++ b/dev-util/poke/poke-2.4-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit elisp-common flag-o-matic +inherit elisp-common flag-o-matic toolchain-funcs DESCRIPTION="Extensible editor for structured binary data" HOMEPAGE="https://www.jemarch.net/poke" @@ -47,6 +47,7 @@ DEPEND=" BDEPEND=" ${REGEN_BDEPEND} virtual/pkgconfig + pvm-profiling? ( sys-devel/gcc ) emacs? ( >=app-editors/emacs-23.1:* ) test? ( dev-util/dejagnu @@ -56,6 +57,12 @@ BDEPEND=" SITEFILE="50${PN}-gentoo.el" +pkg_pretend() { + if use pvm-profiling && ! tc-is-gcc; then + die "USE=pvm-profiling requires GCC" + fi +} + pkg_setup() { use emacs && elisp-check-emacs-version } diff --git a/dev-util/poke/poke-9999.ebuild b/dev-util/poke/poke-9999.ebuild index 6bb0f34eb2c4..80e149428e9b 100644 --- a/dev-util/poke/poke-9999.ebuild +++ b/dev-util/poke/poke-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit elisp-common flag-o-matic +inherit elisp-common flag-o-matic toolchain-funcs DESCRIPTION="Extensible editor for structured binary data" HOMEPAGE="https://www.jemarch.net/poke" @@ -50,6 +50,7 @@ DEPEND=" BDEPEND=" ${REGEN_BDEPEND} virtual/pkgconfig + pvm-profiling? ( sys-devel/gcc ) emacs? ( >=app-editors/emacs-23.1:* ) test? ( dev-util/dejagnu @@ -59,6 +60,12 @@ BDEPEND=" SITEFILE="50${PN}-gentoo.el" +pkg_pretend() { + if use pvm-profiling && ! tc-is-gcc; then + die "USE=pvm-profiling requires GCC" + fi +} + pkg_setup() { use emacs && elisp-check-emacs-version } -- cgit v1.2.3-65-gdbad