From eff91cab45f3dba3f2c8575c5a94e7fad36bbb2e Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Sat, 3 Apr 2010 18:52:49 +0000 Subject: [PATCH] Minor bep fixes and style changes for mercurial and less. --- dev-util/mercurial/mercurial-1.5.bep | 7 +++++-- sys-apps/less/less-436.bep | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dev-util/mercurial/mercurial-1.5.bep b/dev-util/mercurial/mercurial-1.5.bep index 1e64863de..3f1e98d01 100644 --- a/dev-util/mercurial/mercurial-1.5.bep +++ b/dev-util/mercurial/mercurial-1.5.bep @@ -12,6 +12,9 @@ BUILD { INSTALL { cd mercurial-1.5 - ([[ -n $DESTDIR ]] && python setup.py install --root="$DESTDIR" --prefix="/boot/common" --force \ - || python setup.py install --prefix="/boot/common" --force) + if [ -n ${DESTDIR} ];then + python setup.py install --root="${DESTDIR}" --prefix="/boot/common" --force + else + python setup.py install --prefix="/boot/common" --force + fi } diff --git a/sys-apps/less/less-436.bep b/sys-apps/less/less-436.bep index 9ac1eab6f..808eee3d6 100644 --- a/sys-apps/less/less-436.bep +++ b/sys-apps/less/less-436.bep @@ -14,5 +14,9 @@ BUILD { INSTALL { cd less-436 - make install + if [ -n "${DESTDIR}" ];then + make install DESTDIR="${DESTDIR}" + else + make install + fi }