commit:     922ff6bc4c9c2872e19ca835394905449d8eefb4
Author:     Maciej Barć <xgqt <AT> riseup <DOT> net>
AuthorDate: Fri Apr 16 20:15:38 2021 +0000
Commit:     Maciej Barć <xgqt <AT> riseup <DOT> net>
CommitDate: Fri Apr 16 20:16:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=922ff6bc

dev-lang/fennel: fix installation to LUA_LIB_DIR

Signed-off-by: Maciej Barć <xgqt <AT> riseup.net>

 dev-lang/fennel/fennel-0.9.1.ebuild | 8 ++++++--
 dev-lang/fennel/fennel-9999.ebuild  | 8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/dev-lang/fennel/fennel-0.9.1.ebuild 
b/dev-lang/fennel/fennel-0.9.1.ebuild
index d2adba074..472746211 100644
--- a/dev-lang/fennel/fennel-0.9.1.ebuild
+++ b/dev-lang/fennel/fennel-0.9.1.ebuild
@@ -31,11 +31,15 @@ pkg_setup() {
 }
 
 src_compile() {
-       emake LUA_VERSION="$(lua_get_version)" PREFIX="${D}/usr"
+       emake LUA_VERSION="$(lua_get_version)" \
+                 LUA_LIB_DIR="${D}/$(lua_get_lmod_dir)" \
+                 PREFIX="${D}/usr"
 }
 
 src_install() {
-       emake LUA_VERSION="$(lua_get_version)" PREFIX="${D}/usr" install
+       emake LUA_VERSION="$(lua_get_version)" \
+                 LUA_LIB_DIR="${D}/$(lua_get_lmod_dir)" \
+                 PREFIX="${D}/usr" install
        doman "${PN}.1"
        dodoc *.md
 }

diff --git a/dev-lang/fennel/fennel-9999.ebuild 
b/dev-lang/fennel/fennel-9999.ebuild
index d2adba074..472746211 100644
--- a/dev-lang/fennel/fennel-9999.ebuild
+++ b/dev-lang/fennel/fennel-9999.ebuild
@@ -31,11 +31,15 @@ pkg_setup() {
 }
 
 src_compile() {
-       emake LUA_VERSION="$(lua_get_version)" PREFIX="${D}/usr"
+       emake LUA_VERSION="$(lua_get_version)" \
+                 LUA_LIB_DIR="${D}/$(lua_get_lmod_dir)" \
+                 PREFIX="${D}/usr"
 }
 
 src_install() {
-       emake LUA_VERSION="$(lua_get_version)" PREFIX="${D}/usr" install
+       emake LUA_VERSION="$(lua_get_version)" \
+                 LUA_LIB_DIR="${D}/$(lua_get_lmod_dir)" \
+                 PREFIX="${D}/usr" install
        doman "${PN}.1"
        dodoc *.md
 }

Reply via email to