commit: bd428d52b872dd9aa83e3811afaea9a9e7bc16bb
parent: 615a92314a278afb52ac28b7200fcc29ffaa80a0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 15 Feb 2019 16:34:01 +0100
dev-lua/luaevent: Support multi-lua (based on luaevent-9999::lua)
Diffstat:
1 file changed, 15 insertions(+), 23 deletions(-)
diff --git a/dev-lua/luaevent/luaevent-0.4.4.ebuild b/dev-lua/luaevent/luaevent-0.4.4.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=7
-inherit toolchain-funcs
+inherit lua
DESCRIPTION="libevent bindings for Lua"
HOMEPAGE="http://luaforge.net/projects/luaevent"
@@ -11,29 +11,21 @@ SRC_URI="https://github.com/harningt/luaevent/archive/v${PV}.tar.gz -> ${P}.tar.
LICENSE="LGPL-2.1"
SLOT="0"
-KEYWORDS="amd64 ~arm x86"
+KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
-RDEPEND="dev-lang/lua:0
- dev-libs/libevent:0="
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+RDEPEND="
+ dev-libs/libevent:0=
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
-src_prepare() {
- sed -i "s:^CFLAGS =:CFLAGS +=:" "${S}/Makefile" \
- || die "sed failed"
- sed -i "s:^LDFLAGS =:LDFLAGS +=:" "${S}/Makefile" \
- || die "sed failed"
- sed -i "/^LDFLAGS/a CC = $(tc-getCC)" "${S}/Makefile" \
- || die "sed failed"
- sed -i "s:^LUA_INC_DIR ?=.*:LUA_INC_DIR ?= $(pkg-config --variable INSTALL_INC lua):" "${S}/Makefile" \
- || die "sed failed"
- sed -i "s:^INSTALL_DIR_LUA ?=.*:INSTALL_DIR_LUA ?= $(pkg-config --variable INSTALL_LMOD lua):" "${S}/Makefile" \
- || die "sed failed"
- sed -i "s:^INSTALL_DIR_BIN ?=.*:INSTALL_DIR_BIN ?= $(pkg-config --variable INSTALL_CMOD lua):" "${S}/Makefile" \
- || die "sed failed"
-}
+DOCS=(README)
-src_install() {
- emake DESTDIR="${D}" install || die "Install failed"
+each_lua_install() {
+ dolua lua/*
+ _dolua_insdir="${PN}" \
+ dolua core.so
}