sci-mathematics/cubicle: use command -v

Closes: https://bugs.gentoo.org/956455
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-05-22 22:50:46 +02:00
parent ddec1826f4
commit b9220914ed
2 changed files with 17 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -21,12 +21,16 @@ RDEPEND="
dev-ml/num:=
emacs? ( >=app-editors/emacs-23.1:* )
"
DEPEND="${RDEPEND}"
DEPEND="
${RDEPEND}
"
BDEPEND="
dev-ml/findlib
sys-apps/gawk
"
PATCHES=( "${FILESDIR}/${PN}-1.2.0-which.patch" )
SITEFILE="50${PN}-gentoo.el"
src_prepare() {

View File

@@ -0,0 +1,11 @@
--- a/configure.in
+++ b/configure.in
@@ -39,7 +39,7 @@ AC_CHECK_PROG(USEOCAMLFIND,ocamlfind,yes,no)
if test "$USEOCAMLFIND" = yes; then
OCAMLFINDLIB=$(ocamlfind printconf stdlib)
- OCAMLFIND=$(which ocamlfind)
+ OCAMLFIND=$(command -v ocamlfind)
if test "$OCAMLFINDLIB" != "$OCAMLLIB"; then
USEOCAMLFIND=no;
echo "but your ocamlfind is not compatible with your ocamlc:"