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: eclass/, dev-lua/lgi/
Date: Fri, 27 May 2016 22:14:01
Message-Id: 1463383153.5ee9cdfe6602d3441595343f042ad4eee50aaf42.mva@gentoo
1 commit: 5ee9cdfe6602d3441595343f042ad4eee50aaf42
2 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
3 AuthorDate: Mon May 16 07:19:13 2016 +0000
4 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
5 CommitDate: Mon May 16 07:19:13 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/lua.git/commit/?id=5ee9cdfe
7
8 lgi: added
9
10 dev-lua/lgi/lgi-9999.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++
11 dev-lua/lgi/metadata.xml | 14 ++++++++++++++
12 eclass/lua.eclass | 2 +-
13 3 files changed, 57 insertions(+), 1 deletion(-)
14
15 diff --git a/dev-lua/lgi/lgi-9999.ebuild b/dev-lua/lgi/lgi-9999.ebuild
16 new file mode 100644
17 index 0000000..e17f755
18 --- /dev/null
19 +++ b/dev-lua/lgi/lgi-9999.ebuild
20 @@ -0,0 +1,42 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Header: This ebuild is from Lua overlay; Bumped by mva; $
24 +
25 +EAPI="5"
26 +
27 +VCS="git-r3"
28 +#IS_MULTILIB=1
29 +# ^ gobject-introspection isn't multilib yet!
30 +inherit lua
31 +
32 +DESCRIPTION="Dynamic Lua binding to GObject libraries using GObject-Introspection"
33 +HOMEPAGE="https://github.com/pavouk/lgi"
34 +SRC_URI=""
35 +
36 +EGIT_REPO_URI="https://github.com/pavouk/lgi"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS=""
41 +IUSE="doc +examples test luajit"
42 +
43 +# TODO: Lua 5.2 handling
44 +
45 +DEPEND="
46 + ${RDEPEND}
47 + dev-libs/glib
48 + dev-libs/gobject-introspection
49 + dev-libs/libffi
50 +"
51 +
52 +DOCS=( README.md docs )
53 +EXAMPLES=( samples/. )
54 +
55 +
56 +each_lua_test() {
57 + emake LUA="${lua_impl}" PKG_CONFIG="${PKG_CONFIG}" check
58 +}
59 +
60 +each_lua_install() {
61 + emake PREFIX="/usr" LUA_VERSION="$(lua_get_abi)" DESTDIR="${D}" install
62 +}
63
64 diff --git a/dev-lua/lgi/metadata.xml b/dev-lua/lgi/metadata.xml
65 new file mode 100644
66 index 0000000..23da526
67 --- /dev/null
68 +++ b/dev-lua/lgi/metadata.xml
69 @@ -0,0 +1,14 @@
70 +<?xml version="1.0" encoding="UTF-8"?>
71 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
72 +<pkgmetadata>
73 +<maintainer>
74 + <email>mva@×××.name</email>
75 + <description>
76 + If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet.
77 + </description>
78 + <name>Vadim A. Misbakh-Soloviov</name>
79 +</maintainer>
80 +<longdescription>FIXME</longdescription>
81 +<use>
82 +</use>
83 +</pkgmetadata>
84
85 diff --git a/eclass/lua.eclass b/eclass/lua.eclass
86 index 0b7918f..7e5af27 100644
87 --- a/eclass/lua.eclass
88 +++ b/eclass/lua.eclass
89 @@ -77,7 +77,7 @@
90
91 inherit base eutils ${multilib} toolchain-funcs flag-o-matic ${VCS}
92
93 -EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_setup
94 +EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_setup src_test
95
96 case ${EAPI} in
97 0|1)