From adbfc047e91f7029e1f212f009a88f7a29e753fe Mon Sep 17 00:00:00 2001 From: Michael Weirauch Date: Tue, 8 Jun 2010 19:54:00 +0000 Subject: [PATCH] * bash "-n"-test also evaluates empty strings to true what the setup script doesn't like. fixes install. --- dev-util/scons/scons-1.0.1-python2.5.bep | 2 +- dev-util/scons/scons-1.0.1.bep | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-util/scons/scons-1.0.1-python2.5.bep b/dev-util/scons/scons-1.0.1-python2.5.bep index 614e99366..d3ac1ef58 100644 --- a/dev-util/scons/scons-1.0.1-python2.5.bep +++ b/dev-util/scons/scons-1.0.1-python2.5.bep @@ -14,7 +14,7 @@ BUILD { INSTALL { cd scons-1.0.1 - if [ -n ${DESTDIR} ];then + if [ ! -z ${DESTDIR} ];then python2.5 setup.py install --root="${DESTDIR}" --prefix="/boot/common" --symlink-scons --standard-lib else python2.5 setup.py install --prefix="/boot/common" --symlink-scons --standard-lib diff --git a/dev-util/scons/scons-1.0.1.bep b/dev-util/scons/scons-1.0.1.bep index bd5590e6b..0f6a8b19c 100644 --- a/dev-util/scons/scons-1.0.1.bep +++ b/dev-util/scons/scons-1.0.1.bep @@ -14,8 +14,8 @@ BUILD { INSTALL { cd scons-1.0.1 - if [ -n ${DESTDIR} ];then - python setup.py install --root="${DESTDIR}" --prefix="/boot/common" --symlink-scons --standard-lib + if [ ! -z ${DESTDIR} ];then + python setup.py install --root=${DESTDIR} --prefix="/boot/common" --symlink-scons --standard-lib else python setup.py install --prefix="/boot/common" --symlink-scons --standard-lib fi