Gentoo Archives: gentoo-commits

From: "Vadim A. Misbakh-Soloviov" <mva@×××.name>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lua:master commit in: dev-lua/ldbus/, dev-lua/ldbus/files/
Date: Sun, 23 Sep 2018 12:51:15
Message-Id: 1537684850.5245fafe76da19556d9866a0339a9c5022aec0ed.mva@gentoo
1 commit: 5245fafe76da19556d9866a0339a9c5022aec0ed
2 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
3 AuthorDate: Sun Sep 23 06:40:50 2018 +0000
4 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
5 CommitDate: Sun Sep 23 06:40:50 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/lua.git/commit/?id=5245fafe
7
8 ldbus: added
9
10 dev-lua/ldbus/files/GNUmakefile | 6 ++++++
11 dev-lua/ldbus/ldbus-9999.ebuild | 45 +++++++++++++++++++++++++++++++++++++++++
12 dev-lua/ldbus/metadata.xml | 14 +++++++++++++
13 3 files changed, 65 insertions(+)
14
15 diff --git a/dev-lua/ldbus/files/GNUmakefile b/dev-lua/ldbus/files/GNUmakefile
16 new file mode 100644
17 index 0000000..f06efae
18 --- /dev/null
19 +++ b/dev-lua/ldbus/files/GNUmakefile
20 @@ -0,0 +1,6 @@
21 +TOPTARGETS := all clean install
22 +.PHONY: $(TOPTARGETS)
23 +
24 +$(TOPTARGETS):
25 + $(MAKE) -C src $@ $(MAKECMDGOALS)
26 +
27
28 diff --git a/dev-lua/ldbus/ldbus-9999.ebuild b/dev-lua/ldbus/ldbus-9999.ebuild
29 new file mode 100644
30 index 0000000..2f6319e
31 --- /dev/null
32 +++ b/dev-lua/ldbus/ldbus-9999.ebuild
33 @@ -0,0 +1,45 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +IS_MULTILIB=true
40 +VCS="git"
41 +GITHUB_A="daurnimator"
42 +
43 +inherit lua
44 +
45 +DESCRIPTION="A Lua library to access dbus"
46 +HOMEPAGE="https://github.com/daurnimator/ldbus/"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS=""
51 +IUSE="doc examples"
52 +
53 +DOCS=(README.md)
54 +EXAMPLES=(example.lua)
55 +
56 +RDEPEND="
57 + sys-apps/dbus
58 +"
59 +DEPEND="
60 + ${RDEPEND}
61 + virtual/pkgconfig
62 +"
63 +
64 +all_lua_prepare() {
65 + cp "${FILESDIR}/GNUmakefile" "${S}/"
66 + sed -r \
67 + -e '1iinclude ../.lua_eclass_config' \
68 + -e 's@lua5.3@$(LUA_IMPL)@' \
69 + -e '/^PKG_CONFIG/d' \
70 + -e '/^LUA_LIBDIR/d' \
71 + -e '/install:/,${s@(\$\(LUA_LIBDIR\))@$(DESTDIR)/\1@g}' \
72 + -i src/Makefile
73 + lua_default
74 +}
75 +
76 +each_lua_install() {
77 + dolua src/{message,"${PN}".so}
78 +}
79
80 diff --git a/dev-lua/ldbus/metadata.xml b/dev-lua/ldbus/metadata.xml
81 new file mode 100644
82 index 0000000..c1baef2
83 --- /dev/null
84 +++ b/dev-lua/ldbus/metadata.xml
85 @@ -0,0 +1,14 @@
86 +<?xml version="1.0" encoding="UTF-8"?>
87 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
88 +<pkgmetadata>
89 + <maintainer type="person">
90 + <email>williamh@g.o</email>
91 + <name>William Hubbs</name>
92 + </maintainer>
93 + <longdescription lang="en">
94 + lightweight, native, lazy evaluating multithreading library for Lua-5.1 or 5.2.
95 + </longdescription>
96 + <upstream>
97 + <remote-id type="github">LuaLanes/lanes</remote-id>
98 + </upstream>
99 +</pkgmetadata>