blob: 2f6319e191a918bdecc10b1059adff5221231772 (
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-2018 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}
}
|