commit: b9220914edcb79bfb2568362315abc3617ea2ee3 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Thu May 22 20:50:46 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Thu May 22 23:01:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9220914
sci-mathematics/cubicle: use command -v Closes: https://bugs.gentoo.org/956455 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild | 8 ++++++-- sci-mathematics/cubicle/files/cubicle-1.2.0-which.patch | 11 +++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild b/sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild index f7887394c08b..210c395fb4dd 100644 --- a/sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild +++ b/sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild @@ -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() { diff --git a/sci-mathematics/cubicle/files/cubicle-1.2.0-which.patch b/sci-mathematics/cubicle/files/cubicle-1.2.0-which.patch new file mode 100644 index 000000000000..f29c338cacca --- /dev/null +++ b/sci-mathematics/cubicle/files/cubicle-1.2.0-which.patch @@ -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:"
