summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/lua-spawn/lua-spawn-9999.ebuild')
-rw-r--r--dev-lua/lua-spawn/lua-spawn-9999.ebuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/dev-lua/lua-spawn/lua-spawn-9999.ebuild b/dev-lua/lua-spawn/lua-spawn-9999.ebuild
index 0f4bed8..a3354bf 100644
--- a/dev-lua/lua-spawn/lua-spawn-9999.ebuild
+++ b/dev-lua/lua-spawn/lua-spawn-9999.ebuild
@@ -25,21 +25,19 @@ DEPEND="
RDEPEND="
${RDEPEND}
"
-
-PATCHES=("${FILESDIR}/patches/${PV}")
+MY_PN="${PN##lua-}"
all_lua_prepare() {
- mv "${PN}/posix.c" "${S}"
+ mv "${MY_PN}/posix.c" "${S}"
lua_default
}
each_lua_compile() {
_lua_setFLAGS
- ${CC} ${CFLAGS} ${LDFLAGS} -I./vendor/compat-5.3/c-api/ -I$(lua_get_incdir) posix.c -o ${PN}.so
+ ${CC} ${CFLAGS} ${LDFLAGS} -I./vendor/compat-5.3/c-api/ "-I$(lua_get_incdir)" posix.c -o "${MY_PN}"/posix.so
}
each_lua_install() {
- dolua "${PN}"
- dolua "${PN}.so"
+ dolua "${MY_PN}"/
}