mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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() {
|
||||
|
||||
11
sci-mathematics/cubicle/files/cubicle-1.2.0-which.patch
Normal file
11
sci-mathematics/cubicle/files/cubicle-1.2.0-which.patch
Normal 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:"
|
||||
Reference in New Issue
Block a user