1 |
commit: 167d0cac1641a2946296cff5cca26a5ba7b85448 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 19 07:40:29 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 19 07:40:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=167d0cac |
7 |
|
8 |
dev-lua/lgi: add slot operator against libffi, bug #688886 |
9 |
|
10 |
While at it bump up to EAPI=7 |
11 |
|
12 |
Reported-by: Kent Fredric |
13 |
Closes: https://bugs.gentoo.org/688886 |
14 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
15 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
16 |
|
17 |
dev-lua/lgi/lgi-0.9.0-r1.ebuild | 55 +++++++++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 55 insertions(+) |
19 |
|
20 |
diff --git a/dev-lua/lgi/lgi-0.9.0-r1.ebuild b/dev-lua/lgi/lgi-0.9.0-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..e6445f8259a |
23 |
--- /dev/null |
24 |
+++ b/dev-lua/lgi/lgi-0.9.0-r1.ebuild |
25 |
@@ -0,0 +1,55 @@ |
26 |
+# Copyright 1999-2019 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+VIRTUALX_REQUIRED="manual" |
32 |
+ |
33 |
+inherit eutils toolchain-funcs flag-o-matic virtualx |
34 |
+ |
35 |
+DESCRIPTION="Lua bindings using gobject-introspection" |
36 |
+HOMEPAGE="https://github.com/pavouk/lgi" |
37 |
+SRC_URI="https://github.com/pavouk/lgi/archive/${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="MIT" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd" |
42 |
+IUSE="examples test" |
43 |
+ |
44 |
+RDEPEND=">=dev-lang/lua-5.1 |
45 |
+ dev-libs/gobject-introspection |
46 |
+ dev-libs/glib |
47 |
+ virtual/libffi:0=" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ virtual/pkgconfig |
50 |
+ test? ( |
51 |
+ x11-libs/cairo[glib] |
52 |
+ x11-libs/gtk+[introspection] |
53 |
+ ${VIRTUALX_DEPEND} |
54 |
+ )" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ |
59 |
+ sed -i \ |
60 |
+ -e "s:^LUA_LIBDIR.*$:LUA_LIBDIR = $($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua):" \ |
61 |
+ -e "s:^LUA_SHAREDIR.*$:LUA_SHAREDIR = $($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua):" \ |
62 |
+ "${S}"/lgi/Makefile || die "sed failed" |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ emake CC="$(tc-getCC)" COPTFLAGS="-Wall -Wextra ${CFLAGS}" LIBFLAG="-shared ${LDFLAGS}" |
67 |
+} |
68 |
+ |
69 |
+src_test() { |
70 |
+ virtx emake CC="$(tc-getCC)" COPTFLAGS="-Wall -Wextra ${CFLAGS}" LIBFLAG="-shared ${LDFLAGS}" check |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ emake DESTDIR="${D}" install |
75 |
+ dohtml -r docs/* |
76 |
+ dodoc README.md |
77 |
+ if use examples; then |
78 |
+ dodoc -r samples |
79 |
+ fi |
80 |
+} |