From 84499aa76952b798a44f561acb064ff5f8cad7d4 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Sun, 18 Apr 2010 04:53:18 +0000 Subject: [PATCH] Fix bep files for p7zip and readline to allow automatic packaging. --- app-arch/p7zip/p7zip-9.04.bep | 6 +++++- sys-libs/readline/readline-6.0.bep | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app-arch/p7zip/p7zip-9.04.bep b/app-arch/p7zip/p7zip-9.04.bep index 2febf0432..63b7ae35f 100644 --- a/app-arch/p7zip/p7zip-9.04.bep +++ b/app-arch/p7zip/p7zip-9.04.bep @@ -13,5 +13,9 @@ BUILD { INSTALL { cd p7zip_9.04 - make install DEST_HOME=/boot/common + if [ -n "${DESTDIR}" ];then + make install DEST_DIR="${DESTDIR}" DEST_HOME="/boot/common" + else + make install DEST_HOME=/boot/common + fi } diff --git a/sys-libs/readline/readline-6.0.bep b/sys-libs/readline/readline-6.0.bep index 67186f170..89322e57b 100644 --- a/sys-libs/readline/readline-6.0.bep +++ b/sys-libs/readline/readline-6.0.bep @@ -16,5 +16,9 @@ BUILD { INSTALL { cd readline-6.0 - make install + if [ -n "${DESTDIR}" ];then + make install DESTDIR="${DESTDIR}" + else + make install + fi }