summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lang/luajit/luajit-2.1.9999.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-lang/luajit/luajit-2.1.9999.ebuild b/dev-lang/luajit/luajit-2.1.9999.ebuild
index d17a29e..29cade4 100644
--- a/dev-lang/luajit/luajit-2.1.9999.ebuild
+++ b/dev-lang/luajit/luajit-2.1.9999.ebuild
@@ -59,7 +59,7 @@ src_prepare() {
-e 's|^(VERSION)=.*|\1=${PV}|' \
-e 's|^(INSTALL_SONAME)=.*|\1=$(INSTALL_SOSHORT1).$(VERSION)|' \
-e 's|^(INSTALL_PCNAME)=.*|\1=${P}.pc|' \
- -e 's|( PREFIX)=.*|\1=${EROOT}usr|' \
+ -e 's|( PREFIX)=.*|\1='${EROOT:-/}'usr|' \
-e 's|^(FILE_MAN)=.*|\1=${P}.1|' \
-i Makefile || die "failed to fix prefix in Makefile"
@@ -79,7 +79,7 @@ src_prepare() {
multilib_src_configure() {
sed -r \
- -e "s|^(prefix)=.*|\1=${EROOT}usr|" \
+ -e "s|^(prefix)=.*|\1=${EROOT:-/}usr|" \
-e "s|^(multilib)=.*|\1=$(get_libdir)|" \
-i "etc/${PN}.pc" || die "Failed to slottify"
}