summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@gentoo.org>2023-01-25 01:06:35 +0100
committerArsen Arsenović <arsen@gentoo.org>2023-01-25 01:27:42 +0100
commit3f45b9c0a6bcc2a925442e3061916fd6e26f4b87 (patch)
tree92420708c053bc27f7c530bb931a9565e0faf24c /dev-util/poke
parentdev-libs/appstream: Stabilize 0.15.6 arm64, #891979 (diff)
downloadgentoo-3f45b9c0a6bcc2a925442e3061916fd6e26f4b87.tar.gz
gentoo-3f45b9c0a6bcc2a925442e3061916fd6e26f4b87.tar.bz2
gentoo-3f45b9c0a6bcc2a925442e3061916fd6e26f4b87.zip
dev-util/poke: Check for GCC when pvm-profiling is requested
This feature requires GCC. Closes: https://bugs.gentoo.org/883887 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
Diffstat (limited to 'dev-util/poke')
-rw-r--r--dev-util/poke/poke-2.4-r1.ebuild11
-rw-r--r--dev-util/poke/poke-9999.ebuild9
2 files changed, 17 insertions, 3 deletions
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
}