blob: c4fc9ecb18b138fdcfd271611d2564d59b80c4c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
IS_MULTILIB=true
VCS="git"
GITHUB_A="daurnimator"
inherit lua
DESCRIPTION="A Lua library to access dbus"
HOMEPAGE="https://github.com/daurnimator/ldbus/"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="doc examples"
DOCS=(README.md)
EXAMPLES=(example.lua)
RDEPEND="
sys-apps/dbus
"
DEPEND="
${RDEPEND}
virtual/pkgconfig
"
all_lua_prepare() {
cp "${FILESDIR}/GNUmakefile" "${S}/"
sed -r \
-e '1iinclude ../.lua_eclass_config' \
-e 's@lua5.3@$(LUA_IMPL)@' \
-e '/^PKG_CONFIG/d' \
-e '/^LUA_LIBDIR/d' \
-e '/install:/,${s@(\$\(LUA_LIBDIR\))@$(DESTDIR)/\1@g}' \
-i src/Makefile
lua_default
}
each_lua_install() {
dolua src/{message,"${PN}".so}
}
|