summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-03-15 16:19:13 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-03-15 16:22:04 -0700
commit52d57339a18d20c00421f235006ba65e0a4248e0 (patch)
tree2f4db6cbfae8363a0ad7363f1d169655700226ed /dev-lua
parentdev-lua/lua-utf8: UTF8 module for Lua (new package) (diff)
downloadgentoo-52d57339a18d20c00421f235006ba65e0a4248e0.tar.gz
gentoo-52d57339a18d20c00421f235006ba65e0a4248e0.tar.bz2
gentoo-52d57339a18d20c00421f235006ba65e0a4248e0.zip
dev-lua/lua-utf8: QA: quoting, respect LDFLAGS and CC, fix tests
Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/lua-utf8/files/lua-utf8.Makefile3
-rw-r--r--dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild5
2 files changed, 5 insertions, 3 deletions
diff --git a/dev-lua/lua-utf8/files/lua-utf8.Makefile b/dev-lua/lua-utf8/files/lua-utf8.Makefile
index ebbaecefea69..456c52f4aaa0 100644
--- a/dev-lua/lua-utf8/files/lua-utf8.Makefile
+++ b/dev-lua/lua-utf8/files/lua-utf8.Makefile
@@ -11,6 +11,7 @@ LUA_SHARE := $(shell $(PKG_CONFIG) --variable INSTALL_LMOD $(MY_USE_LUA))
CWARNS := -Wall -pedantic
CFLAGS += -I$(LUA_INC) -fPIC $(CWARNS)
LIB_OPTION := -shared
+LDFLAGS += $(LIB_OPTION)
SONAME := lua-utf8.so
SONAMEV := $(SONAME).0
@@ -29,7 +30,7 @@ $(SONAME):
ln -s $(SONAMEV) $@
$(LIBRARY): $(OBJ)
- $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(LIBRARY) $(OBJ) -lc
install:
install -d $(DESTDIR)$(LUA_LIBDIR)
diff --git a/dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild b/dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild
index 00f5147b88b0..7daf5890116c 100644
--- a/dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild
+++ b/dev-lua/lua-utf8/lua-utf8-0.1.1.ebuild
@@ -26,10 +26,11 @@ S="${WORKDIR}/${PN//-/}-${PV}"
src_prepare() {
default
- cp -v ${FILESDIR}/${PN}.Makefile ${S}/Makefile || die
+ cp -v "${FILESDIR}/${PN}".Makefile "${S}"/Makefile || die
}
src_compile() {
+ tc-export CC
emake DESTDIR="${D}" PREFIX="${EPREFIX}" MY_USE_LUA="$(usex luajit 'luajit' 'lua')" PKG_CONFIG="$(tc-getPKG_CONFIG)"
}
@@ -39,5 +40,5 @@ src_install() {
}
src_test() {
- LUA_CPATH=./src/?.so $(usex luajit 'luajit' 'lua') test.lua || die
+ LUA_CPATH=./?.so $(usex luajit 'luajit' 'lua') test.lua || die
}