diff options
author | Cristian Othón Martínez Vera <cfuga@cfuga.mx> | 2023-03-28 13:51:36 -0600 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2023-03-31 22:23:44 +0200 |
commit | 400e59fbd6ecdda47ea2ad1d3ec6c6440d057152 (patch) | |
tree | fd8836065cc6871f8217382ada1ce04446c96ed4 /net-misc/nx | |
parent | dev-libs/ell: drop 0.54, 0.55 (diff) | |
download | gentoo-400e59fbd6ecdda47ea2ad1d3ec6c6440d057152.tar.gz gentoo-400e59fbd6ecdda47ea2ad1d3ec6c6440d057152.tar.bz2 gentoo-400e59fbd6ecdda47ea2ad1d3ec6c6440d057152.zip |
net-misc/nx: patch to remove BDEPEND on sys-apps/which
Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'net-misc/nx')
-rw-r--r-- | net-misc/nx/files/nx-3.5.99.26-which.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-misc/nx/files/nx-3.5.99.26-which.patch b/net-misc/nx/files/nx-3.5.99.26-which.patch new file mode 100644 index 000000000000..abc1f9e1a8d3 --- /dev/null +++ b/net-misc/nx/files/nx-3.5.99.26-which.patch @@ -0,0 +1,33 @@ +--- a/nx-X11/Makefile ++++ b/nx-X11/Makefile +@@ -70,7 +70,7 @@ + else \ + exit 0; \ + fi +- which $(IMAKE) 1>/dev/null && $(IMAKE_CMD) $(MFLAGS) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) ++ command -v $(IMAKE) 1>/dev/null && $(IMAKE_CMD) $(MFLAGS) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) + + # don't allow any default rules in this Makefile + .SUFFIXES: +--- a/nx-X11/extras/Mesa_6.4.2/bin/mklib ++++ b/nx-X11/extras/Mesa_6.4.2/bin/mklib +@@ -285,7 +285,7 @@ + # -linker was not specified, choose default linker now + if [ $CPLUSPLUS = 1 ] ; then + # determine linker and options for C++ code +- if [ `which c++` ] ; then ++ if [ `command -v c++` ] ; then + # use Sun c++ + LINK="c++" + elif [ `type g++` ] ; then +--- a/nx-X11/x-indent.sh ++++ b/nx-X11/x-indent.sh +@@ -2,7 +2,7 @@ + + # We want GNU indent, so first search for gindent to avoid /usr/bin/indent + # on the BSDs, which won't work for us +-INDENT=$(which gnuindent || which gindent || which indent) ++INDENT=$(command -v gnuindent || command -v gindent || command -v indent) + + if [ -z "${INDENT}" ] ; then + echo "Could not find indent, sorry..." >&2 |